Skip to content

Hackathon: Scaling Ethereum 2024

Pre-release
Pre-release
Compare
Choose a tag to compare
@gosuto-inzasheru gosuto-inzasheru released this 20 May 09:23
· 421 commits to main since this release
bda0cc2

Proof of Concept

This is the version that was submitted to ETHGlobal's Scaling Ethereum 2024 hackathon.

Showcased here: https://ethglobal.com/showcase/robosaver-1t5eh

This PoC assumes that the safe has liquidity in the Balancer stEUR/EURe pool to begin with. The safeTopup function exists to build the necessary calldata for the EURe withdrawal, and sends that payload to the delay module by passing it to execTransactionFromModule. After the cooldown has passed, executeNextTx can then be called (permissionlessly) on the delay module to actually execute it.

This process is then wrapped in the checker function; it either returns the payload necessary to call safeTopup or to call executeNextTx. A Gelato worker can then constantly poll checker, to know if it should top up the safe balance or execute a queued transaction.

Onchain

This process can be observed to successfully work in the TopupTest.t.sol test. We were also able to successfully run this onchain:

Note that the safe's EURe balance going below the threshold of 10 EURe triggered the Gelato worker to queue up the transaction automatically!

Screenshot_2024-04-18_at_16 59 04

Deployments