SFT Protocol
English
  • SFT Protocol
  • Protocol
    • πŸ”Security & Audit
    • πŸ›£οΈRoadmap
    • 🏷️Contact Us
  • Products
    • πŸ”¨Staking Minting
    • πŸ”‘Redemption
    • πŸ’°Farm
    • 🚰Provide Liquidity
    • πŸ“ˆLending
    • ⛓️Cross-chain Bridge
    • ☁️RPC Cloud
  • Collaborators
    • 🀝FIL Holders
    • πŸ›‘οΈEquipment Providers
    • πŸ•ΈοΈNode Partners
  • Tutorials
    • πŸ“‘Product Tutorials
      • Stake FIL to Sealing Nodes
        • FVM
      • Stake FIL to Pool
      • Farm Stake and Income
      • Redemption Process
      • Pool Lending Process
    • πŸͺ™Address and Wallet
      • TP Wallet Usage
      • Metamask Wallet Usage
      • FEVM Address Explanation
    • πŸ”ŠMarketing Promotion Plan
  • Technical Documentation
    • Technical Architecture
    • Smart Contracts
    • Technical Description
      • LendingPool Contract
      • Swap Contract
      • Reward Contract
Powered by GitBook
On this page
  • 1. DistributeReward
  • 2. Unstake
  1. Technical Documentation
  2. Technical Description

Reward Contract

1. DistributeReward

This method is the entry point for distributing profits to users who pledge SFT each day. The profit distribution unit is the order of pledged SFT. In version V2, the following additions have been made when distributing profits:

β‘  Check whether the order has a mortgage loan in the borrowing pool. If so, calculate the loan interest according to the rules described in the repay method above and repay it;

β‘‘ Check whether the order's pledge time has expired and is still in the pledged state. If so, the order will be automatically renewed.

2. Unstake

Users can unpledge SFT orders after they expire. In version V2, there is a new restriction: orders in the pledged state cannot be unpledged.

PreviousSwap Contract

Last updated 1 year ago