-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
refactor: clean up NST exits related code #206
Conversation
- drop ExitStartedV2 event in favour of ExitStarted - put token data into Exit struct
); | ||
|
||
/** | ||
- tokenData — (optional) NST data | ||
*/ | ||
struct Exit { | ||
uint256 amount; | ||
uint16 color; | ||
address owner; | ||
bool finalized; | ||
uint32 priorityTimestamp; | ||
uint256 stake; |
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.
if you make stake a uint32 (for example multiple of 0.1 ETH), then you save one storage slot.
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.
out of scope, but noted here: #207
also this comes to mind: #208 |
is there a pr in node that reflects the changes in ABI? |
@johannbarbie leapdao/leap-node#281
|
testing this right now as you suggested in leapdao/leap-node#131 |
|
NewHeight event is not used in leap-node, so not a problem |
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.
💚
Resolves #197, #198