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 introduced at EthCC[5] and is also described here. 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).
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.