pub trait VaultExt {
Show 33 methods
// Required methods
fn set_curator(account: AccountId);
fn set_is_allocator(account: AccountId, allowed: bool);
fn submit_guardian(new_g: AccountId);
fn accept_guardian();
fn revoke_pending_guardian();
fn set_skim_recipient(account: AccountId);
fn set_fee_recipient(account: AccountId);
fn set_performance_fee(fee: U128);
fn submit_timelock(new_timelock_ns: U64);
fn accept_timelock();
fn revoke_pending_timelock();
fn submit_cap(market: AccountId, new_cap: U128);
fn accept_cap(market: AccountId);
fn revoke_pending_cap(market: AccountId);
fn submit_market_removal(market: AccountId);
fn revoke_pending_market_removal(market: AccountId);
fn set_supply_queue(markets: Vec<AccountId>);
fn set_withdraw_queue(queue: Vec<AccountId>);
fn withdraw(amount: U128, receiver: AccountId) -> PromiseOrValue<()>;
fn redeem(shares: U128, receiver: AccountId) -> PromiseOrValue<()>;
fn execute_next_withdrawal_request() -> PromiseOrValue<()>;
fn skim(token: AccountId) -> Promise;
fn allocate(
weights: AllocationWeights,
amount: Option<U128>,
) -> PromiseOrValue<()>;
fn get_configuration() -> VaultConfiguration;
fn get_total_assets() -> U128;
fn get_total_supply() -> U128;
fn get_max_deposit() -> U128;
fn convert_to_shares(assets: U128) -> U128;
fn convert_to_assets(shares: U128) -> U128;
fn preview_deposit(assets: U128) -> U128;
fn preview_mint(shares: U128) -> U128;
fn preview_withdraw(assets: U128) -> U128;
fn preview_redeem(shares: U128) -> U128;
}Required Methods§
fn set_curator(account: AccountId)
fn set_is_allocator(account: AccountId, allowed: bool)
fn submit_guardian(new_g: AccountId)
fn accept_guardian()
fn revoke_pending_guardian()
fn set_skim_recipient(account: AccountId)
fn set_fee_recipient(account: AccountId)
fn set_performance_fee(fee: U128)
fn submit_timelock(new_timelock_ns: U64)
fn accept_timelock()
fn revoke_pending_timelock()
fn submit_cap(market: AccountId, new_cap: U128)
fn accept_cap(market: AccountId)
fn revoke_pending_cap(market: AccountId)
fn submit_market_removal(market: AccountId)
fn revoke_pending_market_removal(market: AccountId)
fn set_supply_queue(markets: Vec<AccountId>)
fn set_withdraw_queue(queue: Vec<AccountId>)
fn withdraw(amount: U128, receiver: AccountId) -> PromiseOrValue<()>
fn redeem(shares: U128, receiver: AccountId) -> PromiseOrValue<()>
fn execute_next_withdrawal_request() -> PromiseOrValue<()>
fn skim(token: AccountId) -> Promise
fn allocate( weights: AllocationWeights, amount: Option<U128>, ) -> PromiseOrValue<()>
fn get_configuration() -> VaultConfiguration
fn get_total_assets() -> U128
fn get_total_supply() -> U128
fn get_max_deposit() -> U128
fn convert_to_assets(shares: U128) -> U128
fn preview_deposit(assets: U128) -> U128
fn preview_mint(shares: U128) -> U128
fn preview_withdraw(assets: U128) -> U128
fn preview_redeem(shares: U128) -> U128
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.