-
Notifications
You must be signed in to change notification settings - Fork 6
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
Compute stake/pool preview guarantees state #774
Conversation
adee6f0
to
7270001
Compare
val resourceAddress = deposit.resourceAddress | ||
val contributions = classification.poolContributions.filter { | ||
it.poolUnitsResourceAddress.addressString() == resourceAddress | ||
} | ||
if (contributions.isEmpty()) { | ||
null | ||
resolveGeneralAsset(deposit, summary, assets, defaultDepositGuarantee) |
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.
Why is this needed here? Can you explain when we have empty contributions?
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.
see second bullet
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 contribute to pool amounts of resources that do not convert to pool units entirely (for example you have ratio of resources A:B as 1:2, and you contribute 1 unit of A and 2.5 of B (via sandbox), that reminder of 0.5 B is returned by RET as regular resource deposited to the specific account. Without that change, this is not reflected in the "Depositing" section, although you see in "Withdrawn" 2.5 of B being withdrawn.
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 I see now thanks
...ylon/wallet/android/presentation/transaction/analysis/processor/PoolContributionProcessor.kt
Outdated
Show resolved
Hide resolved
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.
Check the 2 above comments I am not sure about the change of the pool contribution processor.
5016cc6
to
f31bd6b
Compare
bd8255a
to
39077c4
Compare
Quality Gate failedFailed conditions 1.3% Coverage on New Code (required ≥ 40%) |
Description
TrackedClaim
object to produce model representing tx preview in that casePR submission checklist