Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/risk-registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,18 @@ set_credit_limit(verifier, sme, credit_limit)
`invoice_nft::get_outstanding_exposure(sme)` and rejects the mint if
`outstanding + new_amount > credit_limit`.

### Verifier-of-Record Model & Reassignment

To prevent unauthorized changes, both `update_sme_score` and `set_credit_limit` enforce that the calling verifier (or their resolved primary verifier address) is the designated **verifier-of-record** stored in the SME's profile (`SmeProfile.verifier`). Any attempt by an unrelated verifier to modify these parameters will fail with `RiskRegistryError::NotSmeVerifier`.

If a verifier is removed or custody needs to be transferred, the admin can reassign the verifier-of-record for an SME:

```
reassign_sme_verifier(admin, sme, new_verifier)
```
- `new_verifier` must be an active, registered verifier.
- Reassignment updates `SmeProfile.verifier` to the new address and emits the `sme_verifier_reassigned` event.

---

## Risk Tier Thresholds
Expand Down
Loading