Skip to content

Commit

Permalink
feat: add _validateSwap
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlak committed Nov 16, 2023
1 parent aefadb3 commit 49a97b9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contracts/strategies/G3MStrategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ contract G3MStrategy is IG3MStrategy {
uint256 reserveY
) external view returns (bool, int256) { }

function _validateSwap(
uint256 preInvariant,
uint256 postInvariant
) internal pure returns (bool) {
return postInvariant > preInvariant;
}

function getAmountOut(
uint64 poolId,
bool sellAsset,
Expand Down

0 comments on commit 49a97b9

Please sign in to comment.