This project demonstrates usage of Saddle finance contracts in NEON environment.
- 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
- 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
- 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
$ npm ci --legacy-peer-deps
$ npm run build
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