mango-v4/ts/client/src/scripts
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
..
mm make mm work with mango-perp, deposit some funds into shared wallet mango account, fixed some ts perp issues 2022-12-09 20:23:30 +01:00
decode-event.ts Clarkeni/ids from api (#177) 2022-08-18 08:48:45 +02:00
devnet-admin-close.ts reloadAll is now idsSource aware (#275) 2022-11-04 14:35:40 +00:00
devnet-admin.ts ts client changes (#320) 2022-12-08 10:16:06 +01:00
devnet-user-2.ts mc/oracle peg ts client (#290) 2022-11-21 19:34:41 +01:00
devnet-user-close-account.ts reloadAll is now idsSource aware (#275) 2022-11-04 14:35:40 +00:00
devnet-user.ts Client: Rework max_swap function (#340) 2022-12-16 16:33:37 +01:00
mb-admin-close.ts Liquidator, liqtest and rust client fixes (#336) 2022-12-16 13:10:46 +01:00
mb-admin.ts make mm work with mango-perp, deposit some funds into shared wallet mango account, fixed some ts perp issues 2022-12-09 20:23:30 +01:00
mb-close-account.ts rename 2022-12-08 10:49:00 +01:00
mb-edit-perp-market.ts ts client changes (#320) 2022-12-08 10:16:06 +01:00
mb-liqtest-create-group.ts Liquidator, liqtest and rust client fixes (#336) 2022-12-16 13:10:46 +01:00
mb-liqtest-make-candidates.ts Liquidator, liqtest and rust client fixes (#336) 2022-12-16 13:10:46 +01:00
mb-liqtest-settle-and-close-all.ts dont do checks force close flag is used explicitly (#341) 2022-12-15 21:10:56 +01:00
mb-user.ts rename 2022-12-08 10:49:00 +01:00