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
Hi!
I am unclear how the
limit_priceis exactly calculated when coming from a minimum out amount.Is it
minimum_out / amount_inrounded tou32::max(source_mint_decimals, destination_mint_decimals)and then converted to an integer by assumingdestination_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