- Replace
PlatformFee::calculate_breakdown(&env, ...)withcalculate_breakdown_with_fee_bps(..., 200)(pure function, no storage access)
- Add MIN_TRANSFER check in
transfer_fundsfunction
- Handle
token_client.balance(from)failure gracefully (unregistered token)
- Replace
.unwrap()with.ok_or(QuickLendXError::StorageKeyNotFound)?
- Register a contract and wrap
Invoice::new()inenv.as_contract()
- Run
cargo test -p quicklendx-contracts --libto verify all 9 tests pass - Run
cargo clippy --workspace --all-targets -- -D warnings