Compare commits
No commits in common. "3d1e8b69840342483793534ed5ce5f625a28adb7" and "f80b72d9e0548071371e2c6c3fef9c4df65ab46e" have entirely different histories.
3d1e8b6984
...
f80b72d9e0
|
@ -105,7 +105,7 @@ pub async fn runner(
|
|||
.context
|
||||
.tokens
|
||||
.values()
|
||||
.filter(|t| !t.closed)
|
||||
.filter(|t| t.closed == false)
|
||||
.map(|t| &t.token_index)
|
||||
// TODO: grouping tokens whose oracle might have less confidencen e.g. ORCA with the rest, fails whole ix
|
||||
// TokenUpdateIndexAndRate is known to take max 71k cu
|
||||
|
|
|
@ -272,7 +272,7 @@ impl MangoGroupContext {
|
|||
name: String::new(),
|
||||
mint_info_address: *pk,
|
||||
decimals: u8::MAX,
|
||||
closed: true,
|
||||
closed: false,
|
||||
banks: mi.banks,
|
||||
vaults: mi.vaults,
|
||||
oracle: mi.oracle,
|
||||
|
@ -299,7 +299,7 @@ impl MangoGroupContext {
|
|||
let fallback_oracle_accounts = fetch_multiple_accounts(rpc, &fallback_keys[..]).await?;
|
||||
for (index, (_, bank)) in bank_tuples.iter().enumerate() {
|
||||
let token = tokens.get_mut(&bank.token_index).unwrap();
|
||||
token.closed &=
|
||||
token.closed =
|
||||
bank.native_deposits() == 0 && bank.native_borrows() == 0 && bank.reduce_only == 1;
|
||||
token.name = bank.name().into();
|
||||
token.decimals = bank.mint_decimals;
|
||||
|
|
Loading…
Reference in New Issue