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)

setStakingAddress()

Set the address for the live SaffronStakingV2 contract.

function setStakingAddress(address _saffronStaking) external onlyOwner

rewardUser()

Reward the user with SFI. Should be called by the SaffronStakingV2 contract.

function rewardUser(address to, uint256 amount) external override onlyStaking

emergencyWithdraw()

Emergency withdraw all SFI from the contract.

function emergencyWithdraw(address token, address to, uint256 amount) external onlyOwner

Last updated