-
Notifications
You must be signed in to change notification settings - Fork 22
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
storage market accounts, do not stop loadinng account after asset match #2136
Conversation
system-tests failed.
|
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.
LGTM
We have the same pattern in GetFeeInfrastructureAccounts
, you think we need to remove the break
statement there as well?
Yes same patttern is here, but in the case of the infrastructure fee account we will get one infrastructure fee account per asset only, the early exit makes sense there as as soon as we find the account for the required asset, we know it's the only one. It was the same thing until recently for the market account as we were looking only for the insurance pool account, although we added the Liquidity fee account recently, which indeed was not returned if we were breaking after we find the first account with matching asset. |
Could you put in a comment so that's clear @jeremyletang? Then I'm happy to merge it. |
done |
system-tests failed.
|
closes #2122