LogoLogo
▶️ App🔩 Sources🔒 Audit💬 Community
Octus Bridge (EN)
Octus Bridge (EN)
  • 🏠Welcome to Octus Bridge
  • 💻USE
    • 🚀Getting started
      • How it works
        • Cross-chain transfers
        • Governance
        • Relayers
        • Staking
      • Roles
      • How to connect wallets
      • Glossary
      • Everscale
      • How to get EVER
    • 🌉Bridge
      • Cross-chain transfer
        • Interface
        • How to
          • Transferring from another network to Everscale
          • Transferring between two outside networks
          • Find my transaction
          • How to return the transfer fee
      • Liquidity requests
      • History
        • Interface
          • Transfer rates
          • All transfers
      • Concepts
        • How Octus Bridge transfers work
        • Available chains and assets
        • Universal Bridge
        • Invisible Bridge
    • 💰Staking
      • My stake
        • Interface
          • My staking performance
          • My staking balance
          • User stake
          • Reward rounds
          • Transactions
        • How to
          • How to Stake
          • How to Claim
          • How to Redeem
      • Explorer
        • Interface
          • Explorer
          • Stakeholders
      • Concepts
        • About Octus Bridge Staking
        • How does Staking work?
    • 🗳️Governance
      • Overview
        • Interface
          • DAO overview
          • Recent proposals
          • TOP voters by voting power
      • Proposals
        • Interface
          • My votes
          • Proposals with my votes
          • Governance proposals
        • How to
          • How to Vote
      • Create proposals
        • Interface
        • How to
          • How to create a proposal
      • Concepts
        • Bridge DAO
        • BRIDGE token
        • BRIDGE economics
        • Proposals
        • Get BRIDGE Tokens
    • ⛓️Relayers
      • How to
        • How to become a relayer
      • Concepts
        • Octus Bridge relayers
    • 📜Litepaper
  • 🛠️Integrate
    • Octus Bridge Integration Guide
    • Octus Bridge Contracts
      • Everscale
        • Bridge section
          • event-configuration-contracts
          • event-contracts-base
          • event-contracts-dao
          • event-contracts-multivault
          • event-contracts-staking
          • event-contracts-token-transfer
          • Factory
          • Bridge
          • Connector
        • DAO Section
          • DAORoot
          • Proposal
        • Staking Section
          • Base
          • Elections
          • Encoder
          • RelayRound
          • Staking
          • StakingV1_1
          • StakingRootDeployer
          • UserData
        • Utils Section
          • Delegate
          • DummyRound
          • Receiver
      • Ethereum
        • Bridge Section
          • Bridge
          • StakingRelayVerifier
        • MultiVault Section
          • MultiVault
          • MultiVaultToken
        • Strategies Section
          • BaseStrategy
          • Convex3crv
          • ConvexAIEth
          • ConvexCrvLp
        • Vault Section
          • Vault
        • DAO
        • Registry
    • Bridge Relay Node
    • Token Contracts
    • Open API
      • Bridge API
        • Relayers
        • DAO
        • Staking
        • Transfers
      • DAO API
        • Proposals
        • Voters
        • Votes
  • see also
    • FlatQube
    • EVER Wallet
    • Broxus Github
Powered by GitBook
On this page

Was this helpful?

  1. Integrate
  2. Octus Bridge Contracts
  3. Everscale
  4. Staking Section

RelayRound

hasUnclaimedReward

Checks if user has unclaimed rewards.

function hasUnclaimedReward(address _relay_staker_addr) external view responsible returns (bool has_reward)

Parameters:

Name
Type
Description

_relay_staker_addr

address

Address of staker

Return value:

Name
Type
Description

has_reward

bool

True if it has unclaimed rewards, false if not

getRewardForRound

Calculates reward for certain round and sends it to user.

function getRelayByStakerAddress(
        address _relay_staker_addr
    ) external view responsible returns (uint256 _ton_key, uint160 _eth_addr, address _staker_addr, uint128 _staked_tokens)

Parameters:

Name
Type
Description

_relay_staker_addr

address

Staker address

Return value:

Name
Type
Description

_ton_key

uint256

Ton account’s public key

_eth_addr

uint160

Ethereum account’s address

_staker_addr

address

Staker address

_staked_tokens

uint128

Amount of tokens staked

sendRelaysToRelayRound

Sets relayers to the specific round.

function sendRelaysToRelayRound(address relay_round_addr, uint32 count) external override onlyRoot

Parameters:

Name
Type
Description

relay_round_addr

address

Address of relayer round

count

uint32

Number of relayers to send to relayer round

_checkRelaysInstalled

Checks whether there are enough relayers installed.

function _checkRelaysInstalled() internal

destroy

Destroy round if ended.

function destroy() external override onlyRoot

onCodeUpgrade

Sets relayer round data based on the upgraded data.

function onCodeUpgrade(TvmCell upgrade_data) private

Parameters:

Name
Type
Description

upgrade_data

TvmCell

Upgraded election data in cell format

count

uint32

Number of relayers to send to relayer round

upgrade

Upgrades relayer round data and code.

function upgrade(TvmCell code, uint32 new_version, address send_gas_to) external onlyRoot

Parameters:

Name
Type
Description

code

TvmCell

relayer round’s platform code

new_version

uint32

New version of relayer round’s platform

send_gas_to

address

Address where to send remaining gas

Events emitted:

  • RelayRoundCodeUpgraded

PreviousEncoderNextStaking

Last updated 2 years ago

Was this helpful?

🛠️