Skip to content

Commit b37238e

Browse files
committed
visibility changed
1 parent 4ab6e1a commit b37238e

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

src/modules/fundingManager/oracle/FM_PC_ExternalPrice_Redeeming_v1.sol

+2-11
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import {FM_BC_Tools} from "@fm/bondingCurve/FM_BC_Tools.sol";
2525
import {IERC20PaymentClientBase_v1} from
2626
"@lm/interfaces/IERC20PaymentClientBase_v1.sol";
2727
import {IERC20Issuance_v1} from "@ex/token/ERC20Issuance_v1.sol";
28-
import {IPaymentProcessor_v1} from "@pp/IPaymentProcessor_v1.sol";
2928

3029
// External
3130
import {IERC20} from "@oz/token/ERC20/IERC20.sol";
@@ -349,19 +348,11 @@ contract FM_PC_ExternalPrice_Redeeming_v1 is
349348

350349
/// @inheritdoc IERC20PaymentClientBase_v1
351350
function amountPaid(address token_, uint amount_)
352-
external
351+
public
353352
override(ERC20PaymentClientBase_v1, IERC20PaymentClientBase_v1)
354353
{
355354
_deductFromOpenRedemptionAmount(amount_);
356-
357-
// Ensure caller is authorized to act as payment processor.
358-
if (!_isAuthorizedPaymentProcessor(IPaymentProcessor_v1(_msgSender())))
359-
{
360-
revert Module__ERC20PaymentClientBase__CallerNotAuthorized();
361-
}
362-
363-
// reduce outstanding token amount by the given amount
364-
_outstandingTokenAmounts[token_] -= amount_;
355+
super.amountPaid(token_, amount_);
365356
}
366357

367358
/// @inheritdoc IFundingManager_v1

src/modules/logicModule/abstracts/ERC20PaymentClientBase_v1.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ abstract contract ERC20PaymentClientBase_v1 is
258258
}
259259

260260
/// @inheritdoc IERC20PaymentClientBase_v1
261-
function amountPaid(address token_, uint amount_) external virtual {
261+
function amountPaid(address token_, uint amount_) public virtual {
262262
// Ensure caller is authorized to act as payment processor.
263263
if (!_isAuthorizedPaymentProcessor(IPaymentProcessor_v1(_msgSender())))
264264
{

test/utils/mocks/modules/paymentClient/ERC20PaymentClientBaseV1Mock.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ contract ERC20PaymentClientBaseV1Mock is ERC20PaymentClientBase_v1 {
102102
}
103103

104104
function amountPaid(address _token, uint amount)
105-
external
105+
public
106106
override(ERC20PaymentClientBase_v1)
107107
{
108108
amountPaidCounter[_token] += amount;

0 commit comments

Comments
 (0)