mineInfo
function mineInfo(address user, uint256 number) public view override
returns (uint256) {
unchecked {
return _mineInfo[user][number];
}
}
The function of mineInfo is to view the data stored in the _mineInfo mapping.
mapping(address => mapping(uint256 => uint256))private _mineInfo;
The role of _mineInfo
is to record the behavior of tokens, respectively record the block height, power changes and mining status when the token balance changes:
Type
Storing data
_mineInfo[address][1]
record block height
_mineInfo[address][2]
Record Power
_mineInfo[address][3]
Record the number of LEC mined
Whenever there is a change in TokenID within ERC721, it will be recorded through _mineInfo
. This place will save the relevant data after the transaction, including the block height at the time of the transaction, the total power at that time, and the LEC mined so far.
Last updated