How to Test
The repository includes a comprehensive Rust test suite. From the root of the contracts workspace:How to Deploy
To deploy the contracts to the Stellar network, clone the coverfi-contracts repository and use the Soroban CLI.- Build the WASM contracts:
- Deploy to Testnet:
Security Notes
[!WARNING]
Audit Status: These contracts are currently in beta and have not undergone a formal security audit. Use at your own risk.
- Oracle Dependency: The system heavily relies on the
oracle_adapter. If price feeds are delayed or manipulated, it could lead to improper payouts or missed claims. - Reentrancy: State changes occur before external cross-contract token transfers to prevent reentrancy attacks.
- Access Control: Critical functions like
update_priceand contract upgrades are strictly protected by the admin’s authentication.