WokenExchange
Woken Exchange
  • 👋Welcome to Woken Exchange
  • Preface
    • 💡Birth of the idea
    • ⏮️Project genesis
  • Predefined Trading Hours?
    • 👷For Web3 Builders
    • 👨‍💼For Investors
    • 🏬For IRL companies
    • 🌍To boost the adoption
    • 🏢For Institutionals ?
    • ⚖️To seduce the States ?
  • Woken V1 : our solution
    • 🔬Overview
    • 🔃Swap open/closed
    • 🅿️Pool open/closed
    • ⏳Timekeeper
      • 🕓Settings Trading Hours
      • ⚙️Safety Tools
    • ✅Certified Projects
    • 👥DAO : vote
      • 🗳️Woken Protocol Votes
        • 📓How to submit and vote for the Woken Protocol?
      • ✅Woken Certified Projects : vote market
        • 📓How to submit and vote market?
      • ⚙️Snapshot API
  • PROTOCOL & Tokenomic
    • 🪙$WKN Woken DAO Token
    • 📊Tokenomic
    • 💲DAO Rewards
    • 🔁Fees
    • ⛓️Multi-chain
    • 🛣️Roadmap
  • Woken V2 : evolutions
    • 🚀Woken V2
  • Tools
    • 🤖Woken Timekeeper Events BOT
    • 🛡️Sample ERC20 protected by Timekeeper
  • Team
    • 👨‍💻Core Team and Contributors
  • Security
    • 🔐Audit & Verifications
    • 📔Contracts and wallets
  • FAQ
    • ❔Frequently Asked Questions
  • Media kit
    • 📸Logo
    • 📩Contact
  • Official Links
    • 🌐Links
  • Legal
    • Legal Disclaimer
Powered by GitBook
On this page
  1. Woken V1 : our solution

Timekeeper

For PairAdmin / PairAdminDao

PreviousPool open/closedNextSettings Trading Hours

Last updated 1 year ago

When a project owner creates his liquidity pair on Woken, it is by default tradable 24-7, as on any AMM.

Timekeeper is an option that a Project Owner/Builder (PairAdmin) enable/disable if he wants to customize the trading hours of his pair on the DEX, according to his needs.

function setEnable
WokenFactory.sol
function setEnable(address _pair, bool _enable) public isPairAdmin(_pair) {
        isTimekeeperEnabledLP[_pair] = _enable;
        emit TimekeeperEnable(_pair);

Once enabled*, he can switch from 24-7 to custom trading hours for his pair. Timekeeper management is facilitated by a dedicated, intuitive and easy-to-use interface.

When the PairAdmin enables his pair's Timekeeper for the very first time, the default settings is: open every day from Monday to Friday without interruption, closed from Saturday at 00:00 UTC 0 and Sunday before reopening the following Monday at 00:00 UTC 0 (24h/Day option enabled).

WokenFactory.sol
TimekeeperPerLp[pair]= pairTimekeeper(0, 0, 23, 59, [0,0,0,0,0,1,1], 0, true);


How Timekeeper works?

Timekeeper is the smart contract that controls the LPs trading hours.

Whenever a user initiates a transfer, LP will request the Timekeeper for the current trading status. The Timekeeper retrieves the actual time from the blockchain, computes the status of the transactions and sends it back.

⏳
Timekeeper Page : Timekeeper is not enabled for this pair
Timekeeper Page : Timekeeper is enabled for this pair
Timekeeper
https://github.com/WokenExchange/Contracts/blob/master/Timekeeper.solgithub.com