Security
How to report a security problem and how fast we answer, what is in scope, who holds which key, what each key can and cannot do, and the timers that protect holders.
Report a problem#
Found a bug? Tell us first. If something could put funds or users at risk, report it privately to [email protected]. A person reads every report.
Send what you found, the steps to reproduce it and a proof of concept. Name the contract, transaction or page involved and tell us how to reach you.
- Do not test on mainnet with other users' funds. Use your own wallets, a local fork or testnet.
- Do not share details publicly until a fix is live.
The same contact is published for tools at security.txt.
Response time#
We acknowledge every report within 4 business hours. Then we send you our assessment, keep you updated while we work on a fix, and tell you when it ships.
Scope#
- The Perpsplexity smart contracts on Sui mainnet listed below, including every upgrade of the upgradeable packages.
- The perpsplexity.app website.
- The keepers and backend services that run the pools and the site.
| Contract | Package |
|---|---|
| Pools (upgradeable package, original id) | 0x97fea95545c04dc73f8174c6195013b100a26e3fa978e7cf8b100a51dfaf8354 |
| Pools (immutable package) | 0xaedb8c9a905a778e831aeb4928f660210a7a645925348a7c4ec1cb4a6a3fd16e |
| Pool engine | 0x2ec50cc9740fa5cf75dd7d57e0cb3e1394f3b5cb153806b2168e8e3be681e8c1 |
| Custody adapter | 0xbf32cfba21310ac40b05d7269f789270c04aae036ab863dc340c3df3d023fd37 |
| Lending adapter | 0x67e9a229946236383e6a84a01f185be9b244e4056ff398d7a39d60a19bd2d8dd |
| Suilend wrapper, for the immutable package (Suilend v26) | 0x06ac777a9b9a0582a7996ae109ebb7768f921c64f04ad6389e6a9849a5f9814d |
| Leveraged tokens | 0x294e0968e465d9e2e560b825c603a40d34a7ee72e5a9157ff796519d44f7df4a |
Every other id is on Addresses.
Bugs in Sui itself or in third party protocols such as Aftermath and Suilend belong with those teams, but tell us too if they put Perpsplexity users at risk.
Safe harbor#
Good faith research that follows this page is welcome. We will not take legal action against you for it.
Disclosure#
If an incident affects user funds, we disclose it publicly within 72 hours and publish a postmortem within 14 days. With your permission, we credit you.
Rewards#
A bug bounty is coming. Its rewards and rules will be posted here when it opens.
Thanks#
People who reported issues responsibly: no names yet.
Keys#
Every key below is held by the admin address 0xa3585953487cf72b94233df0895ae7f6bb05c873772f6ad956dac9cafb946d5d. Anyone can read a key's current owner on chain.
| Key | Covers | Id |
|---|---|---|
| UpgradeCap | the upgradeable pool package | 0x0c48c2bab19ad441b0271d7926ca17d334570e255862e3d547880dd66bf03457 |
| AdminCap | the upgradeable package's Config | 0x07725407f28d6d3950e51150cc4162fe600284d3de9241f74d5cd3b1638ab92d |
| AdminCap | the immutable package's Config | 0x08aebf7d25c7d715498752ee8813c0384ca48afc7d6d247874bf2ba36ce1f2dc |
| UpgradeCap | leveraged tokens | 0xc13b4b0a7e7d6098a5016aeb81a95c5579a5b18a5ce185a5cce718279f2758fc |
| AdminCap | leveraged tokens | 0xe6359cf93561ae580e1d572ffbd1000e9ac37412b9628735a6f5dca6d54353ad |
The immutable pool package has no UpgradeCap: its code can never change. Both UpgradeCaps use Sui's compatible policy: an upgrade cannot change the public signatures or struct layouts of the package, but it can change what the code does.
What each key could do if stolen#
| Key | Could | Could not |
|---|---|---|
| Pool UpgradeCap | Publish new code for the upgradeable package. New code can do anything with those pools' money. This is the single biggest trust point. | Touch pools in the immutable package. |
| Pool AdminCap | Pause buys, change Config settings after a 48 hour notice, collect the platform's share of fees, set a pool's funding buffer, put a pool to rest in cash or wake it, and switch the Config to new code after an upgrade. | Withdraw a pool's backing, its treasury or its holders' dividends. Stop receipt sales by pausing. |
| Leveraged token UpgradeCap | Publish new code for the leveraged tokens. New code can do anything with their money. Upgrades are not timelocked, so an exploit can be patched at once. | |
| Leveraged token AdminCap | Pause buys, change settings within their hard ceilings, wind a token down, revoke keepers, and halt the Config. | Move a token's money or trade it, or raise a fee past its ceiling. |
| Leveraged token KeeperCap | Rebalance a token back toward its target inside the Config's slippage bound. | Move a token's money. The admin revokes every keeper cap at once. |
Timers that protect holders#
| Change | Notice |
|---|---|
| A pool Config change (fees, fee split, exit fee curve, lock tiers, limits) | 48 hours, applied by anyone after the notice; the contract refuses a shorter notice |
| A pool's funding buffer | 48 hours, the same notice as a Config change |
Changes that only reduce risk, such as pausing buys, apply at once. A pool creator has no setting that changes a pool after launch.
Pools have no keeper key. Their upkeep (bonding, rebalancing, refilling cash, topping up margin from the treasury, the daily dividend and reinvest step) runs through calls that anyone can make: each one works from the pool's own state and stays inside the pool's bounds.
Halts and pauses#
- Pools. Pausing a Config stops buys and new launches. Sales of receipts keep working.
- Leveraged tokens. Pausing stops buys on every token; sales keep working. A halt stops every call on every token, sales included, until the admin turns the Config back on. It exists to stop an exploit in progress.
Design rules that limit loss#
- Oracle prices for value. Pool positions and leveraged tokens are valued at the oracle, which trading cannot move.
- Deadlines. Every trade carries a deadline at most 120 seconds ahead, so a signed transaction cannot be held and replayed later at a stale price.
- Margin defense. Each pool's treasury tops up its position's margin before liquidation.
- Market hours. While a backing market is closed or paused, pools refuse trades that would change the position, and sales are paid from cash.
- Leverage follows the venue. A launch opens at most at 90% of Aftermath's limit for the market, and at most 5x while the pool is under $5,000.