Skip to content

Document limit_price and fee substraction #37

@gitmalong

Description

@gitmalong

Hi!

I am unclear how the limit_price is exactly calculated when coming from a minimum out amount.

Is it minimum_out / amount_in rounded to u32::max(source_mint_decimals, destination_mint_decimals) and then converted to an integer by assuming destination_mint_decimals?

Does the feed need to be subtracted before from minimum_out?

Is the fee always taken from certain stablecoins and always from the source token?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions