defi-sdk
defi-sdk copied to clipboard
feature: stake-dao adapters and tests for DeFi-SDK integration
4 StakeDAO assets to be integrated (along with the underlying token after the comma)
- sdcrvRenWSBTC (sbtcVaultAddress in test): 0x24129B935AfF071c4f0554882C0D9573F4975fEd, crvRenWSBTC (sbtcCrv in test): 0x075b1bb99792c9E1041bA13afEf80C91a1e70fB3
- sd3Crv: 0xB17640796e4c27a39AF51887aff3F8DC0daF9567, 3Crv: 0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490
- sdeursCRV: 0xCD6997334867728ba14d7922f72c893fcee70e84, eursCRV: 0x194eBd173F6cDacE046C53eACcE9B953F28411d1
- sdveCrv: 0x478bBC744811eE8310B461514BDc29D03739084D, veCrv (non-tradable): 0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2, CRV: 0xD533a949740bb3306d119CC777fa900bA034cd52
Tests have been written for (1) and (4), as for those of (2), (3) will follow exact pattern of (1)
For (4), the actual underlying asset i.e. veCrv is non-tradable, so you may derive the price for sdveCrv from CRV, as 1 sdveCrv is minted for 1 CRV deposited into the vault, and hence I've set its rate as 1e18 in the Component, based off this understanding.