Architecture

The protocol design is in its early stages and may undergo significant changes as it develops.
The protocol is crafted to maximize decentralization and operates without permission. It can be split in two primary components:
An ERC4337-compatible wallet
An oracle
ERC4337 wallet
When a user sets up their automation strategies, a smart wallet is automatically deployed behind the scenes. This wallet uses Bastion's SDK to ensure compatibility with ERC4337 standards. Additionally, it includes functions specific to the user's requirements, which dictate what actions the protocol can perform on their behalf.
The protocol is safeguarded using call policies, restricting it from executing arbitrary actions. Further details about call policies in an ERC4337 wallet can be explored here.

Oracle
To activate functions based on predefined conditions, whether originating from on-chain or off-chain sources, an external service is required. This role is fulfilled by Otomato's oracle.

Example for a simple use case

Last updated