0g-chain/x
Nick DeLuca 20437a91fb
Add E2E Swap Support (#959)
* add message types for swaps

* add tx client commands

* add test coverage for swap message deadlines

* start handler swap tests, export handler result message event into
private method, add stubbed keeper methods

* add initial swap implementation to get handler tests passing; adds event
specific for trades

* add handler acceptance test for slippage in exact input and exact output
swaps

* implement slippage limit for swap keeper methods

* add tests to ensure a user can only swap spendable coins

* test pool not found, panic on invalid pool, and panic when module
account does not have enough funds

* validate that the exact output when using for exact swaps is less than
the pool liquidity

* nit: long line

* add validation that swap output is greater than zero

* add rest txs for swap messages

* nit: lints

* dry up swap keeper methods

* from pr feedback - spelling and increase clairty around the output
amount of a swap rounding to zero
2021-07-13 17:44:05 -05:00
..
auction add v0.13 legacy types for kava-5 (#784) 2021-02-02 15:10:57 -07:00
bep3 add v0.13 legacy types for kava-5 (#784) 2021-02-02 15:10:57 -07:00
cdp Swap users accumulate rewards (#950) 2021-07-13 13:35:02 +01:00
committee Squash merge swap-acceptance branch (#956) 2021-07-13 12:38:15 +01:00
hard Swap users accumulate rewards (#950) 2021-07-13 13:35:02 +01:00
incentive Swap users accumulate rewards (#950) 2021-07-13 13:35:02 +01:00
issuance address issues from audit (#793) 2021-02-04 11:35:24 -07:00
kavadist add community multi-spend proposal (#915) 2021-06-02 11:03:25 -06:00
pricefeed fix: return nil instead of empty byte slice (#878) 2021-03-15 08:41:36 -06:00
swap Add E2E Swap Support (#959) 2021-07-13 17:44:05 -05:00
validator-vesting fix: set previous block time correctly on block one (#868) 2021-03-10 10:56:23 -07:00