SFI Rewarder
Introduction
This contract holds SFI tokens minted by governance for liquidity mining rewards. It distributes rewards to users based on the SaffronStakingV2 contract. This is an extension of the Sushiswap Masterchef contract. It allows SFI in the rewards pool to be separate from SFI staked in single-asset staking via SaffronStakingV2.
Constructor
constructor(address _sfi)
address
_sfi
setStakingAddress()
setStakingAddress()
Set the address for the live SaffronStakingV2 contract.
function setStakingAddress(address _saffronStaking) external onlyOwner
address
_saffronStaking
The address of the deployed SaffronStakingV2 contract.
rewardUser()
rewardUser()
Reward the user with SFI. Should be called by the SaffronStakingV2 contract.
function rewardUser(address to, uint256 amount) external override onlyStaking
address
to
The account to reward with SFI.
uint256
amount
The amount of SFI to reward.
emergencyWithdraw()
emergencyWithdraw()
Emergency withdraw all SFI from the contract.
function emergencyWithdraw(address token, address to, uint256 amount) external onlyOwner
address
token
The ERC20 token address to withdraw from the contract.
address
to
The account that will receive the withdrawn tokens.
uint256
amount
The amount (wei) of tokens to be transferred.
Last updated
Was this helpful?