# mineInfo

```solidity
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.

```solidity
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:

<table><thead><tr><th width="304">Type</th><th width="421.3333333333333">Storing data</th></tr></thead><tbody><tr><td>_mineInfo[address][1]</td><td>record block height</td></tr><tr><td>_mineInfo[address][2]</td><td>Record Power</td></tr><tr><td>_mineInfo[address][3]</td><td>Record the number of LEC mined</td></tr></tbody></table>

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.
