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

​​
Source Code
​
constructor(address _sfi)
Type
Name
Description
address
_sfi
​

setStakingAddress()

​​
Source Code
​
Set the address for the live SaffronStakingV2 contract.
function setStakingAddress(address _saffronStaking) external onlyOwner
Type
Name
Description
address
_saffronStaking
The address of the deployed SaffronStakingV2 contract.

rewardUser()

​​
Source Code
​
Reward the user with SFI. Should be called by the SaffronStakingV2 contract.
function rewardUser(address to, uint256 amount) external override onlyStaking
Type
Name
Description
address
to
The account to reward with SFI.
uint256
amount
The amount of SFI to reward.

emergencyWithdraw()

​​
Source Code
​
Emergency withdraw all SFI from the contract.
function emergencyWithdraw(address token, address to, uint256 amount) external onlyOwner
Type
Name
Description
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.
Copy link
On this page
Introduction
Constructor