Repository navigation
Share inflation: the perpetual futures pool uses two defenses, and the formula shows why - #164
Merged
Merged
Conversation
…e formula shows why - The Adversary: the section closed on "a program needs one of these four", listing the perpetual futures pool as one that locks shares, while the bullet above it says recording the pool's size is not enough there. The close now says a program also has to check that nothing else it allows raises the pool's value the way a donation does, and that the perpetual futures pool both ignores donations and locks shares, and why. - Perpetual Futures: the inflation failure mode gives the share formula, deposit × (shares outstanding + 1,000) ÷ AUM, and the test's result: the victim is minted 2,001 shares against the attacker's 1, where the bare supply of 1 would have minted a single share. Claude-Session: https://claude.ai/code/session_01HagqhpPNqcywT37qqgnFey
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #162, which has merged. This branch was restarted from current
main.liquidity, and it locks shares because its own traders can raise that figure.test_inflating_liquidity_through_own_trades_does_not_pay, which is on companionmainsince Count the first-deposit minimum in every share divisor (token swap, perpetual futures) solana-program-examples#152 merged.npm run lint,node scripts/check-figure-geometry.mjsandnpm run build-pdfall pass.🤖 Generated with Claude Code
https://claude.ai/code/session_01HagqhpPNqcywT37qqgnFey
Generated by Claude Code