Skip to content

Commit

Permalink
upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNe0x1 committed Jul 6, 2024
1 parent cfa85c4 commit 5395fe5
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/[email protected]"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/[email protected]"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-assets@7"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-exchanges@13"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-payments@13"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-exchanges@13.8.4"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-payments@13.9.2"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/qr-code-styling@1"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/fuse.js@6"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/react-rangeslider@2/umd/rangeslider.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion dist/esm/index.bundle.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/esm/index.solana.js
Original file line number Diff line number Diff line change
Expand Up @@ -35328,22 +35328,22 @@ const getBestPool = async ({ blockchain, exchange, path, amountIn, amountOut, bl
let amount;
if(amountIn) {
amount = await getOutputAmount({ exchange, pool, inputAmount: amountIn });
const amountScaled = await getOutputAmount({ exchange, pool, inputAmount: amountIn.mul(ethers.BigNumber.from(10)) });
const amountScaled = await getOutputAmount({ exchange, pool, inputAmount: ethers.BigNumber.from(amountIn).mul(ethers.BigNumber.from(10)).toString() });
const amountScaledDown = amountScaled.div(ethers.BigNumber.from(10));
const difference = amountScaledDown.sub(amount).abs();
const enoughLiquidity = !difference.gt(amount.div(ethers.BigNumber.from(100)));
if(!enoughLiquidity) { return }
} else {
amount = await getInputAmount({ exchange, pool, outputAmount: amountOut });
const amountScaled = await getInputAmount({ exchange, pool, outputAmount: amountOut.mul(ethers.BigNumber.from(10)) });
const amountScaled = await getInputAmount({ exchange, pool, outputAmount: ethers.BigNumber.from(amountOut).mul(ethers.BigNumber.from(10)).toString() });
const amountScaledDown = amountScaled.div(ethers.BigNumber.from(10));
const difference = amountScaledDown.sub(amount).abs();
const enoughLiquidity = !difference.gt(amount.div(ethers.BigNumber.from(100)));
if(!enoughLiquidity) { return }
}

return { ...pool, amountIn: amountIn || amount, amountOut: amountOut || amount }
} catch(e) {console.log('!!!', e);}
} catch (e) {}

}))).filter(Boolean);

Expand Down
2 changes: 1 addition & 1 deletion dist/esm/index.solana.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/umd/index.bundle.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/umd/index.solana.js
Original file line number Diff line number Diff line change
Expand Up @@ -35326,22 +35326,22 @@
let amount;
if(amountIn) {
amount = await getOutputAmount({ exchange, pool, inputAmount: amountIn });
const amountScaled = await getOutputAmount({ exchange, pool, inputAmount: amountIn.mul(ethers.ethers.BigNumber.from(10)) });
const amountScaled = await getOutputAmount({ exchange, pool, inputAmount: ethers.ethers.BigNumber.from(amountIn).mul(ethers.ethers.BigNumber.from(10)).toString() });
const amountScaledDown = amountScaled.div(ethers.ethers.BigNumber.from(10));
const difference = amountScaledDown.sub(amount).abs();
const enoughLiquidity = !difference.gt(amount.div(ethers.ethers.BigNumber.from(100)));
if(!enoughLiquidity) { return }
} else {
amount = await getInputAmount({ exchange, pool, outputAmount: amountOut });
const amountScaled = await getInputAmount({ exchange, pool, outputAmount: amountOut.mul(ethers.ethers.BigNumber.from(10)) });
const amountScaled = await getInputAmount({ exchange, pool, outputAmount: ethers.ethers.BigNumber.from(amountOut).mul(ethers.ethers.BigNumber.from(10)).toString() });
const amountScaledDown = amountScaled.div(ethers.ethers.BigNumber.from(10));
const difference = amountScaledDown.sub(amount).abs();
const enoughLiquidity = !difference.gt(amount.div(ethers.ethers.BigNumber.from(100)));
if(!enoughLiquidity) { return }
}

return { ...pool, amountIn: amountIn || amount, amountOut: amountOut || amount }
} catch(e) {console.log('!!!', e);}
} catch (e) {}

}))).filter(Boolean);

