Menu

Post image 1
Post image 2
1 / 2
0

Everystake.one Staking

DEV Community·Swatantra goswami·29 days ago
#vctDInoY
Reading 0:00
15s threshold

import { ethers , formatUnits , parseUnits } from ' ethers ' ; import erc20 from ' ../../abis/erc20.json ' ; // Contract addresses extracted from @everstake/wallet-sdk-hysp bundle (eth_mainnet) const HYSP = { issuanceVault : ' 0x5455222CCDd32F85C1998f57DC6CF613B4498C2a ' , redemptionVault : ' 0x9C3743582e8b2d7cCb5e08caF3c9C33780ac446f ' , oracle : ' 0x6f51d8aF5bE2cF3517B8d6Cd07361bE382E83be6 ' , mToken : ' 0x548857309BEfb6Fb6F20a9C5A56c9023D892785B ' , }; const ZERO_REFERRER = ethers . ZeroHash ; const MEVUSD_DECIMALS = 18 ; const SECONDS_IN_DAY = 86400 ; const DAYS_IN_YEAR = 365 ; const issuanceVaultAbi = [ ' function depositInstant(address tokenIn, uint256 amountToken, uint256 minReceiveAmount, bytes32 referrerId) external ' , ]; const redemptionVaultAbi = [ ' function redeemInstant(address tokenOut, uint256 amountMTokenIn, uint256 minReceiveAmount) external ' , ' function redeemRequest(address tokenOut, uint256 amountMTokenIn) external returns (uint256) ' , ]; const oracleAbi = [ ' function lastAnswer()…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More