REX33
Linea ERC-20 Token0xe4eeb461ad1e4ef8b8ef71a33694ccd84af051c4
Solidity v0.8.28+commit.7893614a
Fungible token following the ERC-20 standard.
概览
读取函数
address of the central access Hub
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
the most recent active period the contract has interacted in
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 |
Returns the remaining token amount that spender is allowed to transfer from owner.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Address that granted the allowance.✨ AI |
| spender | address | Address allowed to spend the tokens.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Remaining allowance in token units (uint256) that spender can transfer from owner.✨ AI |
Return the address of the ERC-20 asset token used by this contract.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address of the ERC-20 asset token managed by this contract.✨ AI |
Returns the token balance for the specified account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| account | address | Address to query the ERC-20 token balance for.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The account's token balance as a uint256.✨ AI |
Return the amount of underlying assets corresponding to a given number of shares.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| shares | uint256 | Number of vault shares to convert to underlying assets.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Amount of underlying assets that map to the given shares, in token units.✨ AI |
Return the number of shares corresponding to a specified amount of underlying assets.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| assets | uint256 | Amount of underlying tokens to convert into vault shares.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Equivalent number of shares for the given asset amount.✨ AI |
Returns the number of decimal places used by the token.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint8 | The token's decimal precision as an unsigned 8-bit integer (commonly 18).✨ AI |
returns the block.timestamp divided by 1 week in seconds
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| period | uint256 | period the period used for gauges |
determines whether the cooldown is active
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool |
if the contract is unlocked for deposits
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool |
Calculates the maximum amount of tokens the given account can deposit.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Maximum deposit amount allowed for the account, expressed in the token's smallest unit.✨ AI |
Return the maximum number of tokens that the given address is allowed to mint.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Maximum token amount the specified address may mint (in token base units).✨ AI |
Return the maximum number of REX33 tokens an account can redeem right now.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Address to check for redeemable token amount.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Maximum number of REX33 tokens the owner may redeem currently, expressed as a uint256 in token base units.✨ AI |
Return the maximum amount of underlying tokens that the given owner can withdraw.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Address of the token holder to check the current withdrawal limit for.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Maximum withdrawable amount of underlying tokens for the owner, expressed in token units.✨ AI |
Returns the token's name as a human-readable string.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The token's name as a string.✨ AI |
address of the operator
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
whether the periods are unlocked
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool |
Estimate the number of vault shares minted if you deposit a given amount of assets.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| assets | uint256 | Amount of underlying assets to deposit (in the token's smallest units).✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Estimated number of shares that would be minted for the provided assets, without modifying state.✨ AI |
Show the amount of underlying tokens required to mint a given number of shares.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| shares | uint256 | Number of vault shares to mint.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Estimated amount of underlying tokens required to mint the specified shares at the current rate.✨ AI |
Show how many underlying tokens you would receive for burning a given amount of shares.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| shares | uint256 | Number of vault shares to convert into underlying tokens in the preview.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Amount of underlying tokens that would be returned if you redeemed the given shares.✨ AI |
Estimate the number of shares required to withdraw a given amount of assets.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| assets | uint256 | Amount of underlying assets to withdraw.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Estimated number of shares that would be burned to withdraw the specified assets.✨ AI |
returns the ratio of xRam per X33 token
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 |
the rex token
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
Return the token's symbol.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The token's symbol string (short ticker, e.g., "REX33").✨ AI |
Returns the total amount of underlying assets managed by the contract.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Total underlying asset balance currently held or represented by the contract as a uint256.✨ AI |
Returns the total number of tokens in existence.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Total token supply as a uint256 expressed in the token's smallest unit (including decimals).✨ AI |
the address of the vote module
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | _voteModule the vote module contract address |
address of the voter contract
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | _voter the voter contract address |
Return whether the given address is a whitelisted aggregator.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the address is a whitelisted aggregator, otherwise false.✨ AI |
the address of the xREX token (staking/voting token)
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | _xRex the address |
写入函数
Approve spender to transfer up to value tokens from caller's account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| spender | address | Address authorized to spend tokens on caller's behalf.✨ AI |
| value | uint256 | Maximum token amount the spender is allowed to transfer.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the approval succeeded, false otherwise.✨ AI |
claim arbitrary rewards from specific feeDists
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _feeDistributors | address[] | address of the feeDists |
| _tokens | address[][] | two dimensional array for the tokens to claim |
claims the rebase accrued to x33
compounds any existing RAM within the contract
Deposit the specified amount of assets and mint the corresponding shares to the receiver.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| assets | uint256 | Amount of underlying tokens to deposit (uint256).✨ AI |
| receiver | address | Address that will receive the minted share tokens.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Number of share tokens minted to the receiver for the deposited assets (uint256).✨ AI |
Mint new tokens from shares and credit them to the specified receiver.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| shares | uint256 | Number of share units to convert into minted tokens.✨ AI |
| receiver | address | Recipient address that will receive the minted tokens.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The amount of tokens minted and credited to the receiver.✨ AI |
Redeem a number of vault shares and send the corresponding underlying assets to the receiver.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| shares | uint256 | Number of vault shares to redeem.✨ AI |
| receiver | address | Address that will receive the underlying assets.✨ AI |
| owner | address | Address whose shares are being redeemed.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Amount of underlying assets transferred to the receiver.✨ AI |
rescue stuck tokens
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _token | address | |
| _amount | uint256 |
submits the optimized votes for the epoch
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _pools | address[] | |
| _weights | uint256[] |
swap function using aggregators to process rewards into RAM
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _params | tuple |
Transfers tokens from the caller to the specified address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| to | address | Recipient address that will receive the tokens.✨ AI |
| value | uint256 | Amount of tokens to transfer, denominated in the token's smallest unit.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the transfer succeeded and a Transfer event was emitted, otherwise false.✨ AI |
Transfer tokens from one address to another using the caller's allowance.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| from | address | Address to debit tokens from; must have allowed the caller to spend this amount.✨ AI |
| to | address | Address to receive the tokens.✨ AI |
| value | uint256 | Number of tokens to transfer, expressed in the token's smallest unit.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the transfer succeeded.✨ AI |
transfers the operator via accesshub
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _newOperator | address |
allows the operator to unlock the contract for the current period
add or remove an aggregator from the whitelist (timelocked)
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _aggregator | address | address of the aggregator to update |
| _status | bool | new whitelist status |
Withdraws a specified amount of underlying assets from owner and sends them to receiver.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| assets | uint256 | Amount of underlying assets to withdraw.✨ AI |
| receiver | address | Address to receive the withdrawn assets.✨ AI |
| owner | address | Address whose shares will be redeemed to cover the withdrawal.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Number of shares redeemed (burned) from the owner to withdraw the requested assets.✨ AI |
事件
Event emitted when an aggregator's whitelist status changes
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| aggregator | address | ||
| status | bool |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| feeDistributors | address[] | ||
| tokens | address[][] |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| oldRatio | uint256 | ||
| newRatio | uint256 | ||
| amount | uint256 |
Events
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| sender | address | ✓ | |
| owner | address | ✓ | |
| assets | uint256 | ||
| shares | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| user | address | ✓ | |
| amount | uint256 | ||
| ratioAtDeposit | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| user | address | ✓ | |
| _outAmount | uint256 | ||
| ratioAtWithdrawal | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| _oldOperator | address | ||
| _newOperator | address |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| oldRatio | uint256 | ||
| newRatio | uint256 | ||
| amount | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| operator | address | ✓ | |
| tokenIn | address | ✓ | |
| amountIn | uint256 | ||
| amountOut | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| _ts | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| _index | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| sender | address | ✓ | |
| receiver | address | ✓ | |
| owner | address | ✓ | |
| assets | uint256 | ||
| shares | uint256 |