Skip to content

Commit

Permalink
feat: update validatePool
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlak committed Nov 16, 2023
1 parent 2880ab1 commit aefadb3
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions contracts/strategies/G3MStrategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ contract G3MStrategy is IG3MStrategy {
return true;
}

function validatePool(uint64 poolId)
external
view
override
returns (bool)
{
return configs[poolId].weightX != 0;
}

function beforeSwap(
uint64 poolId,
bool sellAsset,
Expand Down Expand Up @@ -69,11 +78,4 @@ contract G3MStrategy is IG3MStrategy {
{ }

function getInvariant(uint64 poolId) external view returns (int256) { }

function validatePool(uint64 poolId)
external
view
override
returns (bool)
{ }
}

0 comments on commit aefadb3

Please sign in to comment.