WrappedTokenTreasuryV2

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0x3612f534 at 19460683
Slot
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

No balances found for "WrappedTokenTreasuryV2"

No transactions found for "WrappedTokenTreasuryV2"


Functions
Getter at block 21346369
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
 
collateralRatio(view returns (uint256)
 
currentBaseTokenPrice(view returns (uint256)
emaLeverageRatio(view returns (uint40 lastTimeuint24 sampleIntervaluint96 lastValueuint96 lastEmaValue)
(lastTime=0, sampleInterval=0, lastValue=0, lastEmaValue=0)
fToken(view returns (address)
0x9216272158f563488ffc36afb877aca2f265c560
getHarvesterRatio(view returns (uint256)
0
getRebalancePoolRatio(view returns (uint256)
0
 
harvestable(view returns (uint256)
 
isBaseTokenPriceValid(view returns (bool _isValid)
 
isUnderCollateral(view returns (bool)
 
leverageRatio(view returns (uint256)
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 roleview returns (bytes32)
getUnderlyingValue(uint256 _amountview returns (uint256)
getWrapppedValue(uint256 _amountview returns (uint256)
hasRole(bytes32 roleaddress accountview returns (bool)
maxMintableFToken(uint256 _newCollateralRatioview returns (uint256 _maxBaseInuint256 _maxFTokenMintable)
maxMintableXToken(uint256 _newCollateralRatioview returns (uint256 _maxBaseInuint256 _maxXTokenMintable)
maxRedeemableFToken(uint256 _newCollateralRatioview returns (uint256 _maxBaseOutuint256 _maxFTokenRedeemable)
maxRedeemableXToken(uint256 _newCollateralRatioview returns (uint256 _maxBaseOutuint256 _maxXTokenRedeemable)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
grantRole(bytes32 roleaddress account
harvest(
initialize(address _platformaddress _rebalancePoolSplitteraddress _rateProvideraddress _priceOracleuint256 _baseTokenCapuint24 sampleInterval
initializeProtocol(uint256 _baseInreturns (uint256 fTokenOutuint256 xTokenOut)
mintFToken(uint256 _baseInaddress _recipientreturns (uint256 _fTokenOut)
mintXToken(uint256 _baseInaddress _recipientreturns (uint256 _xTokenOut)
notifyStrategyProfit(uint256 _amount
redeem(uint256 _fTokenInuint256 _xTokenInaddress _ownerreturns (uint256 _baseOut)
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress 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
Events
Harvest(address indexed calleruint256 totalRewardsuint256 rebalancePoolRewardsuint256 harvestBounty
Initialized(uint8 version
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
Settle(uint256 oldPriceuint256 newPrice
UpdateBaseTokenCap(uint256 oldBaseTokenCapuint256 newBaseTokenCap
UpdateEMASampleInterval(uint256 oldSampleIntervaluint256 newSampleInterval
UpdateHarvesterRatio(uint256 oldRatiouint256 newRatio
UpdatePlatform(address indexed oldPlatformaddress indexed newPlatform
UpdatePriceOracle(address indexed oldPriceOracleaddress indexed newPriceOracle
UpdateRateProvider(address indexed oldRateProvideraddress indexed newRateProvider
UpdateRebalancePoolRatio(uint256 oldRatiouint256 newRatio
UpdateRebalancePoolSplitter(address indexed oldRebalancePoolSplitteraddress indexed newRebalancePoolSplitter
UpdateStrategy(address indexed oldStrategyaddress indexed newStrategy
Constructor
constructor(address _baseTokenaddress _fTokenaddress _xToken
Fallback and receive

This contract contains no fallback and receive objects.

Errors
ErrorCollateralRatioTooSmall(
ErrorEMASampleIntervalTooSmall(
ErrorExceedTotalCap(
ErrorHarvesterRatioTooLarge(
ErrorInsufficientInitialBaseToken(
ErrorInvalidOraclePrice(
ErrorInvalidTwapPrice(
ErrorProtocolInitialized(
ErrorRebalancePoolRatioTooLarge(
ErrorUnderCollateral(
ErrorZeroAddress(