Binding and timelock
The resolver binds a market to a token once the token exists: proposeBind(marketId, token, ratio). The ratio is in token base units per unit sold (for an 18 decimal token, 0.02 per point is 2e16).
- The proposal takes effect 24 hours later (
TIMELOCK, fixed in the constructor). Its time of effect must be no later than the market's bind date. - From the proposal on, the market takes no new offers or fills. Cancels keep working.
- During the timelock the guardian (the owner) or the resolver can cancel the proposal, and trading resumes.
- Once the time passes, the binding applies by itself: the binding time is the proposal's time of effect, whoever touches the market first.
finalize(marketId)exists for indexers that want the event. proposeVoid(marketId)follows the same timelock for a programme that is cancelled.