Skip to content

Document limit_price and fee substraction #37

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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