Skip to content

BaseRewardEscrowV2

Description

Source: contracts/BaseRewardEscrowV2.sol

Variables

accountMergingDuration

Source

Type: uint256

accountMergingStartTime

Source

Type: uint256

accountVestingEntryIDs

Source

Type: mapping(address => uint256[])

maxAccountMergingDuration

Source

Type: uint256

max_duration

Source

Type: uint256

nextEntryId

Source

Type: uint256

nominatedReceiver

Source

Type: mapping(address => address)

totalEscrowedAccountBalance

Source

Type: mapping(address => uint256)

totalEscrowedBalance

Source

Type: uint256

totalVestedAccountBalance

Source

Type: mapping(address => uint256)

vestingSchedules

Source

Type: mapping(address => mapping(uint256 => struct VestingEntries.VestingEntry))

Constructor

constructor

Source

Details

Signature

constructor(address _owner, address _resolver)

Visibility

public

State Mutability

undefined

Restricted Functions

appendVestingEntry

Source

Details

Signature

appendVestingEntry(address account, uint256 quantity, uint256 duration)

Visibility

external

State Mutability

undefined

Modifiers

setAccountMergingDuration

Source

Details

Signature

setAccountMergingDuration(uint256 duration)

Visibility

external

State Mutability

undefined

Requires

Modifiers

Emits

setMaxAccountMergingWindow

Source

Details

Signature

setMaxAccountMergingWindow(uint256 duration)

Visibility

external

State Mutability

undefined

Modifiers

Emits

setMaxEscrowDuration

Source

Details

Signature

setMaxEscrowDuration(uint256 duration)

Visibility

external

State Mutability

undefined

Modifiers

Emits

startMergingWindow

Source

Details

Signature

startMergingWindow()

Visibility

external

State Mutability

undefined

Modifiers

Emits

Internal Functions

_addVestingEntry

Source

Details

Signature

_addVestingEntry(address account, struct VestingEntries.VestingEntry entry) returns (uint256)

Visibility

internal

State Mutability

undefined

_appendVestingEntry

Source

Details

Signature

_appendVestingEntry(address account, uint256 quantity, uint256 duration)

Visibility

internal

State Mutability

undefined

Requires

Emits

_claimableAmount

Source

Details

Signature

_claimableAmount(struct VestingEntries.VestingEntry _entry) view returns (uint256)

Visibility

internal

State Mutability

undefined

_notImplemented

Source

Details

Signature

_notImplemented() pure

Visibility

internal

State Mutability

undefined

_reduceAccountEscrowBalances

Source

Details

Signature

_reduceAccountEscrowBalances(address _account, uint256 _amount)

Visibility

internal

State Mutability

undefined

_transferVestedTokens

Source

Details

Signature

_transferVestedTokens(address _account, uint256 _amount)

Visibility

internal

State Mutability

undefined

Emits

feePool

Source

Details

Signature

feePool() view returns (contract IFeePool)

Visibility

internal

State Mutability

undefined

issuer

Source

Details

Signature

issuer() view returns (contract IIssuer)

Visibility

internal

State Mutability

undefined

synthetix

Source

Details

Signature

synthetix() view returns (contract ISynthetix)

Visibility

internal

State Mutability

undefined

External Functions

accountMergingIsOpen

Source

Details

Signature

accountMergingIsOpen() view returns (bool)

Visibility

public

State Mutability

undefined

balanceOf

Source

Details

Signature

balanceOf(address account) view returns (uint256)

Visibility

public

State Mutability

undefined

burnForMigration

Source

Details

Signature

burnForMigration(address, uint256[]) returns (uint256, struct VestingEntries.VestingEntry[])

Visibility

external

State Mutability

undefined

createEscrowEntry

Source

Details

Signature

createEscrowEntry(address beneficiary, uint256 deposit, uint256 duration)

Visibility

external

State Mutability

undefined

Requires

getAccountVestingEntryIDs

Source

Details

Signature

getAccountVestingEntryIDs(address account, uint256 index, uint256 pageSize) view returns (uint256[])

Visibility

external

State Mutability

undefined

getVestingEntry

Source

Details

Signature

getVestingEntry(address account, uint256 entryID) view returns (uint64 endTime, uint256 escrowAmount)

Visibility

external

State Mutability

undefined

getVestingEntryClaimable

Source

Details

Signature

getVestingEntryClaimable(address account, uint256 entryID) view returns (uint256)

Visibility

external

State Mutability

undefined

getVestingQuantity

Source

Details

Signature

getVestingQuantity(address account, uint256[] entryIDs) view returns (uint256 total)

Visibility

external

State Mutability

undefined

getVestingSchedules

Source

Details

Signature

getVestingSchedules(address account, uint256 index, uint256 pageSize) view returns (struct VestingEntries.VestingEntryWithID[])

Visibility

external

State Mutability

undefined

importVestingEntries

Source

Details

Signature

importVestingEntries(address, uint256, struct VestingEntries.VestingEntry[])

Visibility

external

State Mutability

undefined

mergeAccount

Source

Details

Signature

mergeAccount(address accountToMerge, uint256[] entryIDs)

Visibility

external

State Mutability

undefined

Requires

Emits

migrateAccountEscrowBalances

Source

Details

Signature

migrateAccountEscrowBalances(address[], uint256[], uint256[])

Visibility

external

State Mutability

undefined

migrateVestingSchedule

Source

Details

Signature

migrateVestingSchedule(address)

Visibility

external

State Mutability

undefined

nominateAccountToMerge

Source

Details

Signature

nominateAccountToMerge(address account)

Visibility

external

State Mutability

undefined

Requires

Emits

numVestingEntries

Source

Details

Signature

numVestingEntries(address account) view returns (uint256)

Visibility

external

State Mutability

undefined

resolverAddressesRequired

Source

Details

Signature

resolverAddressesRequired() view returns (bytes32[] addresses)

Visibility

public

State Mutability

undefined

vest

Source

Details

Signature

vest(uint256[] entryIDs)

Visibility

external

State Mutability

undefined

Modifiers

onlyFeePool

Source

Events

AccountMerged

Source

Signature: AccountMerged(address accountToMerge, address destinationAddress, uint256 escrowAmountMerged, uint256[] entryIDs, uint256 time)

AccountMergingDurationUpdated

Source

Signature: AccountMergingDurationUpdated(uint256 newDuration)

AccountMergingStarted

Source

Signature: AccountMergingStarted(uint256 time, uint256 endTime)

MaxAccountMergingDurationUpdated

Source

Signature: MaxAccountMergingDurationUpdated(uint256 newDuration)

MaxEscrowDurationUpdated

Source

Signature: MaxEscrowDurationUpdated(uint256 newDuration)

NominateAccountToMerge

Source

Signature: NominateAccountToMerge(address account, address destination)

Vested

Source

Signature: Vested(address beneficiary, uint256 time, uint256 value)

VestingEntryCreated

Source

Signature: VestingEntryCreated(address beneficiary, uint256 time, uint256 value, uint256 duration, uint256 entryID)