comments + contract update +

smaller design issues
This commit is contained in:
EmberSpirit
2023-10-12 20:01:11 +02:00
parent 68cd720c59
commit b5c6f8af33
37 changed files with 714 additions and 1480 deletions
+2 -2
View File
@@ -48,14 +48,14 @@ export const useUniswapStore = defineStore("uniswap", {
token0: this.poolData.token0,
token1: this.poolData.token1,
fee: this.poolData.fee,
amountEthBase: amountEthBase[1],
amountEthBase: amountEthBase[0],
pricelimit: 0, //sqrtPriceLimitX96
});
const quotedAmountOut = await this.quoateV3Contract.read.quoteExactInputSingle([
this.poolData.token0, //bloodline
this.poolData.token1, //weth
this.poolData.fee,
amountEthBase[1],
amountEthBase[0],
0, //sqrtPriceLimitX96
]);
return {result: true, amount: quotedAmountOut};