From 2cc5ab6924bc8988564ac7ab721389daea64e43b Mon Sep 17 00:00:00 2001 From: n3wbie Date: Wed, 20 Dec 2023 21:07:53 +0900 Subject: [PATCH] GSW-733 fix: amountSpecified is zero --- router/router.gno | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/router.gno b/router/router.gno index 2ce6407d9..765c0a716 100644 --- a/router/router.gno +++ b/router/router.gno @@ -108,7 +108,7 @@ func SwapRoute( // check if route hop is up to 3 require(numHops <= 3, "[ROUTER] router.gno__SwapRoute() || numHops > 3") - toSwap := amountSpecified / bigint(100) * bigint(quote) + toSwap := amountSpecified * bigint(quote) / bigint(100) if numHops == 1 { // SINGLE resultAmount += handleSingleSwap(route, toSwap, false)