Inspiration

Aleo introduces privacy in transactions while maintaining a structure to prevent transaction mishaps and ensure security. If Aleo can bring the demand from Ethereum's mainnet transactions into Aleo and onboard users who prioritize privacy, the potential of Aleo's ecosystem is limitless. Therefore, this team operated as Aleo testnet validators, increasing their understanding of the network and even hosting private Aleo events in South Korea. Especially during this period, they embarked on cross-chain swaps to enable more assets and liquidity to flow into Aleo from other chains.

What it does

In our journey, we've gained valuable insights into three key aspects:

Benefits and Challenges of zk Cross-Chain Swaps We've explored the advantages and hurdles when creating cross-chain swaps within the zk environment. This knowledge equips us to make informed decisions and tackle obstacles effectively.

Transaction Sequencing for Cross-Chain Swaps Understanding the optimal order of transaction processing is crucial in addressing various transaction types within cross-chain swaps. We've honed our expertise in this area to ensure seamless execution.

Aleo's Transaction Privacy and Security We've delved into how Aleo enhances transaction privacy and maintains robust security. This insight allows us to provide a secure and private environment for users within the Aleo ecosystem.

These learnings empower us to offer cutting-edge solutions and deliver a superior cross-chain swap & easy way to stake experience on Aleo.

How we built it

We created a preliminary version of aSwap. Initially, we referenced swap codes from the existing Aleo environment and EVM-based swap codes for development. Subsequently, we set the direction towards cross-chain swaps, drawing inspiration from the structure of existing EVM-based cross-chain swaps.

We tailored the structure to fit Aleo's provided zk environment, building it using Solidity and Leo. Finally, we operated and simulated it on the testnet to verify its stability.

Challenges we ran into

The part where we implemented contracts in the Leo language was tailored to suit Leo's language specifications. Since Aleo currently lacks a standardized token framework and some infrastructure, we felt that with further development, we could build even better solutions.

In the future, we aspire to contribute to the Aleo ecosystem in various ways, expanding our impact and support for the platform.

What we learned

  • Benefits and Challenges of Creating Cross-Chain Swaps in the zk Environment.
  • How to Sequence Transactions to Effectively Address Various Transaction Types in Cross-Chain Swaps.
  • How Aleo Enhances Transaction Privacy and Security.

What's next for Aswap ; zk cross-chain enabled swap & staking

Roadmap

Cross-Chain liquidity provision

Cross chain - Liquidity pool provision process

  • Objective: Enable seamless and private asset swaps between external assets and $ALEO (Aleo standards).
  • Pair Add Liquidity : Initialize or add to ALEO pairs and token pairs liquidity pools
  • Single Asset Liquidity Providing : Add a single token asset to the pool, and the Aswap contract can automatically input this with the appropriate ratio in the pool.

cross-chained Staking and Swap

  • Objective: Integrate staking with the swap feature to maximize benefits for users.

Cross chain - Swap pool

Cross chain - Staking

  • Token Swap : Execute swaps between ALEO and other tokens or between any two supported tokens.
  • Stake ALEO : Lock ALEO into the contract to earn rewards.
  • Stake Other Assets : Aswap contract support user who want to stake other assets directly
  • Earn rewards : Claim accrued rewards.

Position NFT

  • Objective: Issue tradable NFTs to represent positions in liquidity or staking pools.

please have a look at attached doc

Built With

Share this project:

Updates