Fix types

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2023-02-28 15:04:28 +01:00
parent 07c46d0129
commit c48d9c94d9
3 changed files with 5 additions and 6 deletions

View File

@ -8,10 +8,10 @@ import { I80F48, I80F48Dto, ZERO_I80F48 } from '../numbers/I80F48';
import { Modify } from '../types';
import {
As,
QUOTE_DECIMALS,
U64_MAX_BN,
toNative,
toUiDecimals,
QUOTE_DECIMALS,
} from '../utils';
import {
OracleConfig,
@ -198,7 +198,7 @@ export class PerpMarket {
public reduceOnly: boolean,
maintOverallAssetWeight: I80F48Dto,
initOverallAssetWeight: I80F48Dto,
positivePnlLiquidationFee: I80F48Dto,
public positivePnlLiquidationFee: I80F48Dto,
) {
this.name = utf8.decode(new Uint8Array(name)).split('\x00')[0];
this.oracleConfig = {

View File

@ -338,8 +338,7 @@ export class MangoClient {
.tokenRegisterTrustless(tokenIndex, name)
.accounts({
group: group.publicKey,
fastListingAdmin: (this.program.provider as AnchorProvider).wallet
.publicKey,
admin: (this.program.provider as AnchorProvider).wallet.publicKey,
mint: mintPk,
oracle: oraclePk,
payer: (this.program.provider as AnchorProvider).wallet.publicKey,

View File

@ -428,7 +428,7 @@ export type MangoV4 = {
"isSigner": false
},
{
"name": "fastListingAdmin",
"name": "admin",
"isMut": false,
"isSigner": true
},
@ -8911,7 +8911,7 @@ export const IDL: MangoV4 = {
"isSigner": false
},
{
"name": "fastListingAdmin",
"name": "admin",
"isMut": false,
"isSigner": true
},