forked from jl777/SuperNET
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that trade_preimage will not succeed on input that will fail o…
…n buy/sell/setprice #902 (#937) * Ensure that trade_preimage will not succeed on input that will fail on setprice * Add balance checking on trade_preimage::method = setprice * Add an additional params checking using MakerOrderBuilder * Fix broken tests, add red test_trade_preimage_additional_validation test * Ensure that trade_preimage will not succeed on input that will fail on sell/buy * Add balance checking on trade_preimage::method = sell/buy * Add an additional params checking using TakerOrderBuilder * Make the test_trade_preimage_additional_validation test green * Extend test_trade_preimage_not_sufficient_balance * Fix invalid required field in NotSufficientBalance error generated by calc_max_maker_vol * Fix broken tests * Extend the test_trade_preimage_not_sufficient_balance test * Add the test_trade_preimage_deduct_fee_from_output_failed test * Remove unused TradePreimageRpcError::MaxVolumeLessThanDust error type * GenerateTxError::OutputValueLessThanDust converts to TradePreimageError::InternalError the value is upper bound * Remove TODO comment * Refactor 'TradePreimageRpcError::VolumeTooLow' * Rename 'TradePreimageRpcError::VolumeIsTooSmall' to 'TradePreimageRpcError::VolumeTooLow' * Add the 'coin' field to 'TradePreimageRpcError::VolumeTooLow'
- Loading branch information
1 parent
c001252
commit 73875fd
Showing
9 changed files
with
615 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.