@@ -238,7 +238,7 @@ contract PerpV2LeverageModule is ModuleBase, ReentrancyGuard, Ownable, SetTokenA
238
238
function initialize (
239
239
ISetToken _setToken
240
240
)
241
- external
241
+ public
242
242
onlySetManager (_setToken, msg .sender )
243
243
onlyValidAndPendingSet (_setToken)
244
244
onlyAllowedSet (_setToken)
@@ -319,10 +319,10 @@ contract PerpV2LeverageModule is ModuleBase, ReentrancyGuard, Ownable, SetTokenA
319
319
int256 _baseQuantityUnits ,
320
320
uint256 _quoteBoundQuantityUnits
321
321
)
322
- external
322
+ public
323
323
nonReentrant
324
324
onlyManagerAndValidSet (_setToken)
325
- {
325
+ {
326
326
ActionInfo memory actionInfo = _createAndValidateActionInfo (
327
327
_setToken,
328
328
_baseToken,
@@ -403,7 +403,7 @@ contract PerpV2LeverageModule is ModuleBase, ReentrancyGuard, Ownable, SetTokenA
403
403
*
404
404
* NOTE: Function will revert if there is greater than a position unit amount of USDC of account value.
405
405
*/
406
- function removeModule () external override onlyValidAndInitializedSet (ISetToken (msg .sender )) {
406
+ function removeModule () public virtual override onlyValidAndInitializedSet (ISetToken (msg .sender )) {
407
407
ISetToken setToken = ISetToken (msg .sender );
408
408
409
409
// Check that there is less than 1 position unit of USDC of account value (to tolerate PRECISE_UNIT math rounding errors).
@@ -456,7 +456,8 @@ contract PerpV2LeverageModule is ModuleBase, ReentrancyGuard, Ownable, SetTokenA
456
456
ISetToken _setToken ,
457
457
uint256 _setTokenQuantity
458
458
)
459
- external
459
+ public
460
+ virtual
460
461
override
461
462
onlyModule (_setToken)
462
463
{
@@ -488,6 +489,7 @@ contract PerpV2LeverageModule is ModuleBase, ReentrancyGuard, Ownable, SetTokenA
488
489
uint256 _setTokenQuantity
489
490
)
490
491
external
492
+ virtual
491
493
override
492
494
onlyModule (_setToken)
493
495
{
@@ -618,6 +620,7 @@ contract PerpV2LeverageModule is ModuleBase, ReentrancyGuard, Ownable, SetTokenA
618
620
uint256 _setTokenQuantity
619
621
)
620
622
external
623
+ virtual
621
624
override
622
625
returns (int256 [] memory , int256 [] memory _ )
623
626
{
0 commit comments