Tables
This page lists all tables on the dapp.fusion contract, including their descriptions and a breakdown of each datapoint stored in the table.
Quick Links
state2 (pol_contract namespace)
account
The account table is a table that is used on all standard token contracts. It is referenced in this contract in order to look up WAX balances for various contracts, allowing this contract to aggregate data related to the protocol's TVL
delegated_bandwidth
This table is actually on the eosio system contract, and keeps track of who has CPU/NET staked. It is referred to in our contracts for CPU rental management.
epochs
The epochs table keeps track of each epoch that has ever taken place.
start_time
uint64_t
The epoch timestamp when the epoch started. This is used as an epoch_id to reference the epoch in other parts of the contract
time_to_unstake
uint64_t
The epoch timestamp when the contract is able to unstake all WAX associated with an epoch, in order to ensure that funds are returned to the main contract in time for the redemption period
cpu_wallet
name
The CPU contract that holds the funds for this particular epoch
wax_bucket
asset
The amount of WAX that has been transferred to the CPU contract related to this epoch
wax_to_refund
asset
The amount of WAX that has been requested by sWAX holders for redemptions from this epoch's wax_bucket
redemption_period_start_time
uint64_t
The epoch timestamp when redemptions begin for this epoch (this is also the epoch's end time)
redemption_period_end_time
uint64_t
redemption_period_start_time + redemption_period_length_seconds from the config table. After this timestamp, unclaimed redemption funds are cycled back into the main pool
total_cpu_funds_returned
asset
The amount of WAX that has been returned to the dapp contract, from the CPU contract assigned to this epoch
total_added_to_redemption_bucket
asset
The amount of WAX that has been added to this epoch's redemption pool, so sWAX holders who requested redemptions can claim their WAX
global
The global singleton keeps a record of the global state and configuration of the contract
swax_currently_earning
asset
The amount of sWAX that is issued, but has not been liquified
swax_currently_backing_lswax
asset
The amount of sWAX that is currently being used as the backing of lsWAX
liquified_swax
asset
The amount of sWAX that has been liquified, which is also the total supply of lsWAX
revenue_awaiting_distribution
asset
The amount of rewards that have been earned by the protocol, but have not yet been distributed
total_revenue_distributed
asset
The total amount of rewards generated/distributed by the protocol in its lifetime
wax_for_redemption
asset
The amount of WAX that is currently allocated to redemption requests. If they go unclaimed for 48 hours, they will be moved into wax_available_for_rentals
last_epoch_start_time
uint64_t
The start_time of the most recently started epoch
wax_available_for_rentals
asset
The amount of WAX that can currently be used for renting CPU, and instant redemptions
cost_to_rent_1_wax
asset
The WAX price that CPU renters will pay for 1 full day of 1 WAX staked to their wallet
current_cpu_contract
name
The CPU contract that is associated with the most recently started epoch
next_stakeall_time
uint64_t
The next timestamp that the contract can send wax_available_for_rentals to one of the CPU contracts and stake it to maximize rewards
last_incentive_distribution
uint64_t
The epoch timestamp of the last time that new LP farms were created on Alcor
incentives_bucket
asset
The amount of lsWAX currently available for farming rewards
total_value_locked
asset
The total amount of WAX locked across WaxFusion's contracts (not including liquidity on Alcor)
total_shares_allocated
uint64_t
The total amount of combined shares allocated to LP farms on Alcor
last_compound_time
uint64_t
The timestamp of the last time the compound action was called
minimum_stake_amount
asset
The minimum amount of WAX that a user has to deposit in order to mint sWAX/lsWAX
minimum_unliquify_amount
asset
The minimum amount of lsWAX that must be sent to the contract in order to unliquify (convert to sWAX)
initial_epoch_start_time
uint64_t
The epoch timestamp of the first epoch that was created at the launch of WaxFusion
cpu_rental_epoch_length_seconds
uint64_t
The length of an epoch, in seconds
seconds_between_epochs
uint64_t
Amount of seconds that must elapse in the current epoch before a new epoch is created
user_share_1e6
uint64_t
The percentage of platform revenue that is allocated to sWAX/lsWAX holders, scaled by 1e6
pol_share_1e6
uint64_t
The percentage of platform revenue that is allocated to protocol owned liquidity, scaled by 1e6
ecosystem_share_1e6
uint64_t
The percentage of platform revenue that is allocated to LP incentives, scaled by 1e6
admin_wallets
vector<name>
A list of approved wallets that can call actions that don't pose any risk to user funds, but shouldn't be accessible by everyone (changing the price of CPU rentals, for example)
cpu_contracts
vector<name>
A list of proxy contracts that are used for staking WAX (each epoch is tied to a CPU contract)
redemption_period_length_seconds
uint64_t
The amount of seconds that a redemption period lasts before the unclaimed WAX is reallocated for CPU rentals, instant redemptions etc
seconds_between_stakeall
uint64_t
The amount of seconds that must pass before unrented funds are automatically staked for CPU, in order to maximize rewards generated by the protocol
fallback_cpu_receiver
name
If funds are not rented by the stakeall action is ready to be called, those funds will stake CPU for this wallet
protocol_fee_1e6
uint64_t
The 1e6 scaled percentage fee charged by the protocol for instant redemptions
incentives
The incentives table is stored on the swap.alcor contract, and is referenced in our contract in order to manage the creation of new LP incentives
lpfarms
The lpfarms table stores a list of which token pairs on Alcor will receive farming rewards from our ecosystem fund
poolId
uint64_t
The pool ID of the trading pair on Alcor that we want to incentivize
symbol_to_incentivize
symbol
The token symbol of the token paired against lsWAX
contract_to_incentivize
name
The token contract of the token paired against lsWAX
percent_share_1e6
uint64_t
The portion of the ecosystem_share that goes to this pair's incentive pool
pools_struct
The pools struct is located on the swap.alcor contract, and is referenced in our contract in order to manage the creation of new LP incentives
producer_info
The producer info table is stored on the eosio system contract, and stores info about block producers. This table is necessary in order for our contracts to automatically vote for the top 21 block producers each day, and avoid any bias when selecting producers to vote for.
redeem_requests
This table stores all redemption requests made by sWAX holders. It is scoped by the wallet who made the request(s).
epoch_id
uint64_t
The start_time of the epoch that the user requested a redemption from
wax_amount_requested
asset
The amount of WAX the user has requested from this particular epoch's wax_bucket
refund_request
This is another table stored on the eosio system contract. It is referenced in WaxFusion's contracts in order to keep track of our pending refunds from unstaking WAX via our CPU contracts
renters_table
The renters table stores information about which users are renting CPU from the short term rental system. It is scoped by the epoch ID that they are renting from. Contract pays its own RAM on these rows instead of charging users.
ID
uint64_t
A unique ID to identify this table row. It uses available_primary_key
renter
name
The WAX address of the account who paid for the rental
rent_to_account
name
The WAX address of the CPU recipient
amount_staked
asset
The total amount of WAX staked from the renter to the rent_to_account in this epoch
rewards
The rewards singleton stores the staking farm data for rewarding sWAX holders
periodStart
uint64_t
The time when the farm was first initialized
periodFinish
uint64_t
The end time of the current reward period
rewardRate
uint128_t
The amount of WAX paid out per second, scaled by 1e8
rewardsDuration
uint64_t
The amount of seconds that the current reward period lasts for
lastUpdateTime
uint64_t
The last time that the farm was updated
rewardPerTokenStored
uint128_t
The historical reward paid out per token, at the last time the farm was updated. Works similar to "reward debt" when calculating what a user is owed
rewardPool
asset
The total amount of WAX that has been deposited into the farm, all time
totalSupply
uint128_t
The amount of sWAX currently staked in the farm, including the sWAX that backs lsWAX
totalRewardsPaidOut
asset
Total amount of rewards that have been calculated when users interacted with the contract. Does not differentiate between whether or not the user has actually claimed them yet
stakers
The stakers table keeps a record of each user who interacts with the contract, including information about their sWAX balance, rewards balance etc
wallet
name
The WAX address of the user who is staking
swax_balance
asset
The amount of sWAX that a user is currently staking (does not include liquified sWAX)
claimable_wax
asset
The amount of WAX rewards that a user is currently eligible to claim (note that this may not reflect real-time data, and is only updated when a user interacts with the contract)
last_update
uint64_t
The timestamp of the last time a user interacted with the contract. This is used in the sync_user function to process past snapshots and update the user's claimable_wax balance
state2 (pol_contract namespace)
The pol_contract::state2 singleton is located on the pol.fusion smart contract, and is referenced on this contract in order to aggregate TVL data for the protocol in one place.
top21
The top21 singleton keeps a list of which block producers are currently in the top 21
block_producers
vector<name>
The wax addresses of the top 21 block producers
last_update
uint64_t
The timestamp of the last time this table was updated
Last updated