Poseidon

1inch Fusion+ extension for Starknet, with a possibility to swap from EVM chains to Starknet

Unite DefiShipped July 25, 2025#defi#security
Repo
Poseidon banner

About

This project implements a cross-chain atomic swap protocol extending 1inch Fusion+ to Starknet. The protocol uses Hashed Timelock Contracts (HTLCs) to ensure that swaps are atomic, meaning they either complete successfully on both chains or fail without any loss of funds for the participating parties.

The system is built around a set of escrow contracts on both the source (EVM) and destination (Starknet) chains. When a swap is initiated, funds are locked in these escrows. The swap is executed when a secret hash is revealed by maker on the destination chain, unlocking the funds for the taker on the source chain. Security is paramount, with timelocks in place to allow for fund recovery in case of failures. The protocol is designed to be robust, handling potential issues like invalid secrets or timeouts gracefully.

How it's made

The project is built on top of 1inch Fusion+ protocol and extends EVM to EVM cross-chain-resolver example with Starknet smart contracts, deployment and swap logic. The core of the project lies in the Escrow.sol and starknet_escrow.cairo contracts, which implement the HTLC logic on their respective chains.

EVM-side (Solidity): The contracts folder contains all the Solidity contracts. Resolver.sol, is the primary contract, handling the locking and unlocking of assets on the EVM chain. The EscrowFactory.sol contract is used to deploy new escrow contracts for each swap.

Starknet-side (Cairo): The contracts_starknet folder houses the Cairo contracts. starknet_escrow.cairo mirrors the functionality of its Solidity counterpart, managing the escrow process on the Starknet network. keccak_helper implements keccak256 hashing on Starknet chain. EVM proxy contracts logic is replaced with only one Escrow contract which contains a mapping for all escrows created for the swaps.

Testing (TypeScript): The end-to-end swap process is demonstrated in the tests_evm_starknet/main.spec.ts file. These tests simulate the entire lifecycle of a swap, from order creation and fund locking to the final exchange of assets

A notable aspect of this project is the intricate coordination between the EVM and Starknet contracts. The test suites were particularly challenging to implement, requiring a sophisticated setup to simulate cross-chain interactions. Also, keccak256 implementation was quite challenging on Starknet.

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

Starkudan-Swap

Secure, trustless atomic swaps between EVM and Starknet ecosystems with HTLCs and 1inch’s contracts

FusionPlusStarknet

Cross-chain Fusion+ swap from Ethereum ↔ Starknet with hashlock, timelock, and native token support.

StarknetFusion+

Cross-chain atomic swaps between Starknet and EVM via 1inch Fusion+