pub struct AMM { /* private fields */ }Implementations§
Trait Implementations§
Source§impl AMMFields for AMM
impl AMMFields for AMM
Source§fn account(&self) -> Result<AccountID>
fn account(&self) -> Result<AccountID>
The address of the special account that holds this AMM’s assets.
Source§fn trading_fee(&self) -> Result<Option<u16>>
fn trading_fee(&self) -> Result<Option<u16>>
The percentage fee to be charged for trades against this AMM instance, in units of
1/100,000. The maximum value is 1000, for a 1% fee.
Source§fn lp_token_balance(&self) -> Result<Amount>
fn lp_token_balance(&self) -> Result<Amount>
The total outstanding balance of liquidity provider tokens from this AMM instance. The
holders of these tokens can vote on the AMM’s trading fee in proportion to their holdings,
or redeem the tokens for a share of the AMM’s assets which grows with the trading fees
collected.
Source§fn asset(&self) -> Result<Issue>
fn asset(&self) -> Result<Issue>
The definition for one of the two assets this AMM holds. In JSON, this is an object with
currency and issuer fields.Source§fn asset2(&self) -> Result<Issue>
fn asset2(&self) -> Result<Issue>
The definition for the other asset this AMM holds. In JSON, this is an object with
currency and issuer fields.Source§fn owner_node(&self) -> Result<u64>
fn owner_node(&self) -> Result<u64>
The OwnerNode field (Required).
impl Copy for AMM
impl Eq for AMM
Source§impl LedgerObjectCommonFields for AMM
impl LedgerObjectCommonFields for AMM
Source§fn get_slot_num(&self) -> i32
fn get_slot_num(&self) -> i32
Returns the slot number (register number) where the ledger object is stored. Read more
Source§fn path(&self) -> LedgerPathBuilder
fn path(&self) -> LedgerPathBuilder
Starts a nested-field path rooted at this ledger object, read through its slot. Read more
impl StructuralPartialEq for AMM
Auto Trait Implementations§
impl Freeze for AMM
impl RefUnwindSafe for AMM
impl Send for AMM
impl Sync for AMM
impl Unpin for AMM
impl UnsafeUnpin for AMM
impl UnwindSafe for AMM
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more