Security

Reviewed.
Tested.

Reviewed across every module, then launched and tested end to end on a Solana test chain.

01 · Security review

17 issues resolved before launch.

Review of the original program; the Elysium contracts get their own review before launch.

Every module went through review and testing before launch: the hub and token handling, DLMM and DAMM, the CLMM hook and router, the launchpad and credit. Each fix is proven by a test that reproduces the issue and shows it can no longer happen.

17
Issues resolved
Across every module
113
Tests passing
52 unit · 61 integration
100%
Fixes tested
Each with its own test
#Issue and resolutionStatus
01
Loan collateral could be valued at a pool price moved within one transaction
Positions are valued at the oracle price, borrowing requires spot to match it, and only allow-listed pools can be pledged.
Resolved
02
Locked and vesting positions could be pledged as collateral at full value
Locked positions can no longer be pledged.
Resolved
03
Fees of program-owned positions could be redirected by adding to them
Only the owner or an approved operator can add liquidity, in CLMM, DLMM and DAMM.
Resolved
04
A locked position's fees could be turned into locked principal
Owner-only adds, and zero-liquidity adds are rejected.
Resolved
05
Callers could pick which Pyth price update to use
Each asset's oracle account is pinned, and credit rejects wide confidence intervals.
Resolved
06
Token-2022 scaled-amount multipliers were not applied
The multiplier in effect is applied, and interest-bearing mints are rejected for priced assets.
Resolved
07
The NFT program id was unchecked on the inline graduation path
The Metaplex Core program id is checked on every position mint.
Resolved
08
Limit orders shared one global counter
Order accounts are derived per owner with a nonce.
Resolved
09
Launch pool records could be squatted
Only the launchpad writes launch records, and admins can close stray ones.
Resolved
10
Stock pools could start without the oracle hook
Operators can switch them to oracle mode.
Resolved
11
Bad debt had no write-off path
Anyone can write it off: reserves absorb it first, then lenders share the rest.
Resolved
12
Operator approvals could survive an NFT round trip
Approvals are cleared on pledge and on every change of owner.
Resolved
13
Dust deposits could block closing positions
Only the owner can add to a position or transfer its shares.
Resolved
14
Zero-share deposits were accepted
They are now rejected.
Resolved
15
Lending reserve rounding
Rounding corrected in the protocol's favour.
Resolved
16
Hook parameters had no bounds
Bounds are enforced.
Resolved
17
Keeper payouts could go to non-standard token accounts
Payouts only go to the owner's associated token account.
Resolved
Checked and sound
  • Admin roles and two-step transfer; only the upgrade authority can initialize the hub
  • Token and Token-2022 account checks, vault creation and program-id spoofing
  • Pyth parsing: owner, discriminator, verification level, feed id and exponent
  • DLMM swap rounding, protocol fee accounting and first-depositor protection
  • CLMM math checked against Uniswap v3/v4: swap steps, sqrt rounding, fee growth and tick crossings
  • Router: venue binding, hop accounts, minimum out, deadline, SOL unwrap and no partial fills
  • Bonding-curve rounding, the sold-out lock, single graduation and removal of launch mint authorities
  • Vault share math with offset, debt shares, reserves and the utilisation cap
02 · Test chain

Deployed and tested before mainnet.

The final build ran end to end on a Solana test validator (Agave 4.4, the validator software mainnet runs). It used the same deploy steps and setup planned for mainnet.

52Unit tests
61Integration tests
88Instructions
1,226 KBSBPFv3 build
262kMax compute units

Test deploy

5 / 5 steps
  1. Create the upload buffertx 4pcFu8…
  2. Upload the program1,395 chunks
  3. Hand the buffer to the deployertx 2XwGsw…
  4. Deploytx 2g51Jg…
  5. Set up the hubtx 3XmJec…
uploaded 1395 chunks, verified byte for byte
deploy + hub setup confirmed in 94 s
program 69BxGx…dqASnp live on the test chain

Hub after deploy

Live
Program69BxGx…dqASnp
Build sha256bd3894…50be73
Rent held8.739 SOL
Admin / upgrade authorityDeployer wallet
Protocol fee share20.00% of swap fees
Assets set upwSOL, USDC
PausedNo