-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added OptionHelper interface * Allowing future version usage * Added missing SPDX
- Loading branch information
Showing
7 changed files
with
82 additions
and
13 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,3 +1,4 @@ | ||
// SPDX-License-Identifier: agpl-3.0 | ||
pragma solidity 0.8.4; | ||
|
||
import "../interfaces/IConfigurationManager.sol"; | ||
|
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
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
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,6 +1,6 @@ | ||
// SPDX-License-Identifier: agpl-3.0 | ||
|
||
pragma solidity 0.6.12; | ||
pragma solidity >=0.6.12; | ||
|
||
import "./IAMM.sol"; | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// SPDX-License-Identifier: agpl-3.0 | ||
pragma solidity >=0.6.12; | ||
|
||
import "./IPodOption.sol"; | ||
|
||
interface IOptionHelper { | ||
function mint(IPodOption option, uint256 optionAmount) external; | ||
|
||
function mintAndSellOptions( | ||
IPodOption option, | ||
uint256 optionAmount, | ||
uint256 minTokenAmount, | ||
uint256 deadline, | ||
uint256 initialIVGuess | ||
) external; | ||
|
||
function mintAndAddLiquidity( | ||
IPodOption option, | ||
uint256 optionAmount, | ||
uint256 tokenAmount | ||
) external; | ||
|
||
function mintAndAddLiquidityWithCollateral(IPodOption option, uint256 collateralAmount) external; | ||
|
||
function addLiquidity( | ||
IPodOption option, | ||
uint256 optionAmount, | ||
uint256 tokenAmount | ||
) external; | ||
|
||
function sellExactOptions( | ||
IPodOption option, | ||
uint256 optionAmount, | ||
uint256 minTokenReceived, | ||
uint256 deadline, | ||
uint256 initialIVGuess | ||
) external; | ||
|
||
function sellOptionsAndReceiveExactTokens( | ||
IPodOption option, | ||
uint256 maxOptionAmount, | ||
uint256 exactTokenReceived, | ||
uint256 deadline, | ||
uint256 initialIVGuess | ||
) external; | ||
|
||
function buyExactOptions( | ||
IPodOption option, | ||
uint256 optionAmount, | ||
uint256 maxTokenAmount, | ||
uint256 deadline, | ||
uint256 initialIVGuess | ||
) external; | ||
|
||
function buyOptionsWithExactTokens( | ||
IPodOption option, | ||
uint256 minOptionAmount, | ||
uint256 tokenAmount, | ||
uint256 deadline, | ||
uint256 initialIVGuess | ||
) external; | ||
} |
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,3 +1,4 @@ | ||
// SPDX-License-Identifier: agpl-3.0 | ||
pragma solidity >=0.6.12; | ||
|
||
interface IOptionPoolRegistry { | ||
|
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