Skip to content
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

Review Comments #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Review Comments #1

wants to merge 1 commit into from

Conversation

raymogg
Copy link
Contributor

@raymogg raymogg commented Jun 21, 2022

Motivation

Thought it would be easier to make comments and any changes via PR.

@raymogg raymogg requested a review from iflp June 21, 2022 03:40
@@ -292,6 +299,7 @@ contract PoolStateHelper is IPoolStateHelper {
// Base case
finalExpectedPoolState = ExpectedPoolState({
cumulativePendingMintSettlement: newPendingSettlement,
// note: why do we multiply out by decimals here? Is that not already factored into the settlement balance?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due to integer division - there can be a scenario where long.settlementBalance < short.settlementBalance. Scaling by settlementTokenDecimals seemed a logical choice to me because shortPrice and longPrice are scaled the same way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants