Skip to content

mStable's mAsset (mUSD) as a yield source for PoolTogether🎫 🎟

Notifications You must be signed in to change notification settings

masaun/mstable-as-yield-source

Repository files navigation

mStable's mAsset (mUSD) as a yield source for PoolTogether🎫 🎟


【Introduction of the mStable's mAsset (mUSD) as a yield source for PoolTogether🎫 🎟】

  • This is a smart contract that mStable's mAsset (mUSD) as a yield source for PoolTogether.

 


【Workflow】

  • Diagram of workflow
    【Diagram】mStable's mAsset (mUSD) as a yield source for PoolTogether

 


【Remarks】

  • 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)

 


【Setup】

① Install modules

  • Install npm modules in the root directory
$ npm install

② Compile & migrate contracts (on local)

$ npm run migrate:local

③ Test (Mainnet-fork approach)

  • 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)


【References】




About

mStable's mAsset (mUSD) as a yield source for PoolTogether🎫 🎟

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published