From 1e8d92b13debdbdc89282112d76d1ec75deeaac8 Mon Sep 17 00:00:00 2001 From: Max Zhou Date: Thu, 22 Aug 2024 11:50:07 +0800 Subject: [PATCH] doc: fix incorrect swapBorrowRateMode v3 code example in README --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5f21e0c0..17f8a419 100644 --- a/README.md +++ b/README.md @@ -893,13 +893,12 @@ const pool = new Pool(provider, { /* - @param `user` The ethereum address that will make the deposit - @param `reserve` The ethereum address of the reserve -- @param `interestRateMode` The rate mode to swap to, stable (InterestRate.Stable) or variable (InterestRate.Variable) +- @param `interestRateMode` The current rate mode, stable (InterestRate.Stable) or variable (InterestRate.Variable) */ const txs: EthereumTransactionTypeExtended[] = await pool.swapBorrowRateMode({ user, reserve, - amount, - onBehalfOf, + interestRateMode, }); ```