Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: microwavedcola1 <[email protected]>
  • Loading branch information
microwavedcola1 committed Aug 8, 2024
1 parent 8455be9 commit c94e150
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
27 changes: 11 additions & 16 deletions ts/client/scripts/maintain-alts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import {
MANGO_V4_ID,
MANGO_V4_MAIN_GROUP,
OPENBOOK_PROGRAM_ID,
SBOD_ORACLE_LUTS,
} from '../src/constants';
import { buildVersionedTx } from '../src/utils';
import { getOraclesForMangoGroup } from './sb-on-demand-crank-utils';
Expand Down Expand Up @@ -428,22 +429,16 @@ async function populateAltsForSbodOracles(): Promise<void> {
);
const group = await client.getGroup(MANGO_V4_MAIN_GROUP);

/// SBOD alts
const altAddress21 = new PublicKey(
'3DdohDpFiXjLNqCzFyU8CP3rtGwkn9VbkxFYGrNiqcyR',
);
await extendTable(
client,
group,
payer,
'sb on demand oracles',
[altAddress21],
await buildSbOnDemandAccountsForAlts(connection, group),
);
// unused
const altAddress22 = new PublicKey(
'7uRdMQCXedJ1SiVtwJJazEjsW9vmYiPZGj2ft99XnVu4',
);
SBOD_ORACLE_LUTS.forEach(async (altAddress) => {
await extendTable(
client,
group,
payer,
'sb on demand oracles',
[new PublicKey(altAddress)],
await buildSbOnDemandAccountsForAlts(connection, group),
);
});
} catch (error) {
console.log(error);
}
Expand Down
5 changes: 5 additions & 0 deletions ts/client/src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,8 @@ export const JUPITER = {
export const DEFAULT_RECEIVER_PROGRAM_ID = new PublicKey(
'rec5EKMGg6MxZYaMdyBfgwp4d5rB9T1VQH5pJv5LtFJ',
);

export const SBOD_ORACLE_LUTS = [
'3DdohDpFiXjLNqCzFyU8CP3rtGwkn9VbkxFYGrNiqcyR',
'7uRdMQCXedJ1SiVtwJJazEjsW9vmYiPZGj2ft99XnVu4',
];

0 comments on commit c94e150

Please sign in to comment.