← Back to home

Pool Party

DEX yield optimiser that allocates out of positions assets into lending pools. An account abstraction layer allows 1-click liquidity management and automated yield harvesting.

Screenshots

Pool Party screenshot 1
Pool Party screenshot 2
Pool Party screenshot 3
Pool Party screenshot 4
Pool Party screenshot 5
Pool Party screenshot 6

Problem Statement

Problem:Inactive liquidity on DEXes does not generate yield for the liquidity providers.Similarly, the rewards on lending protocols are in idle state without generating profit.Too complex UI & Bad UX.Solutions:Reinvest the inactive assets by depositing on lending protocols using hooks.Maximize yields with compound rewards.1-click investment.Features:Lending pool fallback for DEX LP providersUniswap & PancakeSwap v4 hooks are used to trigger entry and exits from AAVE.Buffer ticks to prevent excessive movement of funds.Safe account abstraction with ERC7579 and ERC4337Safe v1.4.1 with fallback handler to handle 4337 and 7579 methods.1-click UX throughout the application.ERC7579 module executes claiming rewards on interval.

Solution

Foundry made writing tests, deployments and contracts possible in solidityUsed Dynamic to generate hosted embedded wallets, Pimlico to sponsor transactionsHacking Permissionless.js to figure out why only the older 0.1.36 versions worked with deployment of Safe and found an undocumented parameter name changed.Older version of permissionless.js did not work with batch transactions for 7579 walletsUsed Rhinestone Safe7579 implementation as a fallback handler, this enabled Safe to be both 4337 and 7579 to be compatibleViem to encode complex structs and calldata to provideLiquidity

Hackathon

ETHGlobal Brussels

2024

Prizes

  • 🏆

    Best use of Blockscout Block Explorer

    Blockscout

Contributors