Paradex
Badges
About
Paradex is a high-performance crypto-derivatives exchange built on a Starknet Appchain.
$17.98 M
2.50%
- Users' withdrawals can be censored by the permissioned operators.
- Upgrades executed by actors with more centralized control than a Security Council provide less than 7d for users to exit if the permissioned operator is down or censoring.
Website | paradex.trade |
---|---|
App | app.paradex.tradeparadex.trade/stats |
Docs | docs.paradex.trade |
Repository | github.com/tradeparadex |
Social | @tradeparadexDiscord |
Badges
About
Paradex is a high-performance crypto-derivatives exchange built on a Starknet Appchain.
...
Choose token
![](https://assets.coingecko.com/coins/images/6319/large/usdc.png?1696506694)
Funds can be stolen if
Funds can be lost if
Funds can be frozen if
Users can be censored if
MEV can be extracted if
State validation
ZK proofs (ST)zkSTARKS are zero knowledge proofs that ensure state correctness.
Data availability
On chain (SD)All of the data (SD = state diffs) needed for proof construction is published on chain.
Exit window
NoneThere is no window for users to exit in case of an unwanted regular upgrade since contracts are instantly upgradable.
Sequencer failure
No mechanismThere is no mechanism to have transactions be included if the sequencer is down or censoring.
Proposer failure
Cannot withdrawOnly the whitelisted proposers can publish state roots on L1, so in the event of failure the withdrawals are frozen.
![Paradex](/icons/paradex.png)
- A complete and functional proof system is deployed.
- Users’ withdrawals can be censored by the permissioned operators.
- Upgrades executed by actors with more centralized control than a Security Council provide less than 7d for users to exit if the permissioned operator is down or censoring.
- Upgrades unrelated to on-chain provable bugs provide less than 30d to exit.
Validity proofs ensure state correctness
Each update to the system state must be accompanied by a ZK proof that ensures that the new state was derived by correctly applying a series of valid user transactions to the previous state. These proofs are then verified on Ethereum by a smart contract.
Zero knowledge STARK cryptography is used
Despite their production use zkSTARKs proof systems are still relatively new, complex and they rely on the proper implementation of the polynomial constraints used to check validity of the Execution Trace.
Funds can be lost if the proof system is implemented incorrectly.
All data required to reconstruct rollup state is published on chain
State diffs are publish on-chain as blob or calldata on every state update. The state diffs contain information on every contact whose storage was updated, and additional information on contract deployments. From diffs full system state can be recovered. Contracts’ code is not published on L1, but can be trustlessly verified if available elsewhere.
The system has a centralized operator
The operator is the only entity that can propose blocks. A live and trustworthy operator is vital to the health of the system.
MEV can be extracted if the operator exploits their centralized position and frontruns user transactions.
Users can't force any transaction
There is no general mechanism to force the sequencer to include the transaction.
Users can be censored if the operator refuses to include their transactions.
Regular exit
The user initiates the withdrawal by submitting a regular transaction on this chain. When the block containing that transaction is proven the funds become available for withdrawal on L1. Finally the user submits an L1 transaction to claim the funds. This transaction does not require a merkle proof. Note that the withdrawal request can be censored by the Sequencer.
Funds can be frozen if the operator censors withdrawal transaction.
Emergency exit
There is no generic escape hatch mechanism as Starknet cannot be forced by users into a frozen state. Note that a freezing mechanism on L2, to be secure, requires anti-censorship protection.
The system uses the following set of permissioned addresses:
Can upgrade implementation of the system, potentially gaining access to all funds stored in the bridge and potentially allowing fraudulent state to be posted. Currently there is 0s delay before the upgrade.
Can upgrade implementation of SHARP Verifier, potentially with code approving fraudulent state. Currently there is 0s delay before the upgrade.
SHARP Verifier Governor. This is a Gnosis Safe with 2 / 3 threshold.
Those are the participants of the SHARPVerifierGovernorMultisig.
Allowed to post state updates. When the operator is down the state cannot be updated.
Can upgrade implementation of the USDC Escrow, potentially gaining access to all funds stored in the bridge. Currently there is 0s delay before the upgrade.
![A diagram of the smart contract architecture](/images/architecture/paradex.png)
The system consists of the following smart contracts on the host chain (Ethereum):
CallProxy for GpsStatementVerifier.
Starkware SHARP verifier used collectively by Starknet, Sorare, ImmutableX, Apex, Myria, rhino.fi and Canvas Connect. It receives STARK proofs from the Prover attesting to the integrity of the Execution Trace of these Programs including correctly computed state root which is part of the Program Output.
MemoryPageFactRegistry is one of the many contracts used by SHARP verifier. This one is important as it registers all necessary on-chain data.
Same as MemoryPageFactRegistry but stores facts proved by the old SHARP Verifier, used as a fallback.
Value Locked is calculated based on these smart contracts and tokens:
The current deployment carries some associated risks:
Funds can be stolen if a contract receives a malicious code upgrade. There is no delay on code upgrades (CRITICAL).