-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
pragma solidity ^0.8.19; | ||
|
||
contract HedgeManager { | ||
function modifyHedgePosition(uint256 priceMovement) external onlyOwner{ | ||
function modifyHedgePosition(uint256 deltaDifference, uint256 gammaDifference) external onlyOwner{ | ||
// Detect from mapping if LP is delta-gamma hedge with a power-perp or future / borrowing | ||
// Change accordingly to price movement and rebalance threshold if only delta-neutral | ||
|
||
|
||
// 1. conditional statement to check if LP is delta-gamma hedge or only delta | ||
// 2. if LP is delta hedged, check rebalance threshold, if exceeded, rebalance accordingly --> futures / borrowing | ||
// 3. if LP is delta-gamma hedged, ensure both are within expected boundaries --> power perps | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters