---
# System prepended metadata

title: Week 4 EIF 3.0

---

# Week 4 EIF 3.0

Over the past week, my focus has been on improving the decentralised leveraged perpetuals that I am developing on top of AAVE. My primary task was to research and report on how other crypto protocols handle rebalancing mechanisms. I spent considerable time examining various protocols to understand their different approaches to rebalancing and how they achieve it. Through this research, I gained valuable insights that will help me improve my own protocol.

In addition to my research, I conducted a forge fork test, which was successful in allowing me to make a 3X position on AAVE. This test was essential in verifying the strength and stability of the protocol. It helped me understand how the system works, and what steps I need to take to ensure that it operates effectively. I was able to identify areas that require further improvement and make necessary modifications to the protocol to enhance its performance.

Furthermore, I documented some axioms for invariant testing. Invariant testing is critical in ensuring that the protocol operates consistently and that it remains true to its objectives. I wrote down specific axioms that will be used to verify the system's performance, such as "the total amount of collateral in the system equals the total outstanding debt" and "the protocol calculates fee rates." These axioms will be used in our testing to confirm that the system remains stable and that any changes made do not affect the fundamental principles of the protocol.

Overall, this week was productive and insightful. I gained a deeper understanding of how different protocols approach rebalancing, and I applied this knowledge to improve my protocol. The forge fork test allowed me to identify areas that required further improvement, and I was able to make the necessary modifications to ensure that the protocol operates effectively. Additionally, documenting the axioms for invariant testing will be instrumental in ensuring that the system operates consistently and that it remains true to its objectives.

As a developer, I understand that the work does not stop here. There is still much to be done, and I look forward to tackling the challenges ahead. I will continue to improve the protocol, test and refine its performance, and work towards creating a decentralised leveraged perpetuals system that is effective, efficient, and transparent.
