LogoLogo
  • Ethena Overview
  • How USDe Works
  • Genesis Story
  • Alternatives: Existing Stablecoins
  • Size of the Opportunity
  • USDtb
  • Ethena Network
  • ENA
    • Tokenomics
  • Video Guides
    • How to Buy USDe
    • How to Stake USDe
    • How to Stake ENA
    • How to [Un]lock positions
  • Solution Overview
    • USDe Overview
      • Delta-Neutral Stability
      • Delta-Neutral Examples
      • Scalability
      • Censorship Resistance
      • Regulatory Compliance
    • Protocol Revenue Explanation
      • Historical Examples
      • Rewards Mechanism Explanation
      • sUSDe Rewards Mechanism
    • Underlying Derivatives
      • Futures vs Perpetuals
      • Inverse vs Linear Contracts
      • Basis Spread
    • Peg Arbitrage Mechanism
    • Liquid Stables: Dynamic Allocation
      • Current Allocation Approach
    • Scenario Analysis
    • Risks
      • Funding Risk
      • Liquidation Risk
      • Custodial Risk
      • Exchange Failure Risk
      • Backing Assets Risk
      • Stablecoin-Related Risks
      • Margin Collateral Risks
    • Governance
      • Risk Committee
  • Backing Custody & Security
    • Overview
      • Off-Exchange Settlement in detail
      • Copper Clearloop Case Study
    • Real-Time Dashboards
  • Solution Design
    • Overview
      • Github Overview
    • Key Trust Assumptions
      • Matrix of Multisig and Timelocks
    • Minting USDe
      • Order Validity Checks
      • User Security Measures
      • Mint & Redeem Key Functions
      • Mint and Redeem Contract V2
    • Staking USDe
      • Staking Key Functions
      • User Security Measures
    • Use of Oracles
    • Hedging System
      • Internal Services
      • Managing Risk from dependencies
    • Reserve Fund
    • Key Addresses
    • Backing Asset Custody
  • API Documentation
    • Overview
  • Resources
    • Custodian Attestations
    • FAQ
    • Data Repository
    • USDe + sUSDe Custodian Availability
    • Audits
    • Media Assets
    • General Risk Disclosures
    • Privacy Policy
    • Terms of Service
    • USDe Terms and Conditions - EEA
    • USDe Terms and Conditions - Non EEA
    • USDe Mint User Agreement - Non EEA
    • Testnet
Powered by GitBook
On this page
  • Overview
  • Roles in the Ethena Staking contract

Was this helpful?

Export as PDF
  1. Solution Design
  2. Staking USDe

Staking Key Functions

Important functions of the staking smart contract

Last updated 9 months ago

Was this helpful?

Overview

The Ethena Staking contract is an extension of the with the added ability for a cooldown period upon unstaking as well as a legally required ability to freeze funds for sanctioned addresses.

Roles in the Ethena Staking contract

There are three roles in the Ethena Staking contract:

  • DEFAULT_ADMIN_ROLE

  • Rewarder

  • Blacklister

You are able to view the deployed Ethena Staking contract on the Ethereum blockchain here.

DEFAULT_ADMIN_ROLE

The DEFAULT_ADMIN_ROLE is able to perform a number of operations:

  • It can set setCooldownDuration, up to a maximum value of 90 days from the unstaking request. The cooldown period is the time period from the unstaking request until the user is able to withdraw USDe.

  • It can rescue tokens using rescueTokens to move any ERC20 tokens (except USDe) to an address Ethena Labs controls. This has been implemented in case a user accidentally sends non-USDe assets to the Ethena Staking contract.

  • It can redistribute sUSDe tokens that have been locked using resdistributeLockedAmounts. Locks on sUSDe held in specific wallets have been implemented due to legal requirements to ensure sanctioned, criminal, and other high-risk actors are not able to interact with the staking contract, in the interest of complying with Sanctions, Anti-Money Laundering, and Combating the Financing of Terrorism regimes. This is extremely similar functionality to what Circle implements for USDC. Ethena is able to redistribute funds to Ethena Labs addresses (in segregated wallets/vaults from other protocol assets) from fully restricted addresses. Note that this ability is limited to sUSDe.

Rewarder

The Rewarder role is able to transfer in USDe rewards, growing the balance of USDe in the Ethena Staking contract.

Blacklister

The Blacklister role is able to grant and remove Soft_restricted_staking_role or Fully_restricted_staking_role assigned to an address. "Soft Restricted Stakers" can invoke all contract functions except unstaking (i.e., sUSDe remains transferable but USDe cannot be unstaked). "Fully Restricted Stakers" cannot interact with the staking contract or transfer sUSDe.

The user of the Blacklister role is only intended to ensure high-risk actors, such as sanctioned individuals, wallets associated with criminal activity/terrorism, and other similar individuals covered under relevant laws and regulations cannot access protocol yield. The blacklist will never be invoked at the discretion of Ethena Labs for any user absent those conditions or unless required by law enforcement pursuant to a court order, injunction, or similar official action we are required by law to comply with.

As noted above, this function is limited to sUSDe.

ERC4626 Token Vault standard