- Mainnet, potentially L2s like Arbitrum + Optimism
- weth, wbtc, ARB, UNI
- stables like dai, usdc
- N/A
- N/A
- No
The only admin relevant to the full margin engine is the admin of Grappa contract. Grappa is currently upgradable and that will be the only trust assumption. Other than upgradeability, the admin of Grappa can only add new asset and oracles to the protocol (and cannot remove them), so it should not affect the full margin engine in anyway.
so it is currently "TRUSTED" as grappa can still upgrade, but will become "RESTRICTED" onces we renounce the ownership of grappa contract when it's stable
- there is no admin to this module
- N/A
Is the code/contract expected to comply with any EIPs? Are there specific assumptions around adhering to those EIPs?
- N/A
- N/A
BaseEngineof from the core repository is previously audited, audit report and commit can be found here
Are there any off-chain mechanisms or off-chain procedures for the protocol (keeper bots, input validation expectations, etc)?
- No
In case of external protocol integrations, are the risks of external contracts pausing or executing an emergency withdrawal acceptable?
- No, the only expected (known trusted risk) should be the one mentioned before: if Grappa upgrade to a new implementation and rug this contract
Do you expect to use any of the following tokens with non-standard behaviour with the smart contracts?
- No
All the file in grappafinance/full-collat-engine/src, including contracts inherited, under commit 42d52. Explicitly:
- FullMarginEngine.sol@42d52af
- FullMarginLib.sol@42d52af
- FullMarginMath.sol@42d52af
- errors.sol@42d52af
- types.sol@42d52af
| Severity | Impact: High | Impact: Medium | Impact: Low |
|---|---|---|---|
| Likelihood: High | Critical | High | Medium |
| Likelihood: Medium | High | Medium | Low |
| Likelihood: Low | Medium | Low | Low |
Impact - the technical, economic and reputation damage of a successful attack
Likelihood - the chance that a particular vulnerability gets discovered and exploited
Severity - the overall criticality of the risk
Max 2 weeks (14 days)
A comprehensive security assessment of a smart contract can never ensure the total absence of vulnerabilities. This audit cannot guarantee absolute security, nor can it guarantee the detection of any issues in your smart contracts. To bolster security, it is highly advised to conduct subsequent security reviews, establish bug bounty programs, and implement on-chain monitoring.
This is a service provided as a free audit by Delvir0.
Anton Cheng