-
Notifications
You must be signed in to change notification settings - Fork 0
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
Settlement Engine #9
Conversation
a390892
to
0e078e0
Compare
feat: update engine spec and api validation
fix: update api interface fix: remove graceful shhutdown
fix: update api interface fix: remove graceful shhutdown
let (direct_assets, non_direct_assets): (Vec<_>, _) = | ||
user_balances.into_iter().partition(|balance| balance.token == to_token); |
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.
🙇🏻♂️
feat: add user address to extract_balance_data
user_address: sender_address.unwrap_or(&ADDRESS_ZERO.to_string()).clone(), | ||
recipient: recipient_address.unwrap_or(&ADDRESS_ZERO.to_string()).clone(), |
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.
Isn't this a problem, it should return error here
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.
right, will fix it
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.
Ah so this is by design actually, notice that I accept Option<String>
as parameters for the addresses. The reason for this being this same function is used by the indexer to build Estimators, and at that time we don't know the sender/receiver addresses. The good thing is that socket APIs work well even if the account does not hold any funds, so address zero is ideal when running the indexer and building Estimators.
Had to migrate everything from |
No description provided.