mango-v4/ts/client/src/accounts
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
..
bank.ts cap max borrow in withdraw to safety constraint (#335) 2022-12-13 19:41:19 +01:00
group.ts remove outdated todos 2022-12-13 10:29:55 +01:00
healthCache.spec.ts Client: Rework max_swap function (#340) 2022-12-16 16:33:37 +01:00
healthCache.ts Client: Rework max_swap function (#340) 2022-12-16 16:33:37 +01:00
mangoAccount.ts Client: Rework max_swap function (#340) 2022-12-16 16:33:37 +01:00
oracle.ts use provider connection to fetch switchboard idl 2022-11-21 16:48:35 -05:00
perp.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
serum3.ts ts client changes (#320) 2022-12-08 10:16:06 +01:00