Flashstake
  • 👋Start Here
    • Flash Facts
    • Real World Example
    • Three Components
  • ⚡Flashstake Protocol (FSP)
  • ⏳Time Vault Strategies (TVS)
    • Time Vault Examples
    • Time Vault Pools
    • Time Vault Fees
    • Time Vaults Database
      • Aave
        • AAVEv2-V1 Strategies
        • AAVEv2-V2 Strategies
        • AAVEv2-V3 Strategies
        • AAVEv3 Strategies
      • Lido Finance
        • stETH
      • GMX
        • GLP Strategy
      • Rocket Pool
        • rETH
    • Time Vault Interface
  • ⚖️Time Based Tokens (TBTs)
    • Flashstaking TBTs
    • Minting TBTs (Staking)
    • Burning TBTs (FlashBurn)
    • Swapping TBTs
    • FlashNFT
  • 🌊Liquid Stake (FlashLend)
  • 🎯FlashBack
  • 🪙Tokenomics (FLASH)
    • 🗝️Token Utility
    • 💡Time Switch
    • 🚂Flash Capacitor
    • 🏦Flashstake Treasury
    • 📃Token Distribution
  • 🔗Smart Contracts
    • Addresses and Links
    • Flashstake Protocol
      • Methods
      • Events
      • Error Messages
    • Time Vault Strategy
      • Methods
      • Events
    • Flash Protocol Proxy
    • Liquid Stake
      • Methods
      • Events
  • 🔒Security and Risks
    • Audits
    • Admin Functionality
    • Unit Tests
    • Testnet Competitions
    • Disclaimer
  • 🤔FAQ
    • 🔍Where does the yield come from?
    • 🔒What are the risks of Flashstaking?
    • 🌎What are some real-world use cases?
    • 📈How is the APY calculated?
    • 🔗Where are the old docs?
  • 🧑‍🚀Flashtronaut NFTs
  • 🎆xFLASH
  • 🖼️Frontend Changelog
    • 2023 Changelog
      • FLC-2306.13 (LIQUID Upgrade)
      • FLC-2304.18 (WEBBY Upgrade)
      • FLC-2303.28 (ARBYS Upgrade)
      • FLC-2302.15 (FLIDO Upgrade)
      • FLC-2301.26 (BOOTSTRAP Upgrade)
    • 2022 Changelog
      • FLC-2212.12 (GOERLI Upgrade)
      • FLC-2211.25 (WHISTLE Upgrade)
      • FLC-2211.17 (NAMESTAKE Upgrade)
  • 📜License
Powered by GitBook
On this page
  1. Smart Contracts
  2. Flashstake Protocol

Events

Strategy Registered

event StrategyRegistered(
    address indexed _strategyAddress,
    address indexed _principalTokenAddress,
    address indexed _fTokenAddress
);
  • _strategyAddress: address of the newly registered strategy.

  • _principalTokenAddress: address of the newly registered strategy’s principal token.

  • _fTokenAddress: address of the newly registered strategy’s fToken.

Staked

event Staked(uint256 _stakeId);
  • _stakeId: ID of the newly created stake.

Unstaked

event Unstaked(uint256 _stakeId, uint256 _tokensReturned, uint256 _fTokensBurned, bool _stakeFinished);
  • _stakeId: ID of the stake from which funds were unstaked.

  • _tokensReturned: amount of principal tokens withdrawn from stake.

  • _fTokensBurned: amount of fTokens burned to perform the unstake.

  • _stakeFinished: true if all staked tokens were removed from stake, false otherwise.

NFT Issued

event NFTIssued(uint256 _stakeId, uint256 nftId);
  • _stakeId: ID of the stake.

  • nftId: ID of the newly minted NFT.

PreviousMethodsNextError Messages

Last updated 2 years ago

🔗