Skip to main content
Version: testnet (v0.74)

IStake.sol

View Source: contracts/tests/IStake.sol

↘ Derived Contracts: Vega_Staking_Bridge

IStake

Interface contains all of the events necessary for staking Vega token

Stake_Deposited

Parameters

NameTypeDescription
useraddress
amountuint256
vega_public_keybytes32

Stake_Removed

Parameters

NameTypeDescription
useraddress
amountuint256
vega_public_keybytes32

Stake_Transferred

Parameters

NameTypeDescription
fromaddress
amountuint256
toaddress
vega_public_keybytes32

Functions

staking_token

function staking_token() external view
returns(address)

Returns

the address of the token that is able to be staked

Arguments

NameTypeDescription

stake_balance

function stake_balance(address target, bytes32 vega_public_key) external view
returns(uint256)

Returns

the number of tokens staked for that address->vega_public_key pair

Arguments

NameTypeDescription
targetaddressTarget address to check
vega_public_keybytes32Target vega public key to check

total_staked

function total_staked() external view
returns(uint256)

Returns

total tokens staked on contract

Arguments

NameTypeDescription