LogoLogo
HomeAppDiscordX/Twitter
  • Overview
    • Introduction
    • Proof-of-Stake Blockchains
    • Liquid Staking
  • Aleph Zero Network
    • About Aleph Zero
    • Liquid Staking on Aleph Zero
  • The Ike Protocol
    • How It Works
    • Staking and Unstaking with Ike
    • Earning Yield
    • Definitions
    • Architecture
      • Core Smart Contracts
      • Smart Contract Functions
      • Staking and Un-staking Mechanisms
      • Community Actions
    • DAO & Governance
      • Ike DAO
      • Protocol Management Fees
    • Official Contract Addresses
  • Community
    • Community & Social Media
    • Partnerships
      • Aleph Zero Foundation
      • AZERO.ID
    • Contribute to Open Source
    • Hackathons and Meetups
  • Development Team
    • Who We Are
    • Why We Build
  • Resources
    • FAQs
    • Bug Reports
    • Feature Requests
    • Support
Powered by GitBook
LogoLogo

Copyright Water Cooler Studios, Inc. 2024

On this page
  • Write Functions
  • Staking Functions
  • Unstaking Functions
  • Community Functions
  • Read-only Functions
Export as PDF
  1. The Ike Protocol
  2. Architecture

Smart Contract Functions

PreviousCore Smart ContractsNextStaking and Un-staking Mechanisms

Last updated 6 months ago

Write Functions

Staking Functions

  1. Stake: This call takes in the user's desired number of AZERO to stake, transfers them from the user's wallet to the Vault. It then mints the appropriate number of sA0 tokens to the user's wallet.

Unstaking Functions

  1. Request Unlock: This takes the users's sA0 tokens and burns them, then sends the unlock request to the Validators. This request is made by the user when they would like to start the unstaking process. The user specifies how many of their sA0 they would like to submit for AZERO in return.

  2. Delegate Withdraw Unbonded: This tells each Validator to claim its unbonded amount, after that amount is made available to the Validator post-cooldown period. This sends all of the AZERO claimed by Validators back to the Vault.

  3. Redeem: This method returns the user's available unstaked AZERO to their wallet from the Vault.

  4. Redeem with Withdraw: This is a wrapper function that executes delegateWithdrawUnbonded and redeem.

Community Functions

  1. Compound: Anyone on the network can make a compound call. This sets off a command from the Vault that makes it all the way down to the participating Validators to claim then re-bond the claimed AZERO. This enables Ike to benefit from compounding yield rewards, and can happen at most once per . For more information on this, see .

Read-only Functions

Here is a non-exhausted list of commonly used functions.

  1. Get Fee Percentage: Returns the current protocol.

  2. Get Incentive Percentage: This returns the incentive fee given to those who execute the compound function.

  3. Get Shares from AZERO: Returns the current value sA0 in terms of AZERO. This is constantly changing. For more information, see .

  4. Get AZERO from Shares: Returns the current value AZERO in terms of sA0. This is constantly changing. For more information, see .

In addition, the Vault contract includes a number of basic getter methods for various values. For more information on these, see the contrat's interface on our Github.

Community Actions
Management Fee
Redemption Ratio
Redemption Ratio
Era
Page cover image