LootReserve

Contract holding all PAL & extra rewards allocated to the Loot system. The tokens are then sent to users when claiming Loot rewards.

pal

contract IERC20 pal

PAL token contract

extraToken

contract IERC20 extraToken

Extra token contract

loot

address loot

Address of the Loot contract

Init

event Init(address loot)

Event emitted when the contract is initialized

MaxAllowanceSet

event MaxAllowanceSet(address token, address spender)

Event emitted when the Max allowance is set for the Loot contract

CancelReserve

event CancelReserve(uint256 retrievedPalAmount, uint256 retrievedExtraAmount)

Event emitted when the Reserve is canceled and token claimed back

Parameters

NameTypeDescription

_loot

address

Address of the Loot contract

getBalances

function getBalances() external view returns (uint256 palBalance, uint256 extraBalance)

Get this contract balances

Return Values

NameTypeDescription

palBalance

uint256

(uint256) : PAL token balance

extraBalance

uint256

(uint256) : extra token balance

getRemainingAllowances

function getRemainingAllowances() external view returns (uint256 palAllowance, uint256 extraAllowance)

Get this contract remaining allowances for the Loot contract

Return Values

NameTypeDescription

palAllowance

uint256

(uint256) : PAL remaining allowance

extraAllowance

uint256

(uint256) : extra remaining allowance

resetMaxAllowance

function resetMaxAllowance() external

Resets the allowances for the Loot contract

Last updated