Implement tests for DEX Module LP command: `createPosition`
Closed this issue · 1 comments
emiliolisk commented
Description
createPosition was tested with the following scenarios and expectations as mentioned below:
Scenario | Expectation |
---|---|
Valid input values are used | Return 0 for POSITION_CREATION_SUCCESS and positionID in result. Calls token methods and emits positionCreated event. |
Should fail when ticks are out of range | Exception is thrown. |
should fail when amount0Desired is over amount0Min | Exception is thrown. |
Should fail when header.timestamp > maxTimestampValid | Exception is thrown. |
Acceptance Criteria
- Existing and new unit tests are passing
Naureen1lightcurve commented
This issue #269 is already resolved and the last modification is in this commit.