githubEdit

๐Ÿ’ธ"Till" pattern

Every interaction with Ekubo starts with a call to `#lock`

Ekubo is a singleton contract that utilizes the "till" pattern. All pools and tokens are represented as state in the singleton. The till pattern was publicly introducedarrow-up-right at EthCC[5] and is also described herearrow-up-right. When interacting with pools in Ekubo, all token payments may be deferred until you have completed all the Core operations (e.g. swap, add liquidity, collect fees).

circle-info

Even though the entrypoint for all methods is named #lock, Ekubo protocol supports reentrancy. Locks can be nested, meaning any contract you call can also interact with Ekubo.

Last updated

Was this helpful?