File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -156,4 +156,17 @@ interface IPerpV2BasisTradingModule is IPerpV2LeverageModuleV2 {
156
156
*/
157
157
function updateFeeRecipient (ISetToken _setToken , address _newFeeRecipient )
158
158
external ;
159
+
160
+ /**
161
+ * @dev Adds pending funding payment to tracked settled funding. Returns updated settled funding value in precise units (10e18).
162
+ *
163
+ * NOTE: Tracked settled funding value can not be less than zero, hence it is reset to zero if pending funding
164
+ * payment is negative and |pending funding payment| >= |settledFunding[_setToken]|.
165
+ *
166
+ * NOTE: Returned updated settled funding value is correct only for the current block since pending funding payment
167
+ * updates every block.
168
+ *
169
+ * @param _setToken Instance of SetToken
170
+ */
171
+ function getUpdatedSettledFunding (ISetToken _setToken ) external view returns (uint256 );
159
172
}
Original file line number Diff line number Diff line change @@ -440,7 +440,7 @@ contract PerpV2BasisTradingModule is PerpV2LeverageModuleV2 {
440
440
}
441
441
442
442
/**
443
- * @dev Adds pending funding payment to tracked settled funding. Returns updated settled funding value.
443
+ * @dev Adds pending funding payment to tracked settled funding. Returns updated settled funding value in precise units (10e18) .
444
444
*
445
445
* NOTE: Tracked settled funding value can not be less than zero, hence it is reset to zero if pending funding
446
446
* payment is negative and |pending funding payment| >= |settledFunding[_setToken]|.
You can’t perform that action at this time.
0 commit comments