remove outdated todos

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2022-12-13 10:29:55 +01:00
parent ed86f3b224
commit c77c3585ad
4 changed files with 0 additions and 8 deletions

View File

@ -72,7 +72,6 @@ export class Bank implements BankForHealth {
static from(
publicKey: PublicKey,
obj: {
// TODO: rearrange fields to have same order as in bank.rs
group: PublicKey;
name: number[];
mint: PublicKey;

View File

@ -500,7 +500,6 @@ export class Group {
}
public getSerum3FeeRates(maker = true): number {
// TODO: fetch msrm/srm vault balance
const feeTier = getFeeTier(0, 0);
const rates = getFeeRates(feeTier);
return maker ? rates.maker : rates.taker;

View File

@ -69,7 +69,6 @@ export type MangoClientOptions = {
prioritizationFee?: number;
};
// TODO: replace ui values with native as input wherever possible
export class MangoClient {
private idsSource: IdsSource;
private postSendTxCallback?: ({ txid }) => void;
@ -2239,7 +2238,6 @@ export class MangoClient {
group: Group,
mintPk: PublicKey,
): Promise<TransactionSignature> {
// TODO: handle updating multiple banks
const bank = group.getFirstBankByMint(mintPk);
const mintInfo = group.mintInfosMapByMint.get(mintPk.toString())!;
@ -2444,9 +2442,6 @@ export class MangoClient {
provider: Provider,
groupName: string,
): MangoClient {
// TODO: use IDL on chain or in repository? decide...
// Alternatively we could fetch IDL from chain.
// const idl = await Program.fetchIdl(MANGO_V4_ID, provider);
const idl = IDL;
const id = Id.fromIdsByName(groupName);

View File

@ -126,7 +126,6 @@ export async function buildVersionedTx(
addressLookupTableAccounts: alts,
});
const vTx = new VersionedTransaction(message);
// TODO: remove use of any when possible in future
vTx.sign([
((provider as AnchorProvider).wallet as any).payer as Signer,
...additionalSigners,