From 57ab78d1cb0798b4268173832a5ca016da84f9ad Mon Sep 17 00:00:00 2001 From: eboado Date: Tue, 13 Apr 2021 13:12:37 +0200 Subject: [PATCH] - Renamed withdrawDynamicAmount() to withdrawInDynamicAmount() --- contracts/interfaces/IStaticAToken.sol | 2 +- contracts/protocol/tokenization/StaticAToken.sol | 2 +- test/mainnet/static-atoken.spec.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/interfaces/IStaticAToken.sol b/contracts/interfaces/IStaticAToken.sol index 1e7998f2..ae010714 100644 --- a/contracts/interfaces/IStaticAToken.sol +++ b/contracts/interfaces/IStaticAToken.sol @@ -72,7 +72,7 @@ interface IStaticAToken { * @return amountToBurn: StaticATokens burnt, static balance * @return amountToWithdraw: underlying/aToken send to `recipient`, dynamic balance **/ - function withdrawDynamicAmount( + function withdrawInDynamicAmount( address recipient, uint256 amount, bool toUnderlying diff --git a/contracts/protocol/tokenization/StaticAToken.sol b/contracts/protocol/tokenization/StaticAToken.sol index 99fd23f5..2a0fcf50 100644 --- a/contracts/protocol/tokenization/StaticAToken.sol +++ b/contracts/protocol/tokenization/StaticAToken.sol @@ -86,7 +86,7 @@ contract StaticAToken is IStaticAToken, ReentrancyGuard, ERC20 { } /// @inheritdoc IStaticAToken - function withdrawDynamicAmount( + function withdrawInDynamicAmount( address recipient, uint256 amount, bool toUnderlying diff --git a/test/mainnet/static-atoken.spec.ts b/test/mainnet/static-atoken.spec.ts index 198abbff..811bb717 100644 --- a/test/mainnet/static-atoken.spec.ts +++ b/test/mainnet/static-atoken.spec.ts @@ -383,7 +383,7 @@ describe('StaticAToken: aToken wrapper with static balances', () => { const amountToWithdraw = parseEther('2.0'); await waitForTx( - await staticAWeth.withdrawDynamicAmount( + await staticAWeth.withdrawInDynamicAmount( user1Signer._address, amountToWithdraw, false, @@ -482,7 +482,7 @@ describe('StaticAToken: aToken wrapper with static balances', () => { const amountToWithdraw = parseEther('2.0'); await waitForTx( - await staticAWeth.withdrawDynamicAmount( + await staticAWeth.withdrawInDynamicAmount( user1Signer._address, amountToWithdraw, false,