Fragments is a one-stop suite enabling automation in DeFi. Think Zapier but for DeFi.
Fragments is a Decentralized Finance (DeFi) automation suite enabling users to create structured DeFi strategies, based on on-chain as well as off-chain data points.
With Fragments, you can automate - transactions of any token, to any EVM chain, swaps for any token, across any EVM chain, deposits to and withdrawals from popular liquidity pools such as Balancer and Curve, deposits to and withdrawals from vaults protocols such as Beefy.finance or Yearn vaults, supply to and borrow from lending protocols such as Aave or Morpho, based on - time, token price, network's gas price, or any known data point 🤯
In this documentation, we will guide you through the functionalities and usage of Fragments, so you can leverage them to their full potential.
For any activity on the blockchain triggered due to known events, there is a manual intervention from 1 or more private keys required.
Smart contracts are not active computer programs but are actually passive scripts. They are like computer programs sitting on a hard drive, waiting for someone to run them.
Once they are executed, the rules embedded in the contract are automated. Each contract requires a private key to make a signature and trigger an action on the blockchain.
In the majority of the scenarios, there are humans doing these signatures manually with their EOA's private key.
If the conditions for triggering these factors are known and real, they can be automated by an external agent. It boils down to the following data points :
A generalized automation flow will look something like this;
The user provides asset allowance P to the signer network.
F(D) = T, the function or formula on data points will help arrive at values of T
Let, T = T(now), where T(now) is the current value to trigger the task
The watcher (W), keeps polling to check for instance when T(now) = T
When T(now)=T is met,
The signer network is alerted and an external agent (E) is selected and handed over P, to execute the transaction on-chain.
- when T(now)≠T User EOA -> P on the token and call data -> Signer Network
- when T(now) = T W -> F(D) = T -> E is alerted E -> takes P -> executes transaction on chain