Skip to content

Commit 512ac49

Browse files
committed
change accrueBorrowedInvariant to view from pure
1 parent f279205 commit 512ac49

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

contracts/strategies/base/BaseStrategy.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ abstract contract BaseStrategy is AppStorage, AbstractRateModel {
167167
/// @param borrowedInvariant - liquidity invariant borrowed in the GammaPool
168168
/// @param lastFeeIndex - interest accrued to loans in GammaPool
169169
/// @return newBorrowedInvariant - borrowed invariant with accrued interest
170-
function accrueBorrowedInvariant(uint256 borrowedInvariant, uint256 lastFeeIndex) internal virtual pure returns(uint256) {
171-
return borrowedInvariant * lastFeeIndex / 1e18;
170+
function accrueBorrowedInvariant(uint256 borrowedInvariant, uint256 lastFeeIndex) internal virtual view returns(uint256) {
171+
return borrowedInvariant * lastFeeIndex / 1e18;
172172
}
173173

174174
/// @notice Convert CFMM LP tokens into liquidity invariant units.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gammaswap/v1-core",
3-
"version": "1.2.11",
3+
"version": "1.2.12",
44
"description": "Core smart contracts for the GammaSwap V1 protocol",
55
"homepage": "https://gammaswap.com",
66
"scripts": {

0 commit comments

Comments
 (0)