What it does

The implementation of the Liquidity Pool contract is completed, incorporating all essential user interactions facilitated through the @soroban-react library. This encompasses actions such as minting tokens, contributing liquidity to the pool, and executing token swaps.

The front-end component adeptly computes the required quantity of INPUT tokens to transmit, ensuring the receipt of the desired amount of OUTPUT tokens. Developed within the React.js framework, it delivers a seamless and user-friendly experience.

For the deployment of this project, a comprehensive set of scripts is accessible within the repository, streamlining the process.

How we built it

[Rust]: Smart Contract and Backend: This part of the project involves the development of smart contracts and backend functionalities. It is an adaptation of the soroban-examples smart contract written in Rust, specifically focusing on the liquidity_pool and token functionalities.

[Bash]: Deployment and Initialization Scripts: This section encompasses a collection of Bash scripts that facilitate the deployment and initialization of the smart contracts. These scripts are designed to work seamlessly with a local standalone network.

[React.js]: Front-end Implementation: The front-end component of the project is developed using React.js. It incorporates hooks to implement the @soroban-react library, enhancing user interaction and providing a user-friendly interface.

[TypeScript]: Necessary Functions and New Hooks: Within the TypeScript portion, you will find essential functions and newly created hooks. These elements play a crucial role in the project's functionality and expand upon the capabilities of the @soroban-react library.

Challenges we ran into

Custom Hooks: Develop specialized React hooks. SDK Update: Upgrade to the latest SDK versions. ScVal Conversion: Transform variables to ScVal for @soroban-react. Inverse Functions: Calculate AMM trade amounts inversely. Signatures: Secure communication in js-soroban-client. Wasm Hash: Obtain contract wasm hash with soroban-cli.

Built With

Share this project:

Updates