We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The swap base output function returns the source_amount_swapped, which already includes the fees. https://github.com/raydium-io/raydium-cp-swap/blob/87685cf221e7d0b06419c6c750bd963b6780dca9/programs/cp-swap/src/curve/calculator.rs#L150C13-L150C34
source_amount_swapped
see: https://github.com/raydium-io/raydium-cp-swap/blob/87685cf221e7d0b06419c6c750bd963b6780dca9/programs/cp-swap/src/curve/calculator.rs#L140
We are adding correct fee here:
autobahn/lib/dex-raydium-cp/src/edge.rs
Line 260 in f9e8f8b
The text was updated successfully, but these errors were encountered:
It is important to note that it does not include transfer_fee in the case of 2022 tokens, so we should add it to the amount. It is currently missing.
transfer_fee
Sorry, something went wrong.
No branches or pull requests
The swap base output function returns the
source_amount_swapped
, which already includes the fees.https://github.com/raydium-io/raydium-cp-swap/blob/87685cf221e7d0b06419c6c750bd963b6780dca9/programs/cp-swap/src/curve/calculator.rs#L150C13-L150C34
see:
https://github.com/raydium-io/raydium-cp-swap/blob/87685cf221e7d0b06419c6c750bd963b6780dca9/programs/cp-swap/src/curve/calculator.rs#L140
We are adding correct fee here:
autobahn/lib/dex-raydium-cp/src/edge.rs
Line 260 in f9e8f8b
The text was updated successfully, but these errors were encountered: