StakedLyxToken
0xDF9124ee97d7a8eB8fe845b6C6eE8a8D75B55a57
Key features
Staking
function mint(
address to,
uint256 amount,
bool allowNonLSP1Recipient,
bytes memory data
) external override {
require(msg.sender == address(pool), "StakedLyxToken: access denied");
// start calculating account rewards with updated deposit amount
bool rewardsDisabled = rewards.updateRewardCheckpoint(to);
if (rewardsDisabled) {
// update merkle distributor principal if account has disabled rewards
distributorPrincipal = distributorPrincipal + amount;
}
_mint(to, amount, allowNonLSP1Recipient, data);
}Unstaking
Token transfer
Authorization
Rewards
Pausable and ownable
Upgradeable
Last updated