PhorosPhoros
Docs

Contracts

ContractAddress on Elysium (99901)
PhorosVaultPublished here at deployment
StreamShare (master; each listing is a clone)Published here at deployment
PhorosStakePublished here with $PHOROS
Montra registry0xF1E2FA75422F889e565F3142bdbf60B28dce2aa7
Montra launch hook0x6b1216A40B65c83e9c9e18a562C446697B8cf8EC
Uniswap v4 PoolManager0xE2e105d3F7209A9DA11f83cCf3E7398a753823F1

PhorosVault

Holds the recipient of listed pools. Checks each hook against Montra's registry (isKnownHook). Functions: open, activate, buy, closeSale, harvest, end, cancel, setReturnTo, setCreator, withdrawCredit; views getListing, priceOf, quoteBuy, liveListingOf.

Owner functions: setSaleFee (capped at 5% in code), setBond, setFeeSink, sweep and rescueUnlisted. sweep sends only what sits above creator credits and posted bonds. Stream fees never rest in the vault: a harvest forwards them to the share token in the same transaction.

StreamShare

ERC-20 with a fee index. Minted once at activation. claimable(holder), claim(to), claimFor(holder). Its sweep takes only what holders are not owed.

PhorosStake

Stake $PHOROS, earn the HYPE that the vault's flushFees sends. Unstake any time. Its sweep never touches stakes or earned HYPE.

Tests

Unit tests for every path, fuzz tests on the share index (whatever the transfers and payments, holders never claim more than was paid in, and rounding stays under a billionth of a HYPE), and a fork test of the full flow on Montra's live contracts. ABIs: /sdk/abis.json.