Skip to content

Latest commit

Β 

History

History
65 lines (57 loc) Β· 2.11 KB

File metadata and controls

65 lines (57 loc) Β· 2.11 KB

Steps to complete this contract:

  1. I need to understand the logic for the smart contract
    1. YieldAggrgator Contract 1.
  2. I may have to limit this contract to specific tokens
  3. Write the MVP
    1. Use your head first
    2. Use Claude and AI Buddies
  4. Test the MVP
  5. Audit Readiness Checklist
    1. (Nascent-XYZ)[https://github.com/nascentxyz/simple-security-toolkit]
    2. (Rekt Test)[https://blog.trailofbits.com/2023/08/14/can-you-pass-the-rekt-test/]

Steps to to complete the frontend:

  1. Finish frontend
  2. Should I have a landing page?
  3. E2E Testing and Unit testing
  4. Circle Compliance Engine

πŸ“‹ Checklist for Testing

Get Sepolia ETH from faucet Get test USDC/DAI from Aave faucet Verify Aave V3 is on Sepolia (it is! βœ…) Verify Compound V3 is on Sepolia (it is! βœ…) Setup Foundry with Sepolia RPC Write adapters for Aave & Compound Deploy contracts to Sepolia Test deposits to both protocols Test withdrawals Verify on Sepolia Etherscan

// User (via frontend): "Show me my investments" positions = contract.getUserPositions(myAddress)

// Returns: [ { protocolName: "compound", token: "0x123...USDC", principalAmount: 1000, currentShares: 500, depositTimestamp: 1699999999 }, { protocolName: "aave", token: "0x456...DAI", principalAmount: 2000, currentShares: 1000, depositTimestamp: 1700000000 } ]


**Step 2:** Frontend displays this nicely:

Your Positions: β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Index β”‚ Protocol β”‚ Token β”‚ Amount β”‚ Action β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ 0 β”‚ Compound β”‚ USDC β”‚ 1000 β”‚ [Withdraw]β”‚ ← Button calls withdraw(0) β”‚ 1 β”‚ Aave β”‚ DAI β”‚ 2000 β”‚ [Withdraw]β”‚ ← Button calls withdraw(1) β””β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