Skip to content

I tried to call the quote contract method quoteExactInput on the arbitration goerli network, but it failed #361

@ruiyeclub

Description

@ruiyeclub
async quote(encodePath, tokenIn, tokenOut, amountIn, endPoint) {
        const quoterContract = new ethers.Contract(
            '0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6',
            Quoter.abi,
            this.getMainnetProvider(endPoint)
        )

        let tokenAmountIn = this.fromReadableAmount(amountIn, tokenIn.decimals).toString()
        const quotedAmountOut = await quoterContract.callStatic.quoteExactInput(
            encodePath,
            tokenAmountIn
        )

        return this.toReadableAmount(quotedAmountOut, tokenOut.decimals)
    }

May I ask what is the contract address of the quote contract in arbitration goerli? If not, how can I obtain the exchange rate between currencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions