Skip to content

The smart contracts behind saddle.finance 🤠

License

Notifications You must be signed in to change notification settings

dmitryn2018/saddle-contract

 
 

Repository files navigation

Saddle contracts tests in NEON

This project demonstrates usage of Saddle finance contracts in NEON environment.

Saddle Finance deployment

  • docker scripts:
  • deploying local Solana
  • deploying Neon proxy
  • deploy of the Saddle pool contracts using the Neon proxy
  • deploy of the Saddle metapool contracts using the Neon proxy
  • deploy of the Saddle rewards distributor contracts using the Neon proxy

Testing actions in Saddle protocol

Addition of at least 3 Saddle pools:

  • 2 non-native stable tokens
  • 3 non-native stable tokens
  • 1 non-native stable token + LP token of another pool - testing all types of swaps in all pools

Testing the LP farming scenario

  • adding liquidity to all pools
  • performing swaps in all pools, receiving rewards
  • gathering rewards from all pools after swaps
  • transfer of part of LP tokens from one farming address to another - swaps and rewards receiving with new LP tokens distribution

Installation

$ npm ci --legacy-peer-deps

Build

$ npm run build

Run local NEON environment:

sudo REVISION=v0.11.x NEON_EVM_COMMIT=v0.11.x FAUCET_COMMIT=latest docker-compose -f docker-compose.neon.yml up -d

Run:

npx hardhat run ./scripts/deploy2Tokens.ts
npx hardhat run ./scripts/deploy3Tokens.ts
npx hardhat run ./scripts/deployMetaPool.ts

About

The smart contracts behind saddle.finance 🤠

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 64.9%
  • Solidity 25.0%
  • Vyper 9.5%
  • JavaScript 0.4%
  • Shell 0.1%
  • Handlebars 0.1%