Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

IVestingDispatcherTrait

Fully qualified path: openzeppelin_interfaces::finance::vesting::IVestingDispatcherTrait

Part of the group: dispatchers

pub trait IVestingDispatcherTrait<T>

Trait functions

start

Returns the timestamp marking the beginning of the vesting period.

Fully qualified path: openzeppelin_interfaces::finance::vesting::IVestingDispatcherTrait::start

fn start(self: T) -> u64

cliff

Returns the timestamp marking the end of the cliff period.

Fully qualified path: openzeppelin_interfaces::finance::vesting::IVestingDispatcherTrait::cliff

fn cliff(self: T) -> u64

duration

Returns the total duration of the vesting period.

Fully qualified path: openzeppelin_interfaces::finance::vesting::IVestingDispatcherTrait::duration

fn duration(self: T) -> u64

end

Returns the timestamp marking the end of the vesting period.

Fully qualified path: openzeppelin_interfaces::finance::vesting::IVestingDispatcherTrait::end

fn end(self: T) -> u64

released

Returns the already released amount for a given token.

Fully qualified path: openzeppelin_interfaces::finance::vesting::IVestingDispatcherTrait::released

fn released(self: T, token: ContractAddress) -> u256

releasable

Returns the amount of a given token that can be released at the time of the call.

Fully qualified path: openzeppelin_interfaces::finance::vesting::IVestingDispatcherTrait::releasable

fn releasable(self: T, token: ContractAddress) -> u256

vested_amount

Returns the total vested amount of a specified token at a given timestamp.

Fully qualified path: openzeppelin_interfaces::finance::vesting::IVestingDispatcherTrait::vested_amount

fn vested_amount(self: T, token: ContractAddress, timestamp: u64) -> u256

release

Releases the amount of a given token that has already vested.

Fully qualified path: openzeppelin_interfaces::finance::vesting::IVestingDispatcherTrait::release

fn release(self: T, token: ContractAddress) -> u256