Skip to content

Lock Origin Pool Retention to Protocol Baseline and Update Mainnet Addresses#379

Merged
KillariDev merged 4 commits into
mainfrom
t3code/37d5cfc9
Jun 23, 2026
Merged

Lock Origin Pool Retention to Protocol Baseline and Update Mainnet Addresses#379
KillariDev merged 4 commits into
mainfrom
t3code/37d5cfc9

Conversation

@KillariDev

Copy link
Copy Markdown
Collaborator

Summary

  • Updated mainnet deployment config/docs to point deploymentStatusOracle to 0x76ca5D8c891b8c285831Bb62DdC3141569E43e14 and securityPoolFactory to 0x1B2973a1bD9A4459e8Cd517B92ea1433cB0eAccA.
  • Changed SecurityPoolFactory origin deployment flow to ignore caller-supplied retention and initialize origin pools with protocol baseline retention via SecurityPoolUtils.calculateRetentionRate(0, 0).
  • Added securityMultiplier > 1 enforcement for origin pool deployment to prevent locked unsafe parameters by first deployers.
  • Updated UI security pool creation to remove editable retention input, show fixed initial retention, and simplify validation in createSecurityPoolParameters.
  • Added/updated tests to verify:
    • origin deployment reads protocol retention instead of user input,
    • retention is stored from protocol parameters,
    • invalid multipliers (0, 1) are rejected,
    • UI renders fixed initial retention and no retention-rate input field.

Testing

  • Added Solidity test:
    • solidity/ts/tests/peripherals/deploymentAndOwnForkEscalation.test.ts (new origin retention derivation test)
  • Added UI unit tests:
    • ui/ts/tests/marketCreation.test.ts
    • ui/ts/tests/securityPoolSection.test.tsx
  • Not run (no test command executed in this request): bun run tsc, bun run check, bun run test, targeted Solidity/UI test command(s).

- Update mainnet deployment addresses for deployment status oracle and security pool factory
- Ignore caller-supplied retention input on origin pool creation and enforce security multiplier > 1 in UI and factory
- Show fixed initial open-interest fee in pool creation UI and compute it from on-chain protocol value
- Add tests confirming retention derives from protocol math and input validation changes
# Conflicts:
#	docs/mainnet-deployment-addresses.json
#	docs/mainnet-deployment-addresses.md
- Drop the retained `currentRetentionRate` argument from `deployOriginSecurityPool` in Solidity interface and implementation
- Update all contract callers/helpers/tests across solidity and UI to use three-argument deployment
- Remove retention-rate fields from market creation form/types and related UI/simulation code paths
- Refresh mainnet deployment-address docs to match newly deployed peripheral contracts
@KillariDev

Copy link
Copy Markdown
Collaborator Author

/review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CI Agent Review

No security issues found.

@KillariDev KillariDev merged commit 3838d0e into main Jun 23, 2026
2 of 3 checks passed
@KillariDev KillariDev deleted the t3code/37d5cfc9 branch June 23, 2026 15:56
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.

1 participant