REX33

Linea ERC-20 Token

0xe4eeb461ad1e4ef8b8ef71a33694ccd84af051c4

Solidity v0.8.28+commit.7893614a

Fungible token following the ERC-20 standard.

🤖
Query this contract from your AI
Reference: 0xe4eeb461ad1e4ef8b8ef71a33694ccd84af051c4
Sample prompt: "Tell me the current state of linea/0xe4eeb461ad1e4ef8b8ef71a33694ccd84af051c4"
No AI wired up yet? → mcp.smarts.md
Linea is a docs-only chain on Smarts: source code and ABI are indexed, but live on-chain data (state, recent events, admin profile) is not currently available. AI agents can still query get_contract_info and get_contract_source via MCP.

Overview

Read Functions
31
Write Functions
16
Events
14

Read Functions

accessHub() view

address of the central access Hub

Returns

Name Type Description
address
activePeriod() view

the most recent active period the contract has interacted in

Returns

Name Type Description
uint256
allowance(owner: address, spender: address) view
dev: See {IERC20-allowance}.

Parameters

Name Type Description
owner address
spender address

Returns

Name Type Description
uint256
asset() view
dev: See {IERC4626-asset}.

Returns

Name Type Description
address
balanceOf(account: address) view
dev: See {IERC20-balanceOf}.

Parameters

Name Type Description
account address

Returns

Name Type Description
uint256
convertToAssets(shares: uint256) view
dev: See {IERC4626-convertToAssets}.

Parameters

Name Type Description
shares uint256

Returns

Name Type Description
uint256
convertToShares(assets: uint256) view
dev: See {IERC4626-convertToShares}.

Parameters

Name Type Description
assets uint256

Returns

Name Type Description
uint256
decimals() view
dev: Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the default value returned by this function, unless it's overridden. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}.

Returns

Name Type Description
uint8
getPeriod() view

returns the block.timestamp divided by 1 week in seconds

Returns

Name Type Description
period uint256 period the period used for gauges
isCooldownActive() view

determines whether the cooldown is active

Returns

Name Type Description
bool
isUnlocked() view

if the contract is unlocked for deposits

Returns

Name Type Description
bool
maxDeposit(address) view
dev: See {IERC4626-maxDeposit}.

Parameters

Name Type Description
address

Returns

Name Type Description
uint256
maxMint(address) view
dev: See {IERC4626-maxMint}.

Parameters

Name Type Description
address

Returns

Name Type Description
uint256
maxRedeem(owner: address) view
dev: See {IERC4626-maxRedeem}.

Parameters

Name Type Description
owner address

Returns

Name Type Description
uint256
maxWithdraw(owner: address) view
dev: See {IERC4626-maxWithdraw}.

Parameters

Name Type Description
owner address

Returns

Name Type Description
uint256
name() view
dev: Returns the name of the token.

Returns

Name Type Description
string
operator() view

address of the operator

Returns

Name Type Description
address
periodUnlockStatus(uint256) view

whether the periods are unlocked

Parameters

Name Type Description
uint256

Returns

Name Type Description
bool
previewDeposit(assets: uint256) view
dev: See {IERC4626-previewDeposit}.

Parameters

Name Type Description
assets uint256

Returns

Name Type Description
uint256
previewMint(shares: uint256) view
dev: See {IERC4626-previewMint}.

Parameters

Name Type Description
shares uint256

Returns

Name Type Description
uint256
previewRedeem(shares: uint256) view
dev: See {IERC4626-previewRedeem}.

Parameters

Name Type Description
shares uint256

Returns

Name Type Description
uint256
previewWithdraw(assets: uint256) view
dev: See {IERC4626-previewWithdraw}.

Parameters

Name Type Description
assets uint256

Returns

Name Type Description
uint256
ratio() view

returns the ratio of xRam per X33 token

Returns

Name Type Description
uint256
rex() view

the rex token

Returns

Name Type Description
address
symbol() view
dev: Returns the symbol of the token, usually a shorter version of the name.

Returns

Name Type Description
string
totalAssets() view
dev: See {IERC4626-totalAssets}.

Returns

Name Type Description
uint256
totalSupply() view
dev: See {IERC20-totalSupply}.

Returns

Name Type Description
uint256
voteModule() view

the address of the vote module

Returns

Name Type Description
address _voteModule the vote module contract address
voter() view

address of the voter contract

Returns

Name Type Description
address _voter the voter contract address
whitelistedAggregators(address) view

Parameters

Name Type Description
address

Returns

Name Type Description
bool
xRex() view

the address of the xREX token (staking/voting token)

Returns

Name Type Description
address _xRex the address

Write Functions

