-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(orderbook): contract add cancel event and reason #323
feat(orderbook): contract add cancel event and reason #323
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
ref self: ContractState, _from_address: felt252, order_hash: felt252, reason: felt252 | ||
) { | ||
order_status_write(order_hash, OrderStatus::Open); | ||
self.emit(OrderCancelled { order_hash, reason: reason.into() }); | ||
self.emit(OrderBackToOpen { order_hash }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it really a cancel ? maybe it's more a rollbackStatus
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes right, then we remove OrderCancelled event and we rename OrderBackToOpen and we add another parameter.
cc2ada5
to
7c490be
Compare
998066a
to
6ed4216
Compare
7c490be
to
461b3f2
Compare
bfcc515
into
315-implementing-fee-distribution-on-token-swap-in-starknet-contract
Description
What type of PR is this? (check all applicable)
feat:
)fix:
)docs:
)style:
)refactor:
)perf:
)test:
)build:
)ci:
)chore:
)revert:
)BREAKING CHANGE:
)Related Tickets & Documents
Added tests?
Added to documentation?
[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?
PR Title and Description Guidelines:
feat:
,fix:
,chore:
,BREAKING CHANGE:
etc. in your PR title.Closing Issues
fix #319