smartcontractkit / full-blockchain-solidity-course-js

Learn Blockchain, Solidity, and Full Stack Web3 Development with Javascript
12.4k stars 2.99k forks source link

Lending Pool Error: Pool is Paused #6276

Closed juliancabmar closed 10 months ago

juliancabmar commented 11 months ago

Lesson

Lesson 13

Could you please leave a link to the timestamp in the video where this error occurs? (You can right click a video and "copy video URL at current time")

https://youtu.be/gyMwXuJrbJQ?t=71844

Operating System

Linux

Describe the bug

This is the execution error:

$ yarn hardhat run ./scripts/aaveBorrow.js 
yarn run v1.22.19
$ '/XXX/node_modules/.bin/hardhat' run ./scripts/aaveBorrow.js
Got 100000000000000000 WETH
Approved!
Depositing WETH...
Error: VM Exception while processing transaction: reverted with reason string '64'
    at <UnrecognizedContract>.<unknown> (0x7d2768de32b0b80b7a3454c06bdac94a69ddc7a9)
    at <UnrecognizedContract>.<unknown> (0x7d2768de32b0b80b7a3454c06bdac94a69ddc7a9)

I find the code reason "64" on https://docs.aave.com/developers/v/2.0/guides/troubleshooting-errors

image

By this, the Pool is paused. So... I'm stuck :(

juliancabmar commented 10 months ago

Ok... after research for a time I found what the aave V2 may be the problem, so, I decide adapt the code for the aave V3 (https://github.com/juliancabmar/hardhat-defi.git). I hope what this will be useful to someone. Regards.