Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

IAbsorberDispatcherTrait

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait

Part of the group: dispatchers

pub trait IAbsorberDispatcherTrait<T>

Trait functions

get_rewards_count

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait::get_rewards_count

fn get_rewards_count(self: T) -> u8

get_rewards

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait::get_rewards

fn get_rewards(self: T) -> Span<Reward>

get_current_epoch

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait::get_current_epoch

fn get_current_epoch(self: T) -> u32

get_absorptions_count

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait::get_absorptions_count

fn get_absorptions_count(self: T) -> u32

get_absorption_epoch

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait::get_absorption_epoch

fn get_absorption_epoch(self: T, absorption_id: u32) -> u32

get_total_shares_for_current_epoch

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait::get_total_shares_for_current_epoch

fn get_total_shares_for_current_epoch(self: T) -> Wad

get_provision

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait::get_provision

fn get_provision(self: T, provider: ContractAddress) -> Provision

get_provider_last_absorption

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait::get_provider_last_absorption

fn get_provider_last_absorption(self: T, provider: ContractAddress) -> u32

get_provider_request

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait::get_provider_request

fn get_provider_request(self: T, provider: ContractAddress) -> Request

get_asset_absorption

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait::get_asset_absorption

fn get_asset_absorption(self: T, asset: ContractAddress, absorption_id: u32) -> u128

get_cumulative_reward_amt_by_epoch

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait::get_cumulative_reward_amt_by_epoch

fn get_cumulative_reward_amt_by_epoch(
    self: T, asset: ContractAddress, epoch: u32,
) -> DistributionInfo

get_provider_last_reward_cumulative

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait::get_provider_last_reward_cumulative

fn get_provider_last_reward_cumulative(
    self: T, provider: ContractAddress, asset: ContractAddress,
) -> u128

get_live

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait::get_live

fn get_live(self: T) -> bool

is_operational

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait::is_operational

fn is_operational(self: T) -> bool

preview_remove

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait::preview_remove

fn preview_remove(self: T, provider: ContractAddress) -> Wad

preview_reap

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait::preview_reap

fn preview_reap(self: T, provider: ContractAddress) -> (Span<AssetBalance>, Span<AssetBalance>)

set_reward

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait::set_reward

fn set_reward(self: T, asset: ContractAddress, blesser: ContractAddress, is_active: bool)

provide

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait::provide

fn provide(self: T, amount: Wad)

request

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait::request

fn request(self: T)

remove

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait::remove

fn remove(self: T, amount: Wad)

reap

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait::reap

fn reap(self: T)

update

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait::update

fn update(self: T, asset_balances: Span<AssetBalance>)

kill

Fully qualified path: opus::interfaces::absorber::IAbsorberDispatcherTrait::kill

fn kill(self: T)