Skip to content

Conversation

@youngkidwarrior
Copy link
Collaborator

Why:
Create minimal manager to mirror ERC-4626 asset balances to
Superfluid pool units.

Test plan:

  • bunx hardhat compile
  • bunx hardhat test test/rewards.manager.test.ts

Copy link
Collaborator Author

youngkidwarrior commented Sep 10, 2025

@youngkidwarrior youngkidwarrior marked this pull request as ready for review September 10, 2025 00:55
Why:
Mirror users' ERC-4626 asset balances to Superfluid pool
units so distributions reflect on-chain holdings across vaults
of the same underlying (e.g., USDC). Keep admin surface small
and sync idempotent and safe.

Details:
- Constructor requires an existing SENDx (ISuperToken)
- Creates the Superfluid Pool via SuperTokenV1Library
- updateMemberUnits mirrors summed user assets (uint128)
- Minimal AccessControl; emits PoolCreated and SyncedVault
- Deploy script and caches added separately in follow-up

Test plan:
- bunx hardhat compile (succeeds)
- bunx hardhat test test/rewards.manager.test.ts
  (validates pool creation and unit sync semantics)
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