Author: Gading Condro Prakoso
Project Type: Pelita Bangsa Academy Bootcamp Mini Project (Blockchain / DeFi)
This project simulates a simplified ETH restaking flow in DeFi:
- A user sends ETH to the
RestakeManagercontract. - ETH is staked via a mock
Lidocontract, mintingstETH. stETHis wrapped intowstETHto simulate non-rebasing behavior.wstETHis supplied to a mockAavecontract as collateral on behalf of the user.
The entire flow is orchestrated through a single entry-point contract
(RestakeManager) to demonstrate DeFi protocol composability.
Simulates the Lido staking mechanism.
The submit() function accepts ETH and mints stETH at a 1:1 ratio as a
representation of staked ETH.
Implements an ERC20 wrapper pattern for stETH.
wstETH represents a fixed-balance wrapped token, improving compatibility with
DeFi protocols.
Simulates a lending protocol by recording supplied collateral.
Only supply() and withdraw() logic are implemented.
Acts as the main orchestrator of the restaking flow.
It coordinates staking, wrapping, and collateral supply across multiple
contracts and includes basic safety mechanisms such as custom errors and an
optional pause (circuit breaker).