Aave.

Bài viết

Chia sẻ kiến thức của bạn.

Aaveator.
Feb 17, 2023
Hỏi đáp Chuyên Gia

How can I know if a withdraw has arrived to my account?

Hello! I have a question, how can I know if a withdraw has arrived to my account? Context: I'm writing a smart contract that after some logic triggers the withdrawal of some funds from the pool. When the funds arrive I have to transfer them to a known account. (using Aave v3)

Also, while testing on a polygon mainnet fork, I can only deposit wrapped matic, but I had understood that ERC20 compliant tokens didn't need to be wrapped, am I wrong? is it because of the mainnet fork?

  • Aave Protocol
  • Aave v3
0
1
Chia sẻ
Bình luận
.

Câu trả lời

1
Aaveator.
Feb 17 2023, 14:27

One way would be to do a erc20 balanceOf check after the withdrawal to know the new balance You should be able to deposit any ERC20 listed in the forked polygon aave pool, be sure to get those erc20 first and approve the transfer before calling supply;

Also have a look at the aave sandbox, it contains a task that works like a faucet of any erc20 asset for forked networks;

0
Bình luận
.

Bạn có biết câu trả lời không?

Hãy đăng nhập và chia sẻ nó.

Aave is a decentralized non-custodial liquidity protocol where users can participate as depositors or borrowers.

213Bài viết230Câu trả lời
Sui.X.Peera.

Kiếm phần của bạn từ 1000 Sui

Tích lũy điểm danh tiếng và nhận phần thưởng khi giúp cộng đồng Sui phát triển.