comments + contract update +
smaller design issues
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user