YearnV2Strategy
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
6
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 44 additional slots
-
variable spans 48 additional slots
Balances ($0.00)
No balances found for "YearnV2Strategy"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "YearnV2Strategy"
ABI
ABI objects
Getter at block 20897461 assets() view returns (address[]) getUnderlyingAssetAmounts() view returns (uint256[] amounts)
assetGroupId() view returns (uint256)
0
assetRatio() pure returns (uint256[])
[1]
decimals() view returns (uint8)
18
name() view returns (string)
oneShare() view returns (uint96)
0
strategyName() view returns (string)
symbol() view returns (string)
totalSupply() view returns (uint256)
0
yTokenVault() view returns (address)
0x0000000000000000000000000000000000000000
Read-only
allowance(address owner, address spender) view returns (uint256)
balanceOf(address account) view returns (uint256)
State-modifying
Events approve(address spender, uint256 amount) returns (bool)
beforeDepositCheck(uint256[] amounts, uint256[] slippages)
beforeRedeemalCheck(uint256 ssts, uint256[] slippages)
claimShares(address smartVault, uint256 amount)
decreaseAllowance(address spender, uint256 subtractedValue) returns (bool)
depositFast(address[] assetGroup, uint256[] exchangeRates, address priceFeedManager, uint256[] slippages, struct SwapInfo[] swapInfo) returns (uint256)
doHardWork(struct StrategyDhwParameterBag dhwParams) returns (struct DhwInfo dhwInfo)
emergencyWithdraw(uint256[] slippages, address recipient)
getProtocolRewards() returns (address[], uint256[])
getUsdWorth(uint256[] exchangeRates, address priceFeedManager) returns (uint256)
increaseAllowance(address spender, uint256 addedValue) returns (bool)
initialize(string name_, uint256 assetGroupId_, address yTokenVault_)
redeemFast(uint256 shares, address masterWallet, address[] assetGroup, uint256[] slippages) returns (uint256[])
redeemShares(uint256 shares, address redeemer, address[] assetGroup, uint256[] slippages) returns (uint256[])
releaseShares(address smartVault, uint256 amount)
transfer(address to, uint256 amount) returns (bool)
transferFrom(address from, address to, uint256 amount) returns (bool)
Approval(address indexed owner, address indexed spender, uint256 value)
BeforeDepositCheckSlippages(uint256[] amounts)
BeforeRedeemalCheckSlippages(uint256 ssts)
Deposited(uint256 mintedShares, uint256 usdWorthDeposited, uint256[] assetsBeforeSwap, uint256[] assetsDeposited)
Initialized(uint8 version)
PlatformFeesCollected(address indexed strategy, uint256 sharesMinted)
Slippages(bool isDeposit, uint256 slippage, bytes data)
Transfer(address indexed from, address indexed to, uint256 value)
Withdrawn(uint256 withdrawnShares, uint256 usdWorthWithdrawn, uint256[] withdrawnAssets)
constructor(address assetGroupRegistry_, address accessControl_)
This contract contains no fallback and receive objects.
ConfigurationAddressZero()
InvalidAssetGroup(uint256 assetGroupId)
InvalidAssetGroupIdInitialization()
InvalidConfiguration()
MissingRole(bytes32 role, address account)
NotFastRedeemer(address user)
StrategyWorthIsZero()
YearnV2BeforeDepositCheckFailed()
YearnV2BeforeRedeemalCheckFailed()
YearnV2DepositToProtocolSlippagesFailed()
YearnV2NotRedeemedEnough()
YearnV2RedeemSlippagesFailed()