Policies
Each policy is an NEP-171 token on market.mmiri-demo.testnet. Whoever holds it when the oracle result arrives is paid.
| # | Holder | Underwriter | Payout | Premium | Strike | Window | Status |
|---|---|---|---|---|---|---|---|
| 6 | mmiri-demo.testnet | uw-1.mmiri-demo.testnet | 50.00 | 9.13 | 60.0 mm | 30d from 20250415 | paid out |
| 7 | mmiri-demo.testnet | uw-1.mmiri-demo.testnet | 50.00 | 9.13 | 60.0 mm | 30d from 20250415 | paid out |
| 8 | mmiri-demo.testnet | uw-1.mmiri-demo.testnet | 50.00 | 10.21 | 60.0 mm | 30d from 20260415 | expired |
| 9 | mmiri-demo.testnet | uw-1.mmiri-demo.testnet | 50.00 | 9.13 | 60.0 mm | 30d from 20250415 | paid out |
| 11 | mmiri-demo.testnet | uw-1.mmiri-demo.testnet | 50.00 | 9.13 | 60.0 mm | 30d from 20250415 | paid out |
What happens when a policy is transferred
The policy is a bearer instrument: the right to be paid attaches to the token, not to the account that bought it. A farmer who needs cash before the window closes can sell the cover; a co-operative can hold policies for its members; a lender can take one as security against the loan it is funding.
The rule that makes that safe is one line of the contract: the payout is sent to whoever owns the token at the moment the oracle result arrives — not to whoever called settle, and not to whoever owned it when the policy was written.
That distinction is the whole design. settle is asynchronous: it fires an off-chain request and the answer comes back in a later callback. If the contract decided the recipient when settle was called, a seller could settle, sell the policy while the request was in flight, and still collect the money — leaving the buyer holding a token that had already paid out to someone else. Resolving the owner at callback time closes that window, and there is a sandbox test that sells a policy inside the gap and asserts the new holder is paid.
This version implements NEP-171 core, enumeration and metadata, and deliberately no NEP-178 approval management. A stale approval is the cleanest way for a seller to pull a token back mid-settlement, so the mechanism is removed rather than guarded. docs/THREAT_MODEL.md §1 works through every way a seller could try to keep the money.