diff --git a/src/dex/usual/usual.ts b/src/dex/usual/usual.ts index 872b75904..b17019e5d 100644 --- a/src/dex/usual/usual.ts +++ b/src/dex/usual/usual.ts @@ -96,8 +96,12 @@ export class Usual extends SimpleExchange implements IDex { return null; } - const unitOut = BI_POWS[18]; // 1:1 swap - const amountsOut = amounts; // 1:1 swap, so output amounts are the same as input + const unitOut = BI_POWS[this.config.toToken.decimals]; // 1:1 swap + const amountsOut = amounts.map( + amount => + (amount * BI_POWS[this.config.toToken.decimals]) / + BI_POWS[this.config.fromToken.decimals], + ); // 1:1 swap, so output amounts are the same as input return [ {