Skip to content

WIP First pass at option 2#1385

Draft
fusmanii wants to merge 9 commits intousdfreev2-implv3from
faisal/option2-impl
Draft

WIP First pass at option 2#1385
fusmanii wants to merge 9 commits intousdfreev2-implv3from
faisal/option2-impl

Conversation

@fusmanii
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
}

bool selfSubmit = order.orderOwner == msg.sender;
if (!selfSubmit && orderOwnerFunding.funding.length == 0) revert OrderAuthRequired();
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not needed since we always want order owner funding

Comment on lines +215 to +219
if (cmd & Commands.FLAG_SUBMITTER_INPUT != 0) {
input = subInputs[subIdx++];
} else {
input = ownerInputs[ownerIdx++];
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to take into account command where both user and submitter inputs are needed (e.g. off auction data)

Comment on lines +354 to +355
(address adapter, bytes memory data) = abi.decode(input, (address, bytes));
(ok, out) = adapter.delegatecall(data);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need submitter data here to be used in the adapter

Comment on lines +354 to +355
(address adapter, bytes memory data) = abi.decode(input, (address, bytes));
(ok, out) = adapter.delegatecall(data);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the adaptor addresses need to be behind a gated mapping that can only be assigned by owner/admin

revert InvalidCommand(op);
}
} else {
if (op == Commands.BALANCE_CHECK) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need a command to be able to do a makeCallWithBalance type of call to the executor

fusmanii added 4 commits April 2, 2026 10:51
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant