DeFi & Smart Contracts: How SurfLiquid Integrates
Seamlessly connects your funds to top DeFi protocols through secure, smart contract automation.
SurfLiquid sits at the intersection of advanced AI and decentralised finance protocols. Here’s a closer look at how the platform integrates with DeFi and utilises smart contracts to deliver its functionality:
Protocol Integrations: Out of the box, SurfLiquid connects to a curated set of DeFi protocols across supported blockchains. For lending (in the Stablecoin strategy), it integrates with platforms like Aave, Compound, Fluid, Sky, Seamless, Euler and Morpho on networks like Base and Ethereum, and will expand to others (e.g. Euler, Venus on BSC, etc.) as needed. For yield farming (in the Farming strategy), it plugs into DEXes (Uniswap, Aerodrome, Shadow, Velodrome, etc.), yield aggregators (similar to Yearn, Beefy), and staking contracts of popular projects. These integrations are achieved via smart contracts that follow the protocols’ interfaces – e.g., calling
deposit()andwithdraw()functions on lending pools, or interacting with LP token contracts. Each integration is thoroughly tested. If a protocol updates or a new opportunity arises, the SurfLiquid team (and eventually community governance) can deploy new strategy contracts or update the registry to include it.Transaction Batching: Using the smart wallet, SurfLiquid can batch multiple DeFi interactions. For example, integrating with a DEX for swapping and then a farm for staking – normally two transactions – can be done as one atomic transaction through the smart account’s multicall. This not only saves on gas fees but also ensures that if any step fails, the whole transaction reverts, preventing partial completion issues (like swapping but failing to stake, which could leave you holding tokens unintentionally).
Account Abstraction (AA): SurfLiquid’s approach is very much in line with the latest trend of Account Abstraction, where smart contract wallets (aka smart accounts) offer more flexible permission management than regular wallets. By leveraging AA, we allow meta-transactions (others can pay gas for you, meaning the agent or executors can even cover gas fees using the protocol’s funds if structured that way) and session keys. It’s possible in the future that SurfLiquid could integrate with Ethereum’s ERC-4337 AA standard or other AA frameworks to become even more seamless (e.g., gas abstraction where you could pay gas in USDC from your smart account instead of ETH).
Interchain Operability: DeFi is multi-chain, and so is SurfLiquid. The platform will use bridging solutions to move assets where needed. For instance, if Base has the best stablecoin yields, but a user deposits from the Ethereum mainnet, SurfLiquid can use a bridge (possibly via a service like Stargate or Hop) to get the funds to Base. These cross-chain operations might involve additional smart contracts or liquidity networks, but the agent abstracts it away for the user. Our docs and UI will always be clear about which network your funds are currently on and, if moved, what bridges were used. The smart account concept extends across chains – essentially, you get a smart account wallet on each chain when needed, all controlled by your same keys. The agent orchestrates across them, giving a unified experience.
Composable Design: Because SurfLiquid uses established protocols and standard token interfaces, it remains composable with the broader DeFi ecosystem. For example, while your funds are in your SurfLiquid smart account, you could still interact with that account externally if you wanted (advanced users might deposit additional funds directly to their smart contract or use it in other dApps, though that’s outside the typical flow). Also, the yield you earn is in standard tokens, which you can withdraw and use elsewhere immediately after deactivation. We believe in integrating, not isolating – SurfLiquid should play nicely with other DeFi Legos.
In summary, Surf acts as a sophisticated middleware between you and DeFi protocols: it uses smart contracts to securely connect to various platforms and uses AI to decide how to utilise those connections for your benefit. The heavy use of automation does not sacrifice the core DeFi principles of transparency and composability – behind every agent action is a contract call you could, in theory, replicate manually (we just make it a whole lot easier and smarter to do). This synergy of AI and smart contracts is what makes SurfLiquid a pioneering agentic utility in the DeFi space.
Last updated