Skip to content
News June 3, 2025

Migrating Contracts from Solidity to Soroban

Share:
Migrating Contracts from Solidity to Soroban

The video presents a comprehensive guide on migrating a smart contract written in Solidity to Soroban, a smart contract platform on the Stellar blockchain. It starts with a practical transformation of a Solidity-based perpetual futures contract, originally designed after the FTX collapse, to work on Soroban, using Rust and WebAssembly. James Bachini explains the use of AI tools to handle parts of the migration process and highlights key differences such as the use of Soroban SDK and environmental variables. The video also goes through important financial concepts like basis trades and margin requirements, offering a thorough look at how to handle various contract elements such as fees and liquidation. It emphasizes the necessity of unit testing to identify potential vulnerabilities in the contract. Although the process results in a functioning contract on Soroban, it stresses that further security audits and comprehensive understanding are essential for a production-ready state.