Expand Down
2 changes: 1 addition & 1 deletion dist/umd/index.solana.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.evm.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"@depay/web3-assets-evm": "^7.3.1",
"@depay/web3-blockchains": "^9.4.2",
"@depay/web3-client-evm": "^10.18.7",
"@depay/web3-exchanges-evm": "^13.8.3",
"@depay/web3-payments-evm": "^13.9.1",
"@depay/web3-exchanges-evm": "^13.8.4",
"@depay/web3-payments-evm": "^13.9.2",
"@depay/web3-tokens-evm": "^10.3.0",
"@depay/web3-wallets-evm": "^17.1.0",
"@tanstack/react-virtual": "^3.0.0-beta.54",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
"@depay/web3-assets": "^7.3.1",
"@depay/web3-blockchains": "^9.4.2",
"@depay/web3-client": "^10.18.7",
"@depay/web3-exchanges": "^13.8.3",
"@depay/web3-payments": "^13.9.1",
"@depay/web3-exchanges": "^13.8.4",
"@depay/web3-payments": "^13.9.2",
"@depay/web3-tokens": "^10.3.0",
"@depay/web3-wallets": "^17.1.0",
"@tanstack/react-virtual": "^3.0.0-beta.54",
Expand Down
4 changes: 2 additions & 2 deletions package.solana.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"@depay/web3-assets-solana": "^7.3.1",
"@depay/web3-blockchains": "^9.4.2",
"@depay/web3-client-solana": "^10.18.7",
"@depay/web3-exchanges-solana": "^13.8.3",
"@depay/web3-payments-solana": "^13.9.1",
"@depay/web3-exchanges-solana": "^13.8.4",
"@depay/web3-payments-solana": "^13.9.2",
"@depay/web3-tokens-solana": "^10.3.0",
"@depay/web3-wallets-solana": "^17.1.0",
"@tanstack/react-virtual": "^3.0.0-beta.54",
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1357,10 +1357,10 @@
resolved "https://registry.yarnpkg.com/@depay/web3-client/-/web3-client-10.18.7.tgz#b9131383d680c616e8485fad54c79ed8e33dbe03"
integrity sha512-5XsYPAbGZ91P7RLrRuZvSY0d2JT2NsUFIJHXf0YfzJQacy1gIuqQwUU7nMq+niL42AfvCqQ7wOAnP9tQcByXzw==

"@depay/web3-exchanges@^13.8.3":
version "13.8.3"
resolved "https://registry.yarnpkg.com/@depay/web3-exchanges/-/web3-exchanges-13.8.3.tgz#6e62b30b5f7960d9bd70526343144162684ed792"
integrity sha512-t5XIx/uhV7eu7WuWcoBI0rx7y1qwEZMfOLjYt4gYdYzuybA+FZeBr44zCG8Fn0kDBDe3Uv7LS0d8/PMRbCyCxg==
"@depay/web3-exchanges@^13.8.4":
version "13.8.4"
resolved "https://registry.yarnpkg.com/@depay/web3-exchanges/-/web3-exchanges-13.8.4.tgz#f300ad92507e586803a0c88151550f53eafc76fa"
integrity sha512-w4r3cR/oxZqeb//rQAvSEMeXNyXrM4SbR0zo86k05DZkhBX4gMZXYBgDEVqTxcRWY8GnzOi7l1KMjuRwpAlVLg==

"@depay/web3-mock@^14.17.0":
version "14.17.0"
Expand All @@ -1371,10 +1371,10 @@
"@depay/web3-blockchains" "^9.1.4"
ethers "^5.7.1"

"@depay/web3-payments@^13.9.1":
version "13.9.1"
resolved "https://registry.yarnpkg.com/@depay/web3-payments/-/web3-payments-13.9.1.tgz#20f7c2c75676a6aa14ef72601458a84d4c1c44cb"
integrity sha512-+Q/U86GHeUy7fYtthz5Kk9sufQoWgYJuM/PxOJJPYWCF8jnVOu9WBkjV2dQ2sbq2HNElHml74VUMhN/aqkNSCg==
"@depay/web3-payments@^13.9.2":
version "13.9.2"
resolved "https://registry.yarnpkg.com/@depay/web3-payments/-/web3-payments-13.9.2.tgz#75c5c5a4ef4cb5119206588d1a811451030de470"
integrity sha512-qVzps5pwzl/ryUkBmpFQ8tyeqbpqcepmqsRYtwr0p9nFamVStFkgACDnjd4zgMlKy3hbHuMJuDUQ+E4c/9DpEw==

"@depay/web3-tokens@^10.3.0":
version "10.3.0"
Expand Down

0 comments on commit 5395fe5

Please sign in to comment.