WrappedTokenTreasuryV2
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
17
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 49 additional slots
-
variable spans 48 additional slots
-
variable spans 39 additional slots
Balances ($0.00)
No balances found for "WrappedTokenTreasuryV2"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "WrappedTokenTreasuryV2"
ABI
ABI objects
Getter at block 21368425 collateralRatio() view returns (uint256) currentBaseTokenPrice() view returns (uint256) harvestable() view returns (uint256) isBaseTokenPriceValid() view returns (bool _isValid) isUnderCollateral() view returns (bool) leverageRatio() view returns (uint256)
DEFAULT_ADMIN_ROLE() view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
FX_MARKET_ROLE() view returns (bytes32)
0xe88ed2d35c0cfab359fb462bf5a023d04cb058b5e7f26c13b23a5904cff6b510
PROTOCOL_INITIALIZER_ROLE() view returns (bytes32)
0x7a674bc9ca1d5ae35bc3b985343a16fa8652fb50eae4a09af3e0555006940964
SETTLE_WHITELIST_ROLE() view returns (bytes32)
0x8e2ea90053027dd0e107693aeca5d0e7b6cd7291479d8384fbbcee6d132d6716
baseToken() view returns (address)
0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee
baseTokenCap() view returns (uint256)
0
emaLeverageRatio() view returns (uint40 lastTime, uint24 sampleInterval, uint96 lastValue, uint96 lastEmaValue)
(lastTime=0, sampleInterval=0, lastValue=0, lastEmaValue=0)
fToken() view returns (address)
0x9216272158f563488ffc36afb877aca2f265c560
getHarvesterRatio() view returns (uint256)
0
getRebalancePoolRatio() view returns (uint256)
0
platform() view returns (address)
0x0000000000000000000000000000000000000000
priceOracle() view returns (address)
0x0000000000000000000000000000000000000000
rateProvider() view returns (address)
0x0000000000000000000000000000000000000000
rebalancePoolSplitter() view returns (address)
0x0000000000000000000000000000000000000000
referenceBaseTokenPrice() view returns (uint256)
0
strategy() view returns (address)
0x0000000000000000000000000000000000000000
strategyUnderlying() view returns (uint256)
0
totalBaseToken() view returns (uint256)
0
xToken() view returns (address)
0xacb3604aadf26e6c0bb8c720420380629a328d2c
Read-only
getRoleAdmin(bytes32 role) view returns (bytes32)
getUnderlyingValue(uint256 _amount) view returns (uint256)
getWrapppedValue(uint256 _amount) view returns (uint256)
hasRole(bytes32 role, address account) view returns (bool)
maxMintableFToken(uint256 _newCollateralRatio) view returns (uint256 _maxBaseIn, uint256 _maxFTokenMintable)
maxMintableXToken(uint256 _newCollateralRatio) view returns (uint256 _maxBaseIn, uint256 _maxXTokenMintable)
maxRedeemableFToken(uint256 _newCollateralRatio) view returns (uint256 _maxBaseOut, uint256 _maxFTokenRedeemable)
maxRedeemableXToken(uint256 _newCollateralRatio) view returns (uint256 _maxBaseOut, uint256 _maxXTokenRedeemable)
supportsInterface(bytes4 interfaceId) view returns (bool)
State-modifying
Events grantRole(bytes32 role, address account)
harvest()
initialize(address _platform, address _rebalancePoolSplitter, address _rateProvider, address _priceOracle, uint256 _baseTokenCap, uint24 sampleInterval)
initializeProtocol(uint256 _baseIn) returns (uint256 fTokenOut, uint256 xTokenOut)
mintFToken(uint256 _baseIn, address _recipient) returns (uint256 _fTokenOut)
mintXToken(uint256 _baseIn, address _recipient) returns (uint256 _xTokenOut)
notifyStrategyProfit(uint256 _amount)
redeem(uint256 _fTokenIn, uint256 _xTokenIn, address _owner) returns (uint256 _baseOut)
renounceRole(bytes32 role, address account)
revokeRole(bytes32 role, address account)
settle()
transferToStrategy(uint256 _amount)
updateBaseTokenCap(uint256 _baseTokenCap)
updateEMASampleInterval(uint24 _sampleInterval)
updateHarvesterRatio(uint32 _newRatio)
updatePlatform(address _platform)
updatePriceOracle(address _priceOracle)
updateRateProvider(address _rateProvider)
updateRebalancePoolRatio(uint32 _newRatio)
updateRebalancePoolSplitter(address _splitter)
updateStrategy(address _strategy)
Harvest(address indexed caller, uint256 totalRewards, uint256 rebalancePoolRewards, uint256 harvestBounty)
Initialized(uint8 version)
RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
Settle(uint256 oldPrice, uint256 newPrice)
UpdateBaseTokenCap(uint256 oldBaseTokenCap, uint256 newBaseTokenCap)
UpdateEMASampleInterval(uint256 oldSampleInterval, uint256 newSampleInterval)
UpdateHarvesterRatio(uint256 oldRatio, uint256 newRatio)
UpdatePlatform(address indexed oldPlatform, address indexed newPlatform)
UpdatePriceOracle(address indexed oldPriceOracle, address indexed newPriceOracle)
UpdateRateProvider(address indexed oldRateProvider, address indexed newRateProvider)
UpdateRebalancePoolRatio(uint256 oldRatio, uint256 newRatio)
UpdateRebalancePoolSplitter(address indexed oldRebalancePoolSplitter, address indexed newRebalancePoolSplitter)
UpdateStrategy(address indexed oldStrategy, address indexed newStrategy)
constructor(address _baseToken, address _fToken, address _xToken)
This contract contains no fallback and receive objects.
ErrorCollateralRatioTooSmall()
ErrorEMASampleIntervalTooSmall()
ErrorExceedTotalCap()
ErrorHarvesterRatioTooLarge()
ErrorInsufficientInitialBaseToken()
ErrorInvalidOraclePrice()
ErrorInvalidTwapPrice()
ErrorProtocolInitialized()
ErrorRebalancePoolRatioTooLarge()
ErrorUnderCollateral()
ErrorZeroAddress()