Skip to content

Commit

Permalink
chore: add some todo's
Browse files Browse the repository at this point in the history
  • Loading branch information
artall64 committed Oct 19, 2023
1 parent 490729b commit d4e27f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/LimitOrderProtocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -1021,8 +1021,8 @@ describe('LimitOrderProtocol', function () {
expect(await swap.remainingInvalidatorForOrder(addr1.address, '0x0000000000000000000000000000000000000000000000000000000000000001')).to.equal('0');
});

// TODO: fix simulate test
it('can simulate order cancelation', async function () {
// TODO: prepare more representative test in 'wip' section - illustrate cases when SimulationResults args is different from 0x
const { swap, order } = await loadFixture(orderCancelationInit);

const calldata = swap.interface.encodeFunctionData('cancelOrder', [
Expand Down
4 changes: 4 additions & 0 deletions test/helpers/orderUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ const TakerTraitsConstants = {
_ARGS_INTERACTION_LENGTH_MASK: 0xffffff,
};

// TODO: reaname minReturn to threshold
// if makingAmount flag set to false, it works as minReturn (in making asset)
// if makingAmount flag set true, it works as maxSpent (in taking asset)
// TODO: also adjust description.md
function buildTakerTraits ({
makingAmount = false,
unwrapWeth = false,
Expand Down

0 comments on commit d4e27f8

Please sign in to comment.