# [DRAFT]Automation Autonolas + Keep3r
### Introduction
The future needs to be open-source, permissionless, and decentralized. These core values are not a nice-to-have but a must-have. Recently, greed has blinded a big part of the ecosystem, reducing these values to buzzwords and nonsense.
[DeFi sucks](https://defi.sucks/), but we are here to improve it.
We like to build on the DeFi infrastructure as we have done with Keep3r Network and now we want to integrate Autonolas as a module to the protocol.
## Who are we?
At [Wonderland](https://defi.sucks/), we are a dedicated team of activists, developers, and researchers with a passion for shaping the future of the Web3 ecosystem. We understand the industry's challenges and are committed to joining forces with the leading protocols and teams in the space to push the boundaries of what is possible.
Our partnerships with some of the most successful and promising projects in Web3, including Yearn, Sudoswap, Connext, and Keep3r, have allowed us to tackle complex engineering challenges and help these protocols reach their full potential. We're excited to continue working with the best in the industry to drive innovation and growth in the Web3 ecosystem.
- Website: [https://defi.sucks/](https://defi.sucks/)
- Twitter: [https://twitter.com/DeFi_Wonderland](https://twitter.com/DeFi_Wonderland)
- GitHub: [https://github.com/defi-wonderland](https://github.com/defi-wonderland)
- Medium: [https://defiwonderland.medium.com/](https://defiwonderland.medium.com/)
See [here](https://www.notion.so/Who-is-DeFi-Wonderland-f2cddb8f3c254c7dbf3a6f854b70b557) for some examples of our prior work.
[Who is DeFi Wonderland?](https://www.notion.so/Who-is-DeFi-Wonderland-f2cddb8f3c254c7dbf3a6f854b70b557)
## Defi Wonderland + Autonolas + Keep3r
At DeFi Wonderland we are very happy to integrate Autonolas + Keep3r, which we believe share the same values and Web3 ethics of open source, permissionless, and decentralized infrastructure. The Keep3r Network, like Autonolas, are a fundamental part of the Defi ecosystem infrastructure of the future, we are convinced that by collaborating together both protocols can empower and benefit each other.
## The problem
Currently the keeper system can be very aggressive. Similar to what happens in the [Dark Forest](https://www.paradigm.xyz/2020/08/ethereum-is-a-dark-forest) with MEV bots, a few keepers monopolize the scene, leaving many others unable to work and resorting to losses due to the cost of maintaining the infrastructure a keeper requires. This is a problem that the Keep3r Network has faced for a long time, and one that for some time we took as an inherent part of the "free market" style mechanics. However, we realized that the side effect of this dynamic is a marked decrease in the number of keepers, which in turn implies the danger of centralization.
**This is against our ethos.**
At the same time, products such as Autonolas offer a framework for the creation of service keepers. This framework, called Op Autonomy, allows the coordination of an N number of keepers through a consensus to perform a job.
If at any time the keepers must perform a job, e.g., settle a transaction on a blockchain, one of the keepers is randomly assigned to perform that action. The designation process is also agreed upon by consensus, and multiple signature protocols are used to prevent a single malicious keeper from executing an external action on its own. As such, a minimum number of agents must approve and sign off on each action before it is carried out, and it must also be verified once it has been processed.
In other words, Autonolas democratizes the work of the keepers, coordinating them and eliminating competition between them.
Autonolas has not yet been launched into production, so an integration would be a clear benefit for the Keep3r ecosystem and therefore also for Autonolas.
## The solution
With this integration, those who register a job or service in Keep3r Network will be able to access the Open Autonomy framework of Autonolas. Jobs registered through Open Autonomy will be able to pay through the same Keep3r payment system, KP3R credits.
As mentioned above, the integration of Autonolas as a module of Keep3r Network could solve the lack of keepers in the network, this increase could possibly increase the number of jobs which would benefit Autonolas.
**How would the integration work?**
Users can register a job on Keep3r Network and choose the system that currently offers the protocol, where keepers compete for who performs the job. The most sophisticated keepers will win, this works very well for jobs like liquidations or arbitrations and is more expensive (requires more infrastructure).
Alternatively, they can choose the Autonolas module, where the keepers coordinate to do the jobs and everyone wins. This does not require sophisticated keepers or a large infrastructure to maintain, it works very well for example for internal operations of a DAO like paying rewards to contributors for performing an action.
**Why would someone register their job using the Autonolas module?**
For non time sensitive executions, there is no need for keepers to compete:
- Transactions can wait for lower gas.
- No gas war among keepers, which means on average lower gas paid per job.
- Previsibility will eliminate the failed transactions and hence lower operation costs.
As a result, keepers will be cheaper to incentivize, meaning the jobs become cheaper for the job posters.
Also the consensus (Tendermint) offered by Autonolas will have the module and will coordinate the keepers working on the service. The slashing and dispute layer inherited from Keep3r Network will also be added. The keepers will have to provide a collateral to be able to work, this collateral can be an ERC-20 (the service defines the amount) or it can be kLP credits.
Note: currently Autonolas does not have a slashing and disputing layer.
**Details of the module**
- Open Autonomy
- Consensus Tendermint, Keepers coordination
- FSM app, contains business logic for Keepers to respect consensus rules
- Payment mechanism
- Credit Mining (KP3R)
- ERC-20
- Staking (guarantee)
- kLP
- ERC-20
- Slashing (addresses approved by Keep3r Governance)
- Disputer (addresses approved by Keep3r governance)
**By using the Autonolas module, keepers no longer compete with each other for work as they are coordinated by consensus and are all paid for performing jobs correctly.**
## Proposal for token distribution
DeFi Wonderland’s mission isn’t just to do a single project and move on. DeFi Wonderland focuses on building deep, mutually beneficial partnerships. We do not clock-in and clock-out to simply “get the job done”. We are an extension of our partners’ teams, delivering unparalleled guidance and support over the long-term.
We would envision a token grant that would vest over an extended duration and incentivize DeFi Wonderland to continually contribute, advise, and build over the duration of the vesting period on multiple projects.
## Appendix
At the same time, products such as Autonolas offer a framework, named Open Autonomy, for coordination of AEA, autonomous economic agent with no vendor lock-in (keepers) to provide a service. The coordination of multiple keepers is achieved through the FSM application which is structured as a series of steps that each keeper in the service must follow to achieve the functionality of the service (economic logic). Together with a consensus device (Tendermint), the keepers must reach a consensus on the outcome of each step. This ensures that the execution flow of the service, its inputs and outputs are replicated across all keepers. Open Autonomy framework provides most of the machinery for the shared state to be replicated among the agents automatically through the consensus device.