Fix types
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
07c46d0129
commit
c48d9c94d9
|
@ -8,10 +8,10 @@ import { I80F48, I80F48Dto, ZERO_I80F48 } from '../numbers/I80F48';
|
||||||
import { Modify } from '../types';
|
import { Modify } from '../types';
|
||||||
import {
|
import {
|
||||||
As,
|
As,
|
||||||
|
QUOTE_DECIMALS,
|
||||||
U64_MAX_BN,
|
U64_MAX_BN,
|
||||||
toNative,
|
toNative,
|
||||||
toUiDecimals,
|
toUiDecimals,
|
||||||
QUOTE_DECIMALS,
|
|
||||||
} from '../utils';
|
} from '../utils';
|
||||||
import {
|
import {
|
||||||
OracleConfig,
|
OracleConfig,
|
||||||
|
@ -198,7 +198,7 @@ export class PerpMarket {
|
||||||
public reduceOnly: boolean,
|
public reduceOnly: boolean,
|
||||||
maintOverallAssetWeight: I80F48Dto,
|
maintOverallAssetWeight: I80F48Dto,
|
||||||
initOverallAssetWeight: I80F48Dto,
|
initOverallAssetWeight: I80F48Dto,
|
||||||
positivePnlLiquidationFee: I80F48Dto,
|
public positivePnlLiquidationFee: I80F48Dto,
|
||||||
) {
|
) {
|
||||||
this.name = utf8.decode(new Uint8Array(name)).split('\x00')[0];
|
this.name = utf8.decode(new Uint8Array(name)).split('\x00')[0];
|
||||||
this.oracleConfig = {
|
this.oracleConfig = {
|
||||||
|
|
|
@ -338,8 +338,7 @@ export class MangoClient {
|
||||||
.tokenRegisterTrustless(tokenIndex, name)
|
.tokenRegisterTrustless(tokenIndex, name)
|
||||||
.accounts({
|
.accounts({
|
||||||
group: group.publicKey,
|
group: group.publicKey,
|
||||||
fastListingAdmin: (this.program.provider as AnchorProvider).wallet
|
admin: (this.program.provider as AnchorProvider).wallet.publicKey,
|
||||||
.publicKey,
|
|
||||||
mint: mintPk,
|
mint: mintPk,
|
||||||
oracle: oraclePk,
|
oracle: oraclePk,
|
||||||
payer: (this.program.provider as AnchorProvider).wallet.publicKey,
|
payer: (this.program.provider as AnchorProvider).wallet.publicKey,
|
||||||
|
|
|
@ -428,7 +428,7 @@ export type MangoV4 = {
|
||||||
"isSigner": false
|
"isSigner": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "fastListingAdmin",
|
"name": "admin",
|
||||||
"isMut": false,
|
"isMut": false,
|
||||||
"isSigner": true
|
"isSigner": true
|
||||||
},
|
},
|
||||||
|
@ -8911,7 +8911,7 @@ export const IDL: MangoV4 = {
|
||||||
"isSigner": false
|
"isSigner": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "fastListingAdmin",
|
"name": "admin",
|
||||||
"isMut": false,
|
"isMut": false,
|
||||||
"isSigner": true
|
"isSigner": true
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue