organize header

This commit is contained in:
Ricardo Guilherme Schmidt 2023-06-23 13:31:13 -03:00
parent 1375440bd5
commit e217f9b78e
No known key found for this signature in database
GPG Key ID: 3F95A3AD0B607030
1 changed files with 11 additions and 11 deletions

View File

@ -6,14 +6,6 @@ import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract StakeManager is ERC20 {
ERC20 stakedToken;
uint256 public constant MP_APY = 1;
uint256 public constant STAKE_APY = 1;
uint256 public constant MAX_BOOST = 1;
uint256 public constant MAX_MP = 1;
mapping (address => Account) accounts;
struct Account {
uint256 lockUntil;
uint256 balance;
@ -27,15 +19,23 @@ contract StakeManager is ERC20 {
uint256 totalReward;
}
uint256 public constant EPOCH_SIZE = 1 week;
uint256 public constant MP_APY = 1;
uint256 public constant STAKE_APY = 1;
uint256 public constant MAX_BOOST = 1;
uint256 public constant MAX_MP = 1;
mapping (address => Account) accounts;
mapping (uint256 => Epoch) epoch;
ERC20 stakedToken;
uint256 currentEpoch;
uint256 pendingReward;
uint256 public totalSupply;
uint256 public constant EPOCH_SIZE = 1 week;
mapping (uint256 => Epoch) epoch;
mapping (address => Account) accounts;
constructor() {
epoch[0].startTime = now();