๐๏ธProtocol architecture
How Ekubo is put together: one singleton Core contract, deferred settlement via the "till" pattern, and a thin periphery
The "till" pattern
your contract Core
โ lock() โโโโโโโโโถ โ
โ โโโโโ locked() โ โ callback: you are now inside the lock
โ swap() โโโโโโโโโถ โ
โ swap() โโโโโโโโโถ โ โ any number of operations, no transfers yet
โ withdraw()/pay() โ โ settle the net difference
โ โโโโโโโโโโโโโโโ โ โ lock ends; Core asserts all balances are settledFlash accounting
Pools
Extensions
Periphery
Last updated
Was this helpful?

