We've optimised the PKO contracts:
- Usage of TokenFactory for EquityToken instead of Proxy
- Switching strings to bytes in the Token contracts
- General usage of inline assembly
- Custom errors instead of require statments
- Switching the logic in TOK to approval-based
- Switching OpenZeppelin to Solady libraries
- Compilation with --via-ir
Bonus: Migrated the project to Foundry for smoother performance and better type safety! :)
Repo link: https://github.com/agacja/PKO Youtube: https://www.youtube.com/watch?v=SWpsB4Bc4gk
Mandatory note: We're applying for the PKO gas optimisation bounty
Log in or sign up for Devpost to join the conversation.