Skip to content

Latest commit

 

History

History
61 lines (46 loc) · 4.05 KB

README.md

File metadata and controls

61 lines (46 loc) · 4.05 KB

Sturgeon contracts

Deployments

Real

Unreal testnet

Develop

Compile, test, etc

forge install
forge build
forge test -vv
forge coverage
forge fmt

Deploy

forge script DeployReal --skip-simulation --broadcast --with-gas-price 300000000 --rpc-url https://real.drpc.org --slow --verify --verifier blockscout --verifier-url https://explorer.re.al/api?

Add liquidator routes

Example of adding USDC-DAI route for Unreal testnet:

cast send -i --legacy --rpc-url https://rpc.unreal.gelato.digital 0xE0D142466d1BF88FE23D5D265d76068077E4D6F0 'addLargestPools((address,address,address,address)[],bool)' '[("0x1933cB66cB5A2b47A93753773C556ab6CA825831","0x95b012C1D02c859dab6b302F4b72941Ba4E3C3C3","0xabAa4C39cf3dF55480292BBDd471E88de8Cc3C97","0x665D4921fe931C0eA1390Ca4e0C422ba34d26169")]' false

View underlying share price

cast call --rpc-url https://rpc.unreal.gelato.digital 0x35bf701C24357FD0C7F60376044323A2a830ad78 'getLiquidBoxSharePrice(address,address)(uint256)' 0x67048eA97Ca5DFDAe111A2304af1aED5115C7946 0xabAa4C39cf3dF55480292BBDd471E88de8Cc3C97