RewardAccounting

Inherits: IRewardAccounting

Provides ERC20-like functions for minting, burning, balance tracking and total supply. Tracking is based on a tokenId user index instead of an address.

State Variables

_stakeBalances

mapping(uint256 account => uint256) private _stakeBalances;

_stakeTotalSupply

uint256 private _stakeTotalSupply;

Functions

stakeBalanceOf

Balance of stake for a given tokenId account.

function stakeBalanceOf(uint256 tokenId) public view returns (uint256 balance);

stakeTotalSupply

Sum of all balances across all tokenIds.

function stakeTotalSupply() public view returns (uint256 supply);

_mintStake

Mint to staking account for a tokenId account.

function _mintStake(uint256 tokenId, uint256 value) internal;

_burnStake

Burn from staking account for a tokenId account.

function _burnStake(uint256 tokenId, uint256 value) internal;

Last updated