Liquidator: disable allow-borrow, now that fixed program is deployed
This commit is contained in:
parent
af5f622bd8
commit
82864e5f6f
|
@ -175,8 +175,7 @@ pub fn zero_all_non_quote(
|
|||
// Any remainder that could not be sold just gets withdrawn to ensure the
|
||||
// TokenPosition is freed up
|
||||
if amount > 0 && amount <= dust_threshold {
|
||||
// TODO: fix to false once program updated to fix allow_borrow bug
|
||||
let allow_borrow = true;
|
||||
let allow_borrow = false;
|
||||
let txsig =
|
||||
mango_client.token_withdraw(token_mint, amount.to_num::<u64>(), allow_borrow)?;
|
||||
log::info!(
|
||||
|
|
|
@ -70,7 +70,7 @@ async function main() {
|
|||
const amount = token.native(bank).toNumber();
|
||||
if (amount > 0) {
|
||||
try {
|
||||
const allowBorrow = true; // TODO: set this to false once the withdraw amount ___<___ nativePosition bug is fixed
|
||||
const allowBorrow = false;
|
||||
await client.tokenWithdrawNative(
|
||||
group,
|
||||
account,
|
||||
|
|
Loading…
Reference in New Issue