@@ -271,7 +271,7 @@ contract PerpV2LeverageModule is ModuleBase, ReentrancyGuard, Ownable, SetTokenA
271
271
* token market prices and needs to be generated on the fly to be meaningful.
272
272
*
273
273
* In the tables below, basePositionUnit = baseTokenBalance / setTotalSupply.
274
- *
274
+ *
275
275
* As a user when levering, e.g increasing the magnitude of your position, you'd trade as below
276
276
* | ----------------------------------------------------------------------------------------------- |
277
277
* | Type | Action | Goal | `quoteBoundQuantity` | `baseQuantityUnits` |
@@ -318,7 +318,7 @@ contract PerpV2LeverageModule is ModuleBase, ReentrancyGuard, Ownable, SetTokenA
318
318
public
319
319
nonReentrant
320
320
onlyManagerAndValidSet (_setToken)
321
- {
321
+ {
322
322
ActionInfo memory actionInfo = _createAndValidateActionInfo (
323
323
_setToken,
324
324
_baseToken,
@@ -413,7 +413,7 @@ contract PerpV2LeverageModule is ModuleBase, ReentrancyGuard, Ownable, SetTokenA
413
413
// `positions[setToken]` mapping stores an array of addresses. The base token addresses are removed from the array when the
414
414
// corresponding base token positions are zeroed out. Since no positions exist when removing the module, the stored array should
415
415
// already be empty, and the mapping can be deleted directly.
416
- delete positions[setToken];
416
+ delete positions[setToken];
417
417
418
418
// Try if unregister exists on any of the modules
419
419
address [] memory modules = setToken.getModules ();
@@ -563,8 +563,8 @@ contract PerpV2LeverageModule is ModuleBase, ReentrancyGuard, Ownable, SetTokenA
563
563
564
564
/**
565
565
* @dev GOVERNANCE ONLY: Update max perpetual positions per SetToken. Only callable by governance.
566
- *
567
- * @param _maxPerpPositionsPerSet New max perpetual positons per set
566
+ *
567
+ * @param _maxPerpPositionsPerSet New max perpetual positions per set
568
568
*/
569
569
function updateMaxPerpPositionsPerSet (uint256 _maxPerpPositionsPerSet ) external onlyOwner {
570
570
maxPerpPositionsPerSet = _maxPerpPositionsPerSet;
@@ -1052,8 +1052,8 @@ contract PerpV2LeverageModule is ModuleBase, ReentrancyGuard, Ownable, SetTokenA
1052
1052
1053
1053
int256 baseBalance = perpAccountBalance.getBase (address (_setToken), _baseToken);
1054
1054
int256 basePositionUnit = baseBalance.preciseDiv (totalSupply.toInt256 ());
1055
-
1056
- int256 baseNotional = _baseQuantityUnits == basePositionUnit.neg ()
1055
+
1056
+ int256 baseNotional = _baseQuantityUnits == basePositionUnit.neg ()
1057
1057
? baseBalance.neg () // To close position completely
1058
1058
: _baseQuantityUnits.preciseMul (totalSupply.toInt256 ());
1059
1059
@@ -1134,7 +1134,7 @@ contract PerpV2LeverageModule is ModuleBase, ReentrancyGuard, Ownable, SetTokenA
1134
1134
function _syncPositionList (ISetToken _setToken ) internal {
1135
1135
address [] memory positionList = positions[_setToken];
1136
1136
uint256 positionLength = positionList.length ;
1137
-
1137
+
1138
1138
for (uint256 i = 0 ; i < positionLength; i++ ) {
1139
1139
address currPosition = positionList[i];
1140
1140
if (! _hasBaseBalance (_setToken, currPosition)) {
@@ -1236,7 +1236,7 @@ contract PerpV2LeverageModule is ModuleBase, ReentrancyGuard, Ownable, SetTokenA
1236
1236
* @param _components Array of components held by the SetToken
1237
1237
* @param _newExternalPositionUnit Dynamically calculated externalPositionUnit
1238
1238
* @return int256[] Components-length array with equity adjustment value at appropriate index
1239
- * @return int256[] Components-length array of zeroes (debt adjustements )
1239
+ * @return int256[] Components-length array of zeroes (debt adjustments )
1240
1240
*/
1241
1241
function _formatAdjustments (
1242
1242
ISetToken _setToken ,
0 commit comments