Aave.

Bài viết

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

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

How can I manipulate asset prices in a test/forked environment to test out a liquidation contract?

How can I manipulate asset prices in a test/forked environment to test out an Aave liquidation contract?

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

Câu trả lời

1
Aaveator.
Feb 14 2023, 12:33

These are the steps to update an asset oracle:

  1. Deploy a mock oracle with the new price passed by constructor
  2. Call to AaveOracle contract to the method setAssetSources with the underlying asset address and the new MockAggregator contract address;

*1. Mock aggregator code;
*2. Method setAssetSouces at Aave Oracle;

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ó.

Chúng tôi sử dụng cookie để đảm bảo bạn có trải nghiệm tốt nhất trên trang web của chúng tôi.
Thêm thông tin