Triggering Weekly Close

Since every aspect of GG exists on-chain which requires on-chain transactions for events to occur, a transaction is required to trigger the locking and storing of the weekly close each week. Therefore the weekly close price could be retrieved and locked several seconds to minutes after the exact weekly close.

Locking and storing the weekly close price happens one of two ways, whichever happens first after Sunday night 23:59:59:

  1. Any buy/sell/transfer transaction of GG that happens on or after Sunday night 23:59:59 will trigger the weekly close to be locked.

  2. Anyone can manually execute the `submitClose()` contract function after the weekly close time to trigger.

Last updated