Ubit Docs
  • Summary
  • DOCUMENTATION
    • Learn about the Ubit Platform
      • Ubit Overview: vision, strategy and platform components
      • The Ubit Blockchain
        • Discovering the Network
        • Ubit Consensus
        • Delegation through Staking with Validators
        • Ethereum (EVM) Compatibility and Smart Contracts
        • Boosting Ubit's Scalability
      • Ubit Token (UBIT)
        • UBIT Tokenomics
        • Exchanges, Wallets, On-Ramps and DeFi Tools Supporting UBIT
        • UBIT on Other Chains
      • Interoperability
      • Ubit Governance and Development
        • Ubit Assembly
        • Ubit Improvement Proposals (FIPs)
      • Wallets supporting Ubit
    • Ubit for Business
    • Things you can do on Ubit
      • Interacting with the Ubit Blockchain
      • Ubit Ecosystem
      • Community
      • Grants and Bounties
    • Ubit Mobile Infrastructure Use Cases
  • Developers
    • Network Details
      • Ubit Mainnet
      • Ubit Testnet Ubit
      • Token Faucets
      • Network Upgrades
        • Upgrade Guide
        • Upgrade Guide (explorer nodes)
        • Block 13,800,000 Fork
        • FIP's
    • Ubit Consensus
      • Contracts Overview
      • Stake, Delegate and Withdraw
      • Vote
      • End-of-Cycle Flow
      • Contract Addresses
    • How to run network nodes
    • Resources & Tools
      • TheGraph
      • WalletConnect on Ubit
    • Important smart contracts
      • Ubit Token
      • Ubit Dollar
      • Major Deployed Contracts
      • Bridges
        • Ethereum ↔ Ubit GoodDollar Token
        • Ethereum ↔ Ubit UBIT20 Tokens
        • BSC ↔ Ubit BNB
        • BSC ↔ Ubit Native
        • BSC ↔ Ubit UBIT20
        • Ethereum ↔ Ubit Native
    • How to become a validator
      • Getting started as a validator
      • Getting started as on the Ubit testnet
  • Links
    • Discord
    • Facebook
    • GitHub
    • LinkedIn
    • Medium
    • Telegram
    • Twitter
    • YouTube
Powered by GitBook
On this page
  • Stake
  • Delegate
  • Withdraw
  1. Developers
  2. Ubit Consensus

Stake, Delegate and Withdraw

PreviousContracts OverviewNextVote

Last updated 1 year ago

The basic requirement to become a Ubit chain validator is to have a stake amount of at least 10,000 Ubit tokens. The stake amount is the sum of staked and delegated Ubit tokens of the address. This guide walks trough the process of using MEW (MyEtherWallet.com) in the process of using Ubit network.Roadmap - Those functionalities will be built into our Studio and will not require any technical knowledge in the future.

Stake

There are two options to stake (both should be called from the address which would be the validator)

  1. 1.Send Ubit tokens to the consensus contract - 0x7eFA0D9149dcAcD0A15F265C0152842b6dBaEDED on the fuse network.

  2. 2.Call the `stake` function on the consensus contract - 0x7eFA0D9149dcAcD0A15F265C0152842b6dBaEDED on the fuse network.

Delegate

Ubit token holders who don't want to run a node by themselves but still wish to participate in governing the network can delegate any amount to one of the validators.Delegating is done by calling the `delegate` function on the consensus contract with the validator address as data (see screenshot from MEW).

delegate

Withdraw

Both stakers and validators can withdraw their Ubit tokens, up to the staked/delegated amount, at any time. The withdrawn amount will be deducted from the validator stake amount, and if the stake amount becomes below the minimum stake amount - the validator will be removed from the Ubit chain validators list.There are two options to withdraw:

  1. 1.Call the `withdraw` function on the consensus contract with one parameter - the amount to withdraw. This call is for stakers, and will reduce the stake amount of the sender address.

  2. 2.Call the `withdraw` function on the consensus contract with two parameters - validator address and amount to withdraw. This call is for both stakers (who can use their own address as the parameter) and for delegators to withdraw their delegated stake on a specific validator.

withdraw option no. 1
withdraw option no. 2