Policies

Each policy is an NEP-171 token on market.mmiri-demo.testnet. Whoever holds it when the oracle result arrives is paid.

#HolderUnderwriterPayoutPremiumStrikeWindowStatus
6mmiri-demo.testnetuw-1.mmiri-demo.testnet50.009.1360.0 mm30d from 20250415paid out
7mmiri-demo.testnetuw-1.mmiri-demo.testnet50.009.1360.0 mm30d from 20250415paid out
8mmiri-demo.testnetuw-1.mmiri-demo.testnet50.0010.2160.0 mm30d from 20260415expired
9mmiri-demo.testnetuw-1.mmiri-demo.testnet50.009.1360.0 mm30d from 20250415paid out
11mmiri-demo.testnetuw-1.mmiri-demo.testnet50.009.1360.0 mm30d from 20250415paid 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.