-
Notifications
You must be signed in to change notification settings - Fork 7
BaseLeverage
senamakel edited this page Sep 6, 2024
·
2 revisions
address WNATIVEconstructor(address _wnative) internalfunction increasePos(struct ILoopingStrategy.IncreasePosParams params) externalflash loan to execute increase position size
function increasePosNative(struct ILoopingStrategy.IncreasePosParams params) external payableflash loan to execute increase position size with native token
function decreasePos(struct ILoopingStrategy.DecreasePosParams params) externalflash loan to execute decrease position size
function decreasePosNative(struct ILoopingStrategy.DecreasePosParams params) externalflash loan to execute decrease position size return native token
function repayDebtWithCollateral(struct ILoopingStrategy.RepayDebtWithCollateralParams params) externalflash loan to execute repay debt with collateral
function _swapExactIn(address swapper, address from, address to, uint256 amtIn, uint256 minAmtOut, bytes data) internalfunction _swapExactOut(address swapper, address from, address to, uint256 amtOut, uint256 maxAmtIn, bytes data) internalfunction _ensureApprove(address _token, address _to, uint256 _amt) internalfunction _increasePos(struct ILoopingStrategy.IncreasePosParams params) internal virtualfunction _repayDebtWithCollateral(struct ILoopingStrategy.RepayDebtWithCollateralParams params) internal virtualfunction _decreasePos(struct ILoopingStrategy.DecreasePosParams params) internal virtual returns (uint256 amtOut)function _reducePos(address collPool, uint256 collAmt, address borrToken, uint256 repayAmt, address onBehalfOf) internal virtual returns (uint256)receive() external payable