Actions
This page lists all actions on the pol.fusion contract, including their descriptions and a list of the parameters for each action.
Quick Links
claimgbmvote
If this contract has any voting rewards to claim from the eosio system contract, this action can be called by anyone to claim those rewards. Claiming will automatically send the rewards to the main dapp contract where they will be moved into the revenue_awaiting_distribution bucket.
claimrefund
If this contract has any refunds to claim from the eosio system contract, this action can be called by anyone to claim the refund. Claiming will automatically move the claimed WAX back into the wax_available_for_rentals pool on this contract.
clearexpired
Unstakes WAX from any expired orders in the renters table, and removes the rows of the expired rentals.
limit
int
The maximum number of expired rentals that should be processed (to avoid CPU timeout issues)
deleterental
If a user calls the rentcpu action on this contract, but never pays for their rental, this action will allow them to delete the unpaid rental from our contract. Requires auth of the renter.
rental_id
uint64_t
The ID of the rental to be deleted
initconfig
Initializes the config singleton, if it doesn't exist yet. Requires auth of this contract.
initstate3
Initializes the state3 singleton. Requires auth of this contract.
rebalance
If the lswax_bucket in the state singleton is empty, and the wax_bucket has > 100 wax in it, this action will convert half of the wax into lsWAX, so that the next liquidity addition will allocate close to all of the protocol's funds. Can be called by anyone.
rentcpu
Opens a new row for a renter, which is required before the contract can accept a rental payment. If the row already exists, the action will do nothing besides sync the current contract state. Requires auth of the renter. Renter pays RAM on their row.
renter
name
The WAX address of the wallet who is renting CPU
cpu_receiver
name
The WAX address of the wallet that will receive the CPU
setallocs
Updates the portion of protocol revenue that goes to liquidity on Alcor. Requires auth of this contract.
liquidity_allocation_percent_1e6
uint64_t
The 1e6 scaled percentage that should go to liquidity. Can be set between 1% and 100%
setrentprice
Updates the cost_to_rent_1_wax in the state singleton. Requires auth of the dapp.fusion smart contract, which calls this action inline when an admin_wallet sets the rent price on that contract.
cost_to_rent_1_wax
asset
The WAX price that users will pay to rent 1 WAX for 1 full day
Last updated