-
Notifications
You must be signed in to change notification settings - Fork 8
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
1 changed file
with
62 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// SPDX-License-Identifier: AGPL-3.0-only | ||
pragma solidity 0.8.19; | ||
|
||
import "./IG3MStrategy.sol"; | ||
|
||
contract G3MStrategy is IG3MStrategy { | ||
function afterCreate( | ||
uint64 poolId, | ||
bytes calldata strategyArgs | ||
) external returns (bool success) { } | ||
|
||
function beforeSwap( | ||
uint64 poolId, | ||
bool sellAsset, | ||
address swapper | ||
) external returns (bool, int256) { } | ||
|
||
function validateSwap( | ||
uint64 poolId, | ||
int256 invariant, | ||
uint256 reserveX, | ||
uint256 reserveY | ||
) external view returns (bool, int256) { } | ||
|
||
function getAmountOut( | ||
uint64 poolId, | ||
bool sellAsset, | ||
uint256 amountIn, | ||
address swapper | ||
) external view returns (uint256) { } | ||
|
||
function getSpotPrice(uint64 poolId) | ||
external | ||
view | ||
returns (uint256 price) | ||
{ } | ||
|
||
function getMaxOrder( | ||
uint64 poolId, | ||
bool sellAsset, | ||
address swapper | ||
) external view returns (Order memory) { } | ||
|
||
function simulateSwap( | ||
Order memory order, | ||
uint256 timestamp, | ||
address swapper | ||
) | ||
external | ||
view | ||
returns (bool success, int256 prevInvariant, int256 postInvariant) | ||
{ } | ||
|
||
function getInvariant(uint64 poolId) external view returns (int256) { } | ||
|
||
function validatePool(uint64 poolId) | ||
external | ||
view | ||
override | ||
returns (bool) | ||
{ } | ||
} |