From 04c47f4b5c2bcff7888f9bbf284c6eedc1444a31 Mon Sep 17 00:00:00 2001 From: Hayden Shively <17186559+haydenshively@users.noreply.github.com> Date: Wed, 6 Sep 2023 01:24:14 -0500 Subject: [PATCH] Revert visibility change --- core/.gas-snapshot | 24 ++++++++++++------------ core/src/Lender.sol | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/core/.gas-snapshot b/core/.gas-snapshot index d329a7bc..2b7aea6b 100644 --- a/core/.gas-snapshot +++ b/core/.gas-snapshot @@ -1,13 +1,13 @@ BorrowerGasTest:test_addMargin() (gas: 16203) -BorrowerGasTest:test_borrow() (gas: 112661) +BorrowerGasTest:test_borrow() (gas: 110491) BorrowerGasTest:test_getUniswapPositions() (gas: 5219) -BorrowerGasTest:test_modify() (gas: 84280) -BorrowerGasTest:test_modifyWithAnte() (gas: 90735) -BorrowerGasTest:test_repay() (gas: 114159) -BorrowerGasTest:test_uniswapDepositInBorrower() (gas: 259895) +BorrowerGasTest:test_modify() (gas: 82110) +BorrowerGasTest:test_modifyWithAnte() (gas: 88565) +BorrowerGasTest:test_repay() (gas: 111851) +BorrowerGasTest:test_uniswapDepositInBorrower() (gas: 257725) BorrowerGasTest:test_uniswapDepositStandard() (gas: 167558) -BorrowerGasTest:test_uniswapWithdraw() (gas: 149358) -BorrowerGasTest:test_withdraw() (gas: 107800) +BorrowerGasTest:test_uniswapWithdraw() (gas: 147622) +BorrowerGasTest:test_withdraw() (gas: 105630) FactoryGasTest:test_createBorrower() (gas: 156437) FactoryGasTest:test_createMarket() (gas: 3900597) LenderGasTest:test_accrueInterest() (gas: 46287) @@ -17,10 +17,10 @@ LenderGasTest:test_depositWithCourier() (gas: 53785) LenderGasTest:test_redeem() (gas: 53305) LenderGasTest:test_redeemWithCourier() (gas: 83701) LenderGasTest:test_repay() (gas: 44752) -LiquidatorGasTest:test_noCallbackOneAsset() (gas: 51189) -LiquidatorGasTest:test_noCallbackTwoAssets() (gas: 59209) -LiquidatorGasTest:test_noCallbackTwoAssetsAndUniswapPosition() (gas: 95622) -LiquidatorGasTest:test_warn() (gas: 35195) -LiquidatorGasTest:test_withCallbackAndSwap() (gas: 130354) +LiquidatorGasTest:test_noCallbackOneAsset() (gas: 51019) +LiquidatorGasTest:test_noCallbackTwoAssets() (gas: 59177) +LiquidatorGasTest:test_noCallbackTwoAssetsAndUniswapPosition() (gas: 95596) +LiquidatorGasTest:test_warn() (gas: 35025) +LiquidatorGasTest:test_withCallbackAndSwap() (gas: 130184) VolatilityGasTest:test_consult() (gas: 43075) VolatilityGasTest:test_updateNoBinarySearch() (gas: 146696) \ No newline at end of file diff --git a/core/src/Lender.sol b/core/src/Lender.sol index b0439fce..b5602288 100644 --- a/core/src/Lender.sol +++ b/core/src/Lender.sol @@ -228,7 +228,7 @@ contract Lender is Ledger { emit Borrow(msg.sender, recipient, amount, units); } - function repay(uint256 amount, address beneficiary) public returns (uint256 units) { + function repay(uint256 amount, address beneficiary) external returns (uint256 units) { uint256 b = borrows[beneficiary]; // Accrue interest and update reserves