Tables

This page lists all tables on the pol.fusion contract, including their descriptions and a breakdown of each datapoint stored in the table.

config2

delegated_bandwidth

pools_struct

refund_request

renters

state3

top21

config2

The config singleton stores the percentage of revenue that should be allocated to Alcor liquidity, and the long term CPU rental pool.

Column
Type
Description

liquidity_allocation_1e6

uint64_t

The 1e6 scaled percentage of POL revenue that should be used to provide liquidity on Alcor

rental_pool_allocation_1e6

uint64_t

The 1e6 scaled percentage of POL revenue that should be moved into the CPU rental pool

lswax_wax_pool_id

uint64_t

The pool ID of the LSWAX/WAX liquidity pool on Alcor

delegated_bandwidth

The delegated bandwidth table is stored on the eosio system contract, and is referenced in our smart contracts so it can be accessed for managing CPU rentals.

pools_struct

The pools struct is located on Alcor's swap.alcor contract, and is referenced in our contract so we can automate the process of managing the protocol's liquidity position on Alcor.

refund_request

The refund request table is located on the eosio system contract, and is referenced in our contract so that we can claim refunds after we unstake WAX from wallets who rented CPU.

renters

The renters table is used for keeping track of wallets who have active CPU rentals through WaxFusion's long term rental system.

Column
Type
Description

ID

uint64_t

A unique ID to identify the row. It uses available_primary_key

renter

name

The WAX address that paid for the CPU rental

rent_to_account

name

The WAX address that receives the CPU from the renter

amount_staked

asset

The amount of WAX that is currently staked to the rent_to_account for this rental

expires

uint64_t

The epoch timestamp that the rental will be considered expired

state3

The state3 singleton keeps track of the current global state of this contract

Column
Type
Description

wax_available_for_rentals

asset

The amount of WAX that is currently available for people to rent CPU

next_day_end_time

uint64_t

The epoch timestamp that the current "full day" ends (used for timing CPU rentals)

cost_to_rent_1_wax

asset

The WAX price that users will pay to rent 1 WAX for 1 full day

last_vote_time

uint64_t

The epoch timestamp of the last time this contract has refreshed its vote for block producers

wax_bucket

asset

The amount of WAX currently waiting to be allocated to protocol owned liquidity on Alcor

lswax_bucket

asset

The amount of lsWAX currently waiting to be allocated to protocol owned liquidity on Alcor

last_liquidity_addition_time

uint64_t

The epoch timestamp of the last time funds were added to the protocol's liquidity position on Alcor

wax_allocated_to_rentals

asset

The amount of WAX currently being staked to users via long term CPU rental

pending_refunds

asset

The amount of WAX that is in the refunding process on the system contract

last_rebalance_time

uint64_t

The timestamp of the last time the rebalance action was successfully called on this contract

top21

The top21 singleton keeps track of which block producers are in the top 21 on the system contract

Column
Type
Description

block_producers

vector<name>

A list of the top 21 block producers as of the last update

last_update

uint64_t

The epoch timestamp of the last time this table was refreshed

Last updated