FxUSDCompounder

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0xf4f776f4 at 20093902
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 44 additional slots
-
variable spans 47 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
-
variable spans 49 additional slots
-
variable spans 48 additional slots
12 additional variables

No balances found for "FxUSDCompounder"

No transactions found for "FxUSDCompounder"


Functions
Getter at block 21428599
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
DOMAIN_SEPARATOR(view returns (bytes32)
0xb181e50ccaef81fa231eaf894c2db10077917ba0f69d65b4e8fcda3f77a1e0a8
REBALANCER_ROLE(view returns (bytes32)
0xccc64574297998b6c3edf6078cc5e01268465ff116954e3af02ff3a70a730f46
assetInfo(view returns (uint8 assetTypeaddress assetAddressuint8 assetDecimals)
(assetType=0, assetAddress=0x0000000000000000000000000000000000000000, assetDecimals=18)
converter(view returns (address)
0x0000000000000000000000000000000000000000
decimals(view returns (uint8)
18
eip712Domain(view returns (bytes1 fieldsstring namestring versionuint256 chainIdaddress verifyingContractbytes32 saltuint256[] extensions)
(fields=0x0f, name=, version=, chainId=1, verifyingContract=0xcbfc063185e2ceffacbd050976479efd53f5fe76, salt=0x0000000000000000000000000000000000000000000000000000000000000000, extensions=[])
exchangeRate(view returns (uint256 res)
1000000000000000000
getBaseToken(view returns (address)
0x0000000000000000000000000000000000000000
getExpenseRatio(view returns (uint256)
0
getHarvesterRatio(view returns (uint256)
0
getPool(view returns (address)
0x0000000000000000000000000000000000000000
getRewardTokens(view returns (address[] rewardTokens)
[]
 
getTokensIn(view returns (address[] res)
getTokensOut(view returns (address[] res)
[0x0000000000000000000000000000000000000000, 0x0000000000000000000000000000000000000000]
getTotalAssets(view returns (uint256)
0
getWithdrawFeePercentage(view returns (uint256)
0
harvester(view returns (address)
0x0000000000000000000000000000000000000000
 
liquidated(view returns (bool)
minRebalanceProfit(view returns (uint256)
0
name(view returns (string)
nav(view returns (uint256)
1000000000000000000
rewardIndexesStored(view returns (uint256[] indexes)
[]
symbol(view returns (string)
totalPendingBaseToken(view returns (uint256)
0
totalSupply(view returns (uint256)
0
treasury(view returns (address)
0x0000000000000000000000000000000000000000
vault(view returns (address)
0x0000000000000000000000000000000000000000
yieldToken(view returns (address)
0x0000000000000000000000000000000000000000
Read-only
accruedRewards(addressview returns (uint256[] rewardAmounts)
allowance(address owneraddress spenderview returns (uint256)
balanceOf(address accountview returns (uint256)
getConvertRoutes(address tokenview returns (uint256[])
getRoleAdmin(bytes32 roleview returns (bytes32)
hasRole(bytes32 roleaddress accountview returns (bool)
isValidTokenIn(address tokenview returns (bool)
isValidTokenOut(address tokenview returns (bool)
nonces(address ownerview returns (uint256)
previewDeposit(address tokenInuint256 amountTokenToDepositview returns (uint256 amountSharesOut)
previewRedeem(address tokenOutuint256 amountSharesToRedeemview returns (uint256 amountTokenOut)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
approve(address spenderuint256 amountreturns (bool)
claimRewards(addressreturns (uint256[] rewardAmounts)
decreaseAllowance(address spenderuint256 subtractedValuereturns (bool)
deposit(address receiveraddress tokenInuint256 amountTokenToDeposituint256 minSharesOutpayable returns (uint256 amountSharesOut)
grantRole(bytes32 roleaddress account
harvest(address receiveruint256 minBaseOutuint256 minFxUSDreturns (uint256 baseOutuint256 fxUSDOut)
increaseAllowance(address spenderuint256 addedValuereturns (bool)
initialize(address _treasuryaddress _harvesteraddress _converteraddress _fxUSDaddress _poolstring _namestring _symboluint256 _pid
permit(address owneraddress spenderuint256 valueuint256 deadlineuint8 vbytes32 rbytes32 s
rebalance(uint256 minFxUSDreturns (uint256 fxUSDOut)
redeem(address receiveruint256 amountSharesToRedeemaddress tokenOutuint256 minTokenOutbool burnFromInternalBalancereturns (uint256 amountTokenOut)
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
rewardIndexesCurrent(returns (uint256[] indexes)
transfer(address touint256 amountreturns (bool)
transferFrom(address fromaddress touint256 amountreturns (bool)
updateConvertRoutes(address tokenuint256[] newRoutes
updateConverter(address _newConverter
updateExpenseRatio(uint32 _newRatio
updateHarvester(address _newHarvester
updateHarvesterRatio(uint32 _newRatio
updateMinRebalanceProfit(uint256 newMinRebalanceProfit
updateTreasury(address _newTreasury
updateWithdrawFeePercentage(uint32 _newPercentage
Events
Approval(address indexed owneraddress indexed spenderuint256 value
ClaimRewards(address indexed useraddress[] rewardTokensuint256[] rewardAmounts
Deposit(address indexed calleraddress indexed receiveraddress indexed tokenInuint256 amountDepositeduint256 amountSyOut
EIP712DomainChanged(
Harvest(address indexed calleruint256 baseOutuint256 expenseuint256 bountyuint256 fxUSDOut
Initialized(uint8 version
Rebalance(address indexed calleruint256 amountBaseTokenuint256 amountFxUSD
Redeem(address indexed calleraddress indexed receiveraddress indexed tokenOutuint256 amountSyToRedeemuint256 amountTokenOut
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
Transfer(address indexed fromaddress indexed touint256 value
UpdateConvertRoutes(address tokenuint256[] routes
UpdateConverter(address indexed oldConverteraddress indexed newConverter
UpdateExpenseRatio(uint256 oldRatiouint256 newRatio
UpdateHarvester(address indexed oldHarvesteraddress indexed newHarvester
UpdateHarvesterRatio(uint256 oldRatiouint256 newRatio
UpdateMinRebalanceProfit(uint256 oldValueuint256 newValue
UpdateTreasury(address indexed oldTreasuryaddress indexed newTreasury
UpdateWithdrawFeePercentage(uint256 oldPercentageuint256 newPercentage
Constructor

This contract contains no constructor objects.

Fallback and receive

This contract contains no fallback and receive objects.

Errors
CallerIsNotHarvester(
ConverterIsZero(
ErrDepositZeroAmount(
ErrHasLiquidation(
ErrInsufficientHarvestedBaseToken(
ErrInsufficientHarvestedFxUSD(
ErrInsufficientRebalancedFxUSD(
ErrInsufficientSharesOut(
ErrInsufficientTokensOut(
ErrInvalidTokenIn(
ErrInvalidTokenOut(
ErrNotLiquidatedBefore(
ErrRedeemZeroShares(
ExpenseRatioTooLarge(
HarvesterRatioTooLarge(
TreasuryIsZero(
WithdrawFeePercentageTooLarge(