Motoswap's Native Swap contract allows users to perform efficient, on chain swaps leveraging web technologies such as AssemblyScript and WebAssembly.
For detailed documentation on how the Native Swap works such as mechanics, math, and security please see NativeSwap.md.
- Native BTC Support: Includes specialized logic to handle the irreversibility of transactions.
- Cross-Chain Efficiency: Utilizes an internal AMM approach combined with reservation models to prevent partial failures that can't be reverted on the blockchain side.
- Scalable Architecture: Designed to handle high throughput while maintaining consistent, block-based price updates.
-
Install Dependencies:
npm install
-
Build the Project:
npm run build
This compiles the AssemblyScript code into WebAssembly, along with any TypeScript modules used.
This project is licensed under the MIT License. View License for more details.