approve(spender: address, value: uint256) nonpayable
dev: See {IERC20-approve}. NOTE: If `value` is the maximum `uint256`, the allowance is not updated on `transferFrom`. This is semantically equivalent to an infinite approval. Requirements: - `spender` cannot be the zero address.

Parameters

Name Type Description
spender address
value uint256

Returns

Name Type Description
bool
claimIncentives(_feeDistributors: address[], _tokens: address[][]) nonpayable

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
claimRebase() nonpayable

claims the rebase accrued to x33

compound() nonpayable

compounds any existing RAM within the contract

deposit(assets: uint256, receiver: address) nonpayable
dev: See {IERC4626-deposit}.

Parameters

Name Type Description
assets uint256
receiver address

Returns

Name Type Description
uint256
mint(shares: uint256, receiver: address) nonpayable
dev: See {IERC4626-mint}.

Parameters

Name Type Description
shares uint256
receiver address

Returns

Name Type Description
uint256
redeem(shares: uint256, receiver: address, owner: address) nonpayable
dev: See {IERC4626-redeem}.

Parameters

Name Type Description
shares uint256
receiver address
owner address

Returns

Name Type Description
uint256
rescue(_token: address, _amount: uint256) nonpayable

rescue stuck tokens

Parameters

Name Type Description
_token address
_amount uint256
submitVotes(_pools: address[], _weights: uint256[]) nonpayable

submits the optimized votes for the epoch

Parameters

Name Type Description
_pools address[]
_weights uint256[]
swapIncentiveViaAggregator(_params: tuple) nonpayable

swap function using aggregators to process rewards into RAM

Parameters

Name Type Description
_params tuple
transfer(to: address, value: uint256) nonpayable
dev: See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `value`.

Parameters

Name Type Description
to address
value uint256

Returns

Name Type Description
bool
transferFrom(from: address, to: address, value: uint256) nonpayable
dev: See {IERC20-transferFrom}. Skips emitting an {Approval} event indicating an allowance update. This is not required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve]. NOTE: Does not update the allowance if the current allowance is the maximum `uint256`. Requirements: - `from` and `to` cannot be the zero address. - `from` must have a balance of at least `value`. - the caller must have allowance for ``from``'s tokens of at least `value`.

Parameters

Name Type Description
from address
to address
value uint256

Returns

Name Type Description
bool
transferOperator(_newOperator: address) nonpayable

transfers the operator via accesshub

Parameters

Name Type Description
_newOperator address
unlock() nonpayable

allows the operator to unlock the contract for the current period

whitelistAggregator(_aggregator: address, _status: bool) nonpayable

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
withdraw(assets: uint256, receiver: address, owner: address) nonpayable
dev: See {IERC4626-withdraw}.

Parameters

Name Type Description
assets uint256
receiver address
owner address

Returns

Name Type Description
uint256

Events

AggregatorWhitelistUpdated(aggregator: address, status: bool)

Event emitted when an aggregator's whitelist status changes

Name Type Indexed Description
aggregator address
status bool
Approval(owner: address, spender: address, value: uint256)
Name Type Indexed Description
owner address
spender address
value uint256
ClaimedIncentives(feeDistributors: address[], tokens: address[][])
Name Type Indexed Description
feeDistributors address[]
tokens address[][]
Compounded(oldRatio: uint256, newRatio: uint256, amount: uint256)
Name Type Indexed Description
oldRatio uint256
newRatio uint256
amount uint256
Deposit(sender: address, owner: address, assets: uint256, shares: uint256)

Events

Name Type Indexed Description
sender address
owner address
assets uint256
shares uint256
Entered(user: address, amount: uint256, ratioAtDeposit: uint256)
Name Type Indexed Description
user address
amount uint256
ratioAtDeposit uint256
Exited(user: address, _outAmount: uint256, ratioAtWithdrawal: uint256)
Name Type Indexed Description
user address
_outAmount uint256
ratioAtWithdrawal uint256
NewOperator(_oldOperator: address, _newOperator: address)
Name Type Indexed Description
_oldOperator address
_newOperator address
Rebased(oldRatio: uint256, newRatio: uint256, amount: uint256)
Name Type Indexed Description
oldRatio uint256
newRatio uint256
amount uint256
SwappedBribe(operator: address, tokenIn: address, amountIn: uint256, amountOut: uint256)
Name Type Indexed Description
operator address
tokenIn address
amountIn uint256
amountOut uint256
Transfer(from: address, to: address, value: uint256)
Name Type Indexed Description
from address
to address
value uint256
Unlocked(_ts: uint256)
Name Type Indexed Description
_ts uint256
UpdatedIndex(_index: uint256)
Name Type Indexed Description
_index uint256
Withdraw(sender: address, receiver: address, owner: address, assets: uint256, shares: uint256)
Name Type Indexed Description
sender address
receiver address
owner address
assets uint256
shares uint256