Skip to content

Commit

Permalink
fix swap native
Browse files Browse the repository at this point in the history
  • Loading branch information
JanKuczma committed Sep 24, 2024
1 parent 82eaade commit 55449b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amm/contracts/router_v2/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ pub mod router_v2 {
RouterV2Error::ExcessiveInputAmount
);
wrap(wnative, native_in)?;
psp22_transfer(wnative, path[0].token_in, native_in)?;
psp22_transfer(wnative, path[0].pool_id, native_in)?;
self.swap(&amounts, &path, token_out, to)?;
if received_native > native_in {
self.env()
Expand Down

0 comments on commit 55449b2

Please sign in to comment.