bkarst / mauidao-all

This repository holds both the solidity smart contracts and the front end code for MauiDAO.
1 stars 1 forks source link

Bond Contract Error when Calculating Price in USD #1

Open bkarst opened 2 years ago

bkarst commented 2 years ago

*Attached are images of the browser error (not very useful) and the hardhat error.

Steps to Reproduce In the app: npm run dev-app Navigate to http://localhost:3001/#/stake

The error traces back to Line 100 in bonds.ts: const bondPrice = await bondContract.bondPriceInUSD();

To reproduce with hardhat:

npx hardhat run --network matic scripts/debugingData.js

The script results in the following error:

Error: cannot estimate gas; transaction may fail or may require manual gas limit (error={"name":"ProviderError","code":-32000,"_isProviderError":true}, method="call", transaction={"from":"0xeF13847E8d7E4Ccc232A2e90B6215b01BD28E789","to":"0xDcb7eE94735e6713a6671e60abE780b3188b5111","data":"0x844b5c7c","accessList":null}, code=UNPREDICTABLE_GAS_LIMIT, version=providers/5.5.1)

Screen Shot 2021-12-04 at 1 14 17 PM Screen Shot 2021-12-04 at 1 19 32 PM
gitcoinbot commented 2 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 0.064 ETH (277.02 USD @ $4328.5/ETH) attached to it.

gitcoinbot commented 2 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Workers have applied to start work.

These users each claimed they can complete the work by 264 years, 11 months from now. Please review their action plans below:

1) 0xdapper has applied to start work _(Funders only: approve worker | reject worker)_.

I can look into this and help debug. Can we get in touch over discord?

Learn more on the Gitcoin Issue Details page.

gitcoinbot commented 2 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work has been started.

These users each claimed they can complete the work by 264 years, 10 months from now. Please review their action plans below:

1) tiagob01 has been approved to start work.

Hi I can work on this. Will fix

Learn more on the Gitcoin Issue Details page.

sdmg15 commented 2 years ago
Screen Shot 2021-12-13 at 21 24 24

Unable to run the project up anymore. Can you check the infura API?

bkarst commented 2 years ago

What command did the line fail on?

sdmg15 commented 2 years ago

It's after running npx hardhat run --network matic scripts/debugingData.js the provider.getSigner is failing. I suspect a downtime of the infura API