- This is a smart contract that mStable's mAsset (mUSD) as a yield source for PoolTogether.
- Version for following the
PoolTogether
smart contract- Solidity (Solc): v0.6.12
- Truffle: v5.1.60
- web3.js: v1.2.9
- openzeppelin-solidity: v3.2.0
- ganache-cli: v6.9.1 (ganache-core: 2.10.2)
- Install npm modules in the root directory
$ npm install
$ npm run migrate:local
- 1: Start ganache-cli with mainnet-fork
$ ganache-cli -d --fork https://mainnet.infura.io/v3/{YOUR INFURA KEY}@{BLOCK_NUMBER}
(※ -d
option is the option in order to be able to use same address on Ganache-CLI every time)
- 2: Execute test of the smart-contracts (on the local)
- Test for the MStableYieldSource contract
$ npm run test:MStableYieldSource
($ truffle test ./test/test-local/MStableYieldSource.test.js)
- Test for the MStableYieldSource contract
- PoolTogether
- mStable
- Deployed-addresses on Mainnet
- GR9 Prize in Gitcoin https://gitcoin.co/issue/pooltogether/Gitcoin_Grants_Round_9_Bounties/1/100025059