saffron.finance
HomeGovernanceLaunch App
  • Introduction
  • Saffron Finance
    • ♨️ Saffron V2
      • Saffron KCC
        • Saffron Converter
        • Saffron Insurance Fund
        • Saffron Mojito Adapter v2
        • Saffron Mojito Auto Compounder
        • Saffron Pool v2
        • Saffron Position NFT
        • Saffron Position Token
      • Saffron V2 Protocol
      • Saffron Staking V2
        • Saffron Staking V2
        • SFI Rewarder
    • 🌺Saffron V1
    • 🎓Saffron Academy
    • 📝Whitepaper
  • Governance
    • Vote
    • Governance
  • Community
    • Twitter
    • Telegram
    • Discord
    • Github
    • Medium
    • Youtube
Powered by GitBook
On this page
  • Introduction
  • Constructor

Was this helpful?

  1. Saffron Finance
  2. ♨️ Saffron V2
  3. Saffron Staking V2

SFI Rewarder

PreviousSaffron Staking V2NextSaffron V1

Last updated 3 years ago

Was this helpful?

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)
Type
Name
Description

address

_sfi

setStakingAddress()

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()

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()

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.

Source Code
Source Code
Source Code
Source Code