You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Breaking Changes
AMM V2, the quote calculations will now raise a LowSwapAmountError if the swap amount is too low and doesn't generate a fee. Also, the calculate_fixed_input_swap function will raise a LowSwapAmountError instead of the misleading InsufficientReserves.
AMM V1, the fetch_fixed_input_swap_quote function will raise a PoolHasNoLiquidity error instead of a generic Exception.
AMM V1, the fetch_fixed_output_swap_quote function will raise an InsufficientReserves error if the output amount is greater than or equal to the output asset reserves.
Enhancements
Improved the price impact formula and removed unnecessary abs usage.
Moved exception classes from tinyman.v2.exceptions to tinyman.exceptions.
New Features
Added low-level swap router support.
Introduced the Route class and added get_best_fixed_input_route, get_best_fixed_output_route, and fetch_best_route_suggestion functions for route preparation.
Added prepare_swap_router_transactions, prepare_swap_router_asset_opt_in_transaction, and get_swap_router_app_opt_in_required_asset_ids functions for swap router transaction preparation.
Added the parse_swap_router_event_log function to parse swap router application logs.