Macket

Results 14 comments of Macket

> This is because MetaMask mistakenly assumes all networks in http://localhost:8545 to have a chain id of 1337 https://hardhat.org/metamask-issue.html

> This is because MetaMask mistakenly assumes all networks in http://localhost:8545 to have a chain id of 1337 https://hardhat.org/metamask-issue.html

But I have another asset which is tradable and get (0, 0) just because don't have both assets

I think it's because you need signer for exchange tx. Alchemy provider is "read only" for now

@quan-unizen can't even init? This code definitely works for me `await curve.init('JsonRpc', { url: RPC_URL }, { gasPrice: 0 });`

I didn't include that because it's impossible to make in 1 tx for most of the pools (or maybe even all, I don't remember). Only 2 txs. Do you think...

But there is a condition ``` this.options.gasPrice = this.feeData.gasPrice !== undefined ? ethers.utils.parseUnits(this.feeData.gasPrice.toString(), "gwei") : (feeData.gasPrice || await this.provider.getGasPrice()); ```

There is no curve.init in that example. It works like this: ```js (async () => { await curve.init('JsonRpc', { url: ETH_RPC }, { gasPrice: 0 }); console.log(await curve.getTVL()); }() ```

Make sense. Maybe will implement later