XVSStore

XVS Store

XVS Store responsible for distributing XVS rewards

Solidity API

safeRewardTransfer

Safely transfer rewards. Only active reward tokens can be sent using this function. Only callable by owner

function safeRewardTransfer(address token, address _to, uint256 _amount) external

Parameters

NameTypeDescription

token

address

Reward token to transfer

_to

address

Destination address of the reward

_amount

uint256

Amount to transfer


setPendingAdmin

Allows the admin to propose a new admin Only callable admin

function setPendingAdmin(address _admin) external

Parameters

NameTypeDescription

_admin

address

Propose an account as admin of the XVS store


acceptAdmin

Allows an account that is pending as admin to accept the role nly calllable by the pending admin

function acceptAdmin() external

setNewOwner

Set the contract owner

function setNewOwner(address _owner) external

Parameters

NameTypeDescription

_owner

address

The address of the owner to set Only callable admin


setRewardToken

Set or disable a reward token

function setRewardToken(address _tokenAddress, bool status) external

Parameters

NameTypeDescription

_tokenAddress

address

The address of a token to set as active or inactive

status

bool

Set whether a reward token is active or not


emergencyRewardWithdraw

Security function to allow the owner of the contract to withdraw from the contract

function emergencyRewardWithdraw(address _tokenAddress, uint256 _amount) external

Parameters

NameTypeDescription

_tokenAddress

address

Reward token address to withdraw

_amount

uint256

Amount of token to withdraw


Last updated