π Description
Investor KYC is enforced via is_investor_verified in verification.rs, and bid acceptance funds escrow through accept_bid_and_fund. A subtle gap: an investor who was verified at place_bid time but whose KYC is later revoked must not have their bid accepted-and-funded. There is no regression asserting acceptance re-checks investor verification at fund time.
Why this matters: KYC must be enforced at the moment funds move, not just at bid placement. If acceptance trusts a stale verification, a revoked investor can still fund β a compliance hole. This locks the re-check at the fund boundary.
π― Requirements & Context
Context & constraints
- Token helpers consistent with
test_investor_kyc.rs. If acceptance does NOT currently re-check, document it as a finding.
π οΈ Suggested Execution
git checkout -b test/kyc-recheck-on-accept
cargo test -p quicklendx-contracts test_kyc_recheck_on_accept -- --nocapture
cargo clippy -p quicklendx-contracts --all-targets -- -D warnings
- Edge cases: revoke between place and accept; revoke then re-verify before accept; pending (never verified) investor.
Example commit message
test(kyc): assert accept_bid_and_fund re-checks investor verification at fund time
Locks that a revoked investor cannot fund escrow via a previously-placed bid.
β
Acceptance Criteria & Guidelines
| Requirement |
Target |
| KYC re-check at fund time asserted |
Required |
| No escrow/funds on rejection |
Required |
| Finding documented if gap exists |
Required |
| Coverage of acceptance path |
β₯ 95% |
cargo clippy clean |
Required |
| Timeframe |
96 hours from assignment |
π¬ Community & Support
Join Discord: https://discord.gg/VpngvTjWa β comment to claim. π
π Description
Investor KYC is enforced via
is_investor_verifiedinverification.rs, and bid acceptance funds escrow throughaccept_bid_and_fund. A subtle gap: an investor who was verified atplace_bidtime but whose KYC is later revoked must not have their bid accepted-and-funded. There is no regression asserting acceptance re-checks investor verification at fund time.π― Requirements & Context
quicklendx-contracts/src/test_kyc_recheck_on_accept.rs.accept_bid_and_fundrejects with the KYC error fromerrors.rs.Context & constraints
test_investor_kyc.rs. If acceptance does NOT currently re-check, document it as a finding.π οΈ Suggested Execution
git checkout -b test/kyc-recheck-on-accept cargo test -p quicklendx-contracts test_kyc_recheck_on_accept -- --nocapture cargo clippy -p quicklendx-contracts --all-targets -- -D warningsExample commit message
β Acceptance Criteria & Guidelines
cargo clippyclean㪠Community & Support
Join Discord: https://discord.gg/VpngvTjWa β comment to claim. π