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

Agent liquidation value #59

Merged
merged 33 commits into from
Jan 24, 2024
Merged

Agent liquidation value #59

merged 33 commits into from
Jan 24, 2024

Conversation

Schwartz10
Copy link
Contributor

No description provided.

@Schwartz10 Schwartz10 force-pushed the agent-liquidation-value branch from d6cc8e7 to b1cff63 Compare January 19, 2024 23:27
@Schwartz10 Schwartz10 marked this pull request as ready for review January 19, 2024 23:28
Copy link
Collaborator

@jimpick jimpick left a 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,
Copy link
Contributor

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
Copy link
Contributor

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

@Schwartz10 Schwartz10 merged commit 723c8a7 into main Jan 24, 2024
@Schwartz10 Schwartz10 deleted the agent-liquidation-value branch January 24, 2024 20:35
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.

3 participants