REX33
Linea ERC-20 Token0xe4eeb461ad1e4ef8b8ef71a33694ccd84af051c4
Solidity v0.8.28+commit.7893614a
Fungible token following the ERC-20 standard.
Overview
Read Functions
address of the central access Hub
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
the most recent active period the contract has interacted in
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | |
| spender | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Parameters
| Name | Type | Description |
|---|---|---|
| account | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| shares | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| assets | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint8 |
returns the block.timestamp divided by 1 week in seconds
Returns
| Name | Type | Description |
|---|---|---|
| period | uint256 | period the period used for gauges |
determines whether the cooldown is active
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
if the contract is unlocked for deposits
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Parameters
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
address of the operator
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
whether the periods are unlocked
Parameters
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Parameters
| Name | Type | Description |
|---|---|---|
| assets | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| shares | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| shares | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| assets | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
returns the ratio of xRam per X33 token
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
the rex token
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
the address of the vote module
Returns
| Name | Type | Description |
|---|---|---|
| — | address | _voteModule the vote module contract address |
address of the voter contract
Returns
| Name | Type | Description |
|---|---|---|
| — | address | _voter the voter contract address |
Parameters
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
the address of the xREX token (staking/voting token)
Returns
| Name | Type | Description |
|---|---|---|
| — | address | _xRex the address |
Write Functions
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | |
| value | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
claim arbitrary rewards from specific feeDists
Parameters
| Name | Type | Description |
|---|---|---|
| _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
Parameters
| Name | Type | Description |
|---|---|---|
| assets | uint256 | |
| receiver | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| shares | uint256 | |
| receiver | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| shares | uint256 | |
| receiver | address | |
| owner | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
rescue stuck tokens
Parameters
| Name | Type | Description |
|---|---|---|
| _token | address | |
| _amount | uint256 |
submits the optimized votes for the epoch
Parameters
| Name | Type | Description |
|---|---|---|
| _pools | address[] | |
| _weights | uint256[] |
swap function using aggregators to process rewards into RAM
Parameters
| Name | Type | Description |
|---|---|---|
| _params | tuple |
Parameters
| Name | Type | Description |
|---|---|---|
| to | address | |
| value | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Parameters
| Name | Type | Description |
|---|---|---|
| from | address | |
| to | address | |
| value | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
transfers the operator via accesshub
Parameters
| Name | Type | Description |
|---|---|---|
| _newOperator | address |
allows the operator to unlock the contract for the current period
add or remove an aggregator from the whitelist (timelocked)
Parameters
| Name | Type | Description |
|---|---|---|
| _aggregator | address | address of the aggregator to update |
| _status | bool | new whitelist status |
Parameters
| Name | Type | Description |
|---|---|---|
| assets | uint256 | |
| receiver | address | |
| owner | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Events
Event emitted when an aggregator's whitelist status changes
| Name | Type | Indexed | Description |
|---|---|---|---|
| aggregator | address | ||
| status | bool |
| Name | Type | Indexed | Description |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| feeDistributors | address[] | ||
| tokens | address[][] |
| Name | Type | Indexed | Description |
|---|---|---|---|
| oldRatio | uint256 | ||
| newRatio | uint256 | ||
| amount | uint256 |
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| sender | address | ✓ | |
| owner | address | ✓ | |
| assets | uint256 | ||
| shares | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| user | address | ✓ | |
| amount | uint256 | ||
| ratioAtDeposit | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| user | address | ✓ | |
| _outAmount | uint256 | ||
| ratioAtWithdrawal | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| _oldOperator | address | ||
| _newOperator | address |
| Name | Type | Indexed | Description |
|---|---|---|---|
| oldRatio | uint256 | ||
| newRatio | uint256 | ||
| amount | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| operator | address | ✓ | |
| tokenIn | address | ✓ | |
| amountIn | uint256 | ||
| amountOut | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| _ts | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| _index | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| sender | address | ✓ | |
| receiver | address | ✓ | |
| owner | address | ✓ | |
| assets | uint256 | ||
| shares | uint256 |