Struct stable_swap::pool_converter::PoolTokenConverter[][src]

pub struct PoolTokenConverter<'a> {
    pub supply: u64,
    pub token_a: u64,
    pub token_b: u64,
    pub fees: &'a Fees,
}
Expand description

Converter to determine how much to deposit / withdraw, along with proper initialization

Fields

supply: u64

Total supply

token_a: u64

Token A amount

token_b: u64

Token B amount

fees: &'a Fees

Fees

Implementations

A tokens for pool tokens

B tokens for pool tokens

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.