Risk and yield methodology
How the engine scores markets and what the on-chain Safe policy enforces.
Pipeline
Read
Market data ranks venues. Execution acts only on fresh on-chain reads.
Score
8 hard gates filter first. 12 sub-scores combine into a 0 to 100 risk score.
Yield
Native APY is projected. Incentives are discounted to 40% and kept separate.
Frontier
Any venue beaten on both risk and yield is dropped.
Allocate
Picks the best point under your risk ceiling and stores inputsHash for replay.
Risk sub-scores
- Pool size
- Capital outflow
- Yield stability
- Reliance on incentives
- Exit liquidity
- Your share of the pool
- Contract maturity
- Upgradeability
- External dependencies
- Governance
- Asset volatility
- Withdrawal delay
Hard gates
Excluded before scoring regardless of risk ceiling
- Unaudited
- Exploited recently
- Upgradeable without a timelock
- Admin key can seize funds
- Asset is off its peg
- Pool too small
- Not enough liquidity to exit
- Data too stale to trust
Yield and determinism
Paid by borrowers or the strategy itself. Shown as the headline rate.
Campaign rewards discounted to 40% and decayed to zero. Never blended into native APY.
The engine is a pure function with no I/O or clock access. Every allocation stores its canonical inputs and inputsHash so you can replay and verify it on Portfolio.
On-chain custody and policy
Verified on-chain inside validateUserOp via scripts/testnet-e2e.ts
- Approve whitelisted marketInside the session policy scope.Allowed
- Withdraw to an attackerDestination not in policy. Rejected in validateUserOp.Refused on-chain
- Transfer tokens to an attackerBare ERC-20 transfer is not a permitted selector.Refused on-chain
- Approve attacker as spenderSpender argument is constrained on-chain.Refused on-chain
0x048392cad0D6b04fF02b75A3dB01811563c2DfA3You are the sole owner of your Safe. Revoking the session key is a single on-chain transaction from your wallet.