Skip to content

Commit

Permalink
add support for kyberswap
Browse files Browse the repository at this point in the history
  • Loading branch information
jankjr committed Oct 18, 2023
1 parent 8094e49 commit f74a648
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@popperjs/core": "^2.11.5",
"@rainbow-me/rainbowkit": "1.0.11",
"@react-spring/web": "^9.7.1",
"@reserve-protocol/token-zapper": "2.6.7",
"@reserve-protocol/token-zapper": "2.6.8",
"@uiw/react-md-editor": "^3.20.5",
"@uniswap/permit2-sdk": "^1.2.0",
"@viem/anvil": "^0.0.6",
Expand Down
2 changes: 1 addition & 1 deletion src/views/issuance/components/zap/state/atoms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const permitSignature = atom(null as null | string)

// The amount of slippage we allow when zap involves a trade:
// This is not exposed in the UI yet, but probably should be.
const tradeSlippage = atom(0.125)
const tradeSlippage = atom(0.0)

// We sent the zap transaction,
// and are waiting for the user to sign off on it and for it to commit
Expand Down
2 changes: 1 addition & 1 deletion src/views/issuance/components/zap/state/zapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const zapperState = loadable(
chainIdToConfig[provider.network.chainId].config,
chainIdToConfig[provider.network.chainId].setup
)
universe.dexAggregators.push(createKyberswap('KyberSwap', universe, 20))
universe.dexAggregators.push(createKyberswap('KyberSwap', universe, 10))
return universe
} catch (e) {
mixpanel.track('Failed zapper set up', {
Expand Down

0 comments on commit f74a648

Please sign in to comment.