RelayRound

hasUnclaimedReward

Checks if user has unclaimed rewards.

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

Parameters:

Return value:

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:

Return value:

sendRelaysToRelayRound

Sets relayers to the specific round.

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

Parameters:

_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:

upgrade

Upgrades relayer round data and code.

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

Parameters:

Events emitted:

  • RelayRoundCodeUpgraded

Last updated