-
Notifications
You must be signed in to change notification settings - Fork 2
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
Agent liquidation value #59
Conversation
Fix tests and tweak rr calc
d6cc8e7
to
b1cff63
Compare
Requires Lotus build on master branch with this PR: * filecoin-project/lotus#11566
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.
Lots of changes!
Overall, looks really good. I reviewed and have a better understanding of how the termination penalties flow through the system. The economics calculations look well thought out, but I don't have complete understanding to say whether or not they are correct.
econ/econ.go
Outdated
@@ -18,79 +18,60 @@ func ComputeAgentData( | |||
sdk poolstypes.PoolsSDK, | |||
agentLiquidAssets *big.Int, |
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.
Think we should phase out the liquid assets term and use agentAvailableBalance
econ/econ.go
Outdated
if err != nil { | ||
return nil, err | ||
} | ||
// here we replace the ats.AgentAvailableBal with the AgentLiquidAssets passed in this call to compute the post-action liquidation value |
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.
Confusing...available balance is the same as liquid balance just in this case liquid assets has the post-action value
No description provided.