Syrup
  • Welcome to Syrup
  • About Syrup
    • Powered by Maple
    • Lending in Syrup
    • Commitments
    • Drips Rewards
    • Withdrawals
    • Monthly Updates
    • Pendle Integration
    • SyrupUSDC Rewards Prize Draw Program Summary
  • Technical Resources
    • Protocol Overview
    • Security
    • Addresses
  • Troubleshooting & Support
    • FAQ
    • Contact
  • Legal
    • Risks
    • Defaults and Impairments
    • Available Jurisdictions
    • Interface Terms of Use [Syrup.fi]
    • Interface Terms of Use [Syrup.fi/convert/ and Syrup.fi/stake/]
    • Privacy Policy
  • SyrupUSDC Rewards Prize Draw Terms & Conditions
Powered by GitBook
On this page
  • Contract Overview
  • Technical Specifications
  • Calculating stSYRUP Issuance Rate
  • Security and Audit
  1. SYRUP Token
  2. Staking

Staking Smart Contract Details

Last updated 6 months ago

Contract Overview

The staking smart contract is decentralized and non-custodial, meaning no third party takes possession of, actively manages, or controls staked tokens. Further, no party holds the private keys for the staking contract; it is decentralized.

Staked SYRUP remains idle in a non-custodial, decentralized smart contract - with no third-party control or private key ownership - and can be unstaked at anytime.

The main source of revenue for the protocol comes from the collection of management and service fees. Management sees are the portion of lender interest that is taken by protocol for facilitating loan origination, and service fees are paid by the borrowers as part of their overall cost of borrowing, which includes interest.

All fees accrue on a block by block basis and paid to the protocol through the smart contracts each time a borrower interest payment is made. The fees collected by the treasury can then be used to buyback SYRUP, which can be distributed to all Stakers, along with a portion of the inflation, using the following mechanism:

Technical Specifications

The RDT is Maple's implementation of the Tokenized Vault Standard. In this standard, revenue from staking rewards is distributed linearly to users that have staked their Syrup tokens.

The linear issuance mechanism means value accrues to SYRUP continuously, with no incentives to enter and exit the smart contract based on large expected distributions. Rewards are simply distributed to users continually based on their share of the staking pool. The issuance rate is the amount of SYRUP issued per second to all stakers.

Calculating stSYRUP Issuance Rate

Please note the issuance rate of SYRUP rewards being distributed returned by issuanceRate() is scaled by 18. This means to calculate the issuance rate in SYRUP tokens per second, you must divide the issuance rate returned by issuanceRate() by 18.

Security and Audit

The Maple Labs team that developed the Maple and Syrup smart contracts places the highest emphasis on security. The Maple protocol contracts went through 7+ audits during its development for Maple v2, which represents the underlying infrastructure for Syrup, SYRUP token, and stSYRUP.

stSyrup implements the and inherits its core functionality from Maple's (RDT). The standard enables the creation of tokenized vaults representing shares of a single underlying ERC-20 token - in this case stSYRUP.

More technical information regarding stSYRUP can be found in our .

Audit details can be found in our , and in this .

ERC-4626 Tokenized Vault Standard
Revenue Distribution Token
ERC-4626
Github
Github
Gitbook
article