Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Commit

Permalink
fix(swapper): 0x slippage calculation (#1220)
Browse files Browse the repository at this point in the history
fix: remove unneeded div(100)
  • Loading branch information
0xApotheosis authored Mar 2, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent a3bd425 commit 81a98fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -44,7 +44,7 @@ export async function zrxBuildTrade<T extends ZrxSupportedChainId>(
})
}

const slippagePercentage = slippage ? bnOrZero(slippage).div(100).toString() : DEFAULT_SLIPPAGE
const slippagePercentage = slippage ? bnOrZero(slippage).toString() : DEFAULT_SLIPPAGE

const baseUrl = baseUrlFromChainId(buyAsset.chainId)
const zrxService = zrxServiceFactory(baseUrl)

0 comments on commit 81a98fc

Please sign in to comment.