mango-v4/ts/client/src
Christian Kamm 071dc34ccc
Client: Rework max_swap function (#340)
* Client: Rework max_swap function

Determining the amounts at which the health function changes slope
becomes too difficult when serum3 open orders come in.

Instead, generally find the function's maximum and then work with that.

* max_swap: Add test for swapping into a trustless token

* ts port

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
Co-authored-by: microwavedcola1 <microwavedcola@gmail.com>
2022-12-16 16:33:37 +01:00
..
accounts Client: Rework max_swap function (#340) 2022-12-16 16:33:37 +01:00
constants switch to new vanity address 2022-12-08 10:23:12 +01:00
debug-scripts Client: Rework max_swap function (#340) 2022-12-16 16:33:37 +01:00
numbers Mc/ts numbers - cleanup usage of all numbers (#259) 2022-09-30 15:07:43 +02:00
scripts Client: Rework max_swap function (#340) 2022-12-16 16:33:37 +01:00
utils ts: Fix sendTransaction to work with NodeWallet 2022-12-09 14:55:33 +01:00
client.ts support passing ALT in marginTrade client fn 2022-12-15 17:22:10 -05:00
development.ts Mc/ts numbers - cleanup usage of all numbers (#259) 2022-09-30 15:07:43 +02:00
ids.ts ts client improvement (#254) 2022-09-29 15:51:09 +02:00
index.ts Merge remote-tracking branch 'origin/dev' into main 2022-10-07 13:21:47 -04:00
mango_v4.ts dont do checks force close flag is used explicitly (#341) 2022-12-15 21:10:56 +01:00
types.ts Merge branch 'main' into dev 2022-12-07 11:01:36 +01:00
utils.ts Client: Rework max_swap function (#340) 2022-12-16 16:33:37 +01:00