mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-12 14:09:25 +00:00
If there's no change, the fee is difference of the inputs to the outputs. The prior code wouldn't check that amount is greater than or equal to the necessary fee, and returning the would-be change amount as the fee isn't necessarily helpful. Now the fee is validated in such cases and the necessary fee is returned, enabling operating off of that.
monero-serai
A modern Monero transaction library. It provides a modern, Rust-friendly view of the Monero protocol.
This library is usable under no-std when the std feature (on by default) is
disabled.
Wallet Functionality
monero-serai originally included wallet functionality. That has been moved to monero-wallet.
Purpose and Support
monero-serai was written for Serai, a decentralized exchange aiming to support Monero. Despite this, monero-serai is intended to be a widely usable library, accurate to Monero. monero-serai guarantees the functionality needed for Serai, yet does not include any functionality specific to Serai.
Cargo Features
std(on by default): Enablesstd(and with it, more efficient internal implementations).compile-time-generators(on by default): Derives the generators at compile-time so they don't need to be derived at runtime. This is recommended if program size doesn't need to be kept minimal.multisig: Enables themultisigfeature for all dependencies.