@elmntl/vaults-v2 1.4.5 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -0
- package/dist/accounts/index.d.ts +2 -0
- package/dist/accounts/index.d.ts.map +1 -1
- package/dist/accounts/index.js +3 -1
- package/dist/accounts/index.js.map +1 -1
- package/dist/accounts/pool.d.ts +6 -0
- package/dist/accounts/pool.d.ts.map +1 -1
- package/dist/accounts/pool.js +8 -0
- package/dist/accounts/pool.js.map +1 -1
- package/dist/accounts/poolExt.d.ts +101 -0
- package/dist/accounts/poolExt.d.ts.map +1 -0
- package/dist/accounts/poolExt.js +211 -0
- package/dist/accounts/poolExt.js.map +1 -0
- package/dist/accounts/position.d.ts +8 -0
- package/dist/accounts/position.d.ts.map +1 -1
- package/dist/accounts/position.js +22 -0
- package/dist/accounts/position.js.map +1 -1
- package/dist/accounts/ticket.d.ts +13 -0
- package/dist/accounts/ticket.d.ts.map +1 -1
- package/dist/accounts/ticket.js +30 -0
- package/dist/accounts/ticket.js.map +1 -1
- package/dist/generated/idl/elemental_vault_v2.json +1395 -78
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/programs/elemental.d.ts +34 -1
- package/dist/programs/elemental.d.ts.map +1 -1
- package/dist/programs/elemental.js +173 -0
- package/dist/programs/elemental.js.map +1 -1
- package/dist/types.d.ts +55 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +25 -2
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
- package/src/accounts/index.ts +2 -0
- package/src/accounts/pool.ts +9 -0
- package/src/accounts/poolExt.ts +272 -0
- package/src/accounts/position.ts +22 -0
- package/src/accounts/ticket.ts +35 -0
- package/src/generated/idl/elemental_vault_v2.json +1395 -78
- package/src/index.ts +12 -1
- package/src/programs/elemental.ts +206 -1
- package/src/types.ts +66 -1
package/src/index.ts
CHANGED
|
@@ -6,7 +6,8 @@ export {
|
|
|
6
6
|
ELE7_PROGRAM_ID,
|
|
7
7
|
MIGRATION_TARGET_PROGRAM_ID,
|
|
8
8
|
} from "./programs";
|
|
9
|
-
export { Pool, Position, WithdrawalTicket } from "./accounts";
|
|
9
|
+
export { Pool, Position, WithdrawalTicket, PoolExt } from "./accounts";
|
|
10
|
+
export type { NavReading, AltDepositQuote, AltExitQuote } from "./accounts";
|
|
10
11
|
export {
|
|
11
12
|
PoolData,
|
|
12
13
|
PositionData,
|
|
@@ -17,4 +18,14 @@ export {
|
|
|
17
18
|
ONRE_PROGRAM_ID,
|
|
18
19
|
ONRE_STATE,
|
|
19
20
|
POOL_FAUCET_CONFIG,
|
|
21
|
+
PoolExtData,
|
|
22
|
+
POOL_EXT_FLAG_ALT_DEPOSITS,
|
|
23
|
+
POOL_EXT_FLAG_ALT_EXITS,
|
|
24
|
+
CONVERSION_SOURCE_POSTED,
|
|
25
|
+
CONVERSION_SOURCE_SCOPE,
|
|
26
|
+
NAV_ONE,
|
|
27
|
+
SCOPE_PROGRAM_ID,
|
|
28
|
+
SCOPE_PRICES,
|
|
29
|
+
SCOPE_INDEX,
|
|
30
|
+
USDC_MINT,
|
|
20
31
|
} from "./types";
|
|
@@ -21,11 +21,12 @@ import {
|
|
|
21
21
|
getAccount,
|
|
22
22
|
TokenAccountNotFoundError,
|
|
23
23
|
} from "@solana/spl-token";
|
|
24
|
-
import { Pool, Position, WithdrawalTicket } from "../accounts";
|
|
24
|
+
import { Pool, Position, WithdrawalTicket, PoolExt } from "../accounts";
|
|
25
25
|
import {
|
|
26
26
|
PoolData,
|
|
27
27
|
PositionData,
|
|
28
28
|
WithdrawalTicketData,
|
|
29
|
+
PoolExtData,
|
|
29
30
|
SwapAdapter,
|
|
30
31
|
FIXED_ONE,
|
|
31
32
|
ONRE_PROGRAM_ID,
|
|
@@ -124,6 +125,14 @@ export class ElementalV2Context {
|
|
|
124
125
|
);
|
|
125
126
|
}
|
|
126
127
|
|
|
128
|
+
findPoolExtAddress(poolAddress: PublicKey): PublicKey {
|
|
129
|
+
return PoolExt.findAddress(poolAddress, this.program.programId);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
findExtAuthority(poolAddress: PublicKey): PublicKey {
|
|
133
|
+
return PoolExt.findAuthority(poolAddress, this.program.programId);
|
|
134
|
+
}
|
|
135
|
+
|
|
127
136
|
// ============================================================================
|
|
128
137
|
// POOL OPERATIONS
|
|
129
138
|
// ============================================================================
|
|
@@ -301,6 +310,10 @@ export class ElementalV2Context {
|
|
|
301
310
|
bump: 0,
|
|
302
311
|
ticketMode: 0,
|
|
303
312
|
ticketCount: 0,
|
|
313
|
+
altDeposited: new BN(0),
|
|
314
|
+
vaultDeposited: new BN(0),
|
|
315
|
+
altWithdrawn: new BN(0),
|
|
316
|
+
vaultWithdrawn: new BN(0),
|
|
304
317
|
};
|
|
305
318
|
}
|
|
306
319
|
|
|
@@ -350,6 +363,180 @@ export class ElementalV2Context {
|
|
|
350
363
|
);
|
|
351
364
|
}
|
|
352
365
|
|
|
366
|
+
// ============================================================================
|
|
367
|
+
// POOL EXT (dual-token edges, ELE7 ele7-rwa-v1+)
|
|
368
|
+
// ============================================================================
|
|
369
|
+
|
|
370
|
+
/** The pool's PoolExt, or null when the pool has no second token (every pre-upgrade pool, all ELE6 pools). */
|
|
371
|
+
async loadPoolExt(pool: Pool): Promise<PoolExt | null> {
|
|
372
|
+
const address = this.findPoolExtAddress(pool.address);
|
|
373
|
+
const data = await (this.program.account as any).poolExt.fetchNullable(address);
|
|
374
|
+
if (!data) return null;
|
|
375
|
+
return new PoolExt(pool, address, data as PoolExtData);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/** PoolExts for many pools in one RPC round-trip (null where absent). */
|
|
379
|
+
async loadPoolExts(pools: Pool[]): Promise<(PoolExt | null)[]> {
|
|
380
|
+
const addresses = pools.map((p) => this.findPoolExtAddress(p.address));
|
|
381
|
+
const accounts = await (this.program.account as any).poolExt.fetchMultiple(addresses);
|
|
382
|
+
return accounts.map((data: PoolExtData | null, i: number) =>
|
|
383
|
+
data ? new PoolExt(pools[i], addresses[i], data) : null,
|
|
384
|
+
);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
private async ensureAtaInstruction(mint: PublicKey, owner: PublicKey): Promise<{ ata: PublicKey; ix: TransactionInstruction | null }> {
|
|
388
|
+
const ata = getAssociatedTokenAddressSync(mint, owner, true);
|
|
389
|
+
try {
|
|
390
|
+
await getAccount(this.connection, ata);
|
|
391
|
+
return { ata, ix: null };
|
|
392
|
+
} catch (err) {
|
|
393
|
+
if (err instanceof TokenAccountNotFoundError) {
|
|
394
|
+
return { ata, ix: createAssociatedTokenAccountInstruction(this.walletAddress, ata, owner, mint) };
|
|
395
|
+
}
|
|
396
|
+
throw err;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
private altOracleRemaining(ext: PoolExt): { pubkey: PublicKey; isSigner: boolean; isWritable: boolean }[] {
|
|
401
|
+
const oracle = ext.navOracle;
|
|
402
|
+
return oracle ? [{ pubkey: oracle, isSigner: false, isWritable: false }] : [];
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Deposit the pool's alt token (USDC into an RWA pool, or the RWA into a USDC pool).
|
|
407
|
+
* `amount` is in human alt tokens. The credit lands in vault units at the on-chain
|
|
408
|
+
* NAV; `slippageBps` bounds how far the NAV may move between this quote and
|
|
409
|
+
* execution (program error CreditBelowMinimum beyond it). Returns the quote used.
|
|
410
|
+
*/
|
|
411
|
+
async depositAltInstructions(
|
|
412
|
+
position: Position,
|
|
413
|
+
ext: PoolExt,
|
|
414
|
+
amount: number | string,
|
|
415
|
+
slippageBps = 10,
|
|
416
|
+
): Promise<{ instructions: TransactionInstruction[]; quote: import("../accounts").AltDepositQuote }> {
|
|
417
|
+
if (!ext.pool.address.equals(position.pool.address)) throw new Error("PoolExt does not belong to the position's pool");
|
|
418
|
+
if (!ext.altDepositsEnabled) throw new Error("Alt deposits are disabled on this pool");
|
|
419
|
+
const quote = await ext.quoteDeposit(this.connection, amount);
|
|
420
|
+
if (quote.nav.isStale) throw new Error(`NAV is stale (${quote.nav.ageSeconds}s > ${ext.navMaxAge}s)`);
|
|
421
|
+
const minCredit = quote.credit.muln(10_000 - slippageBps).divn(10_000);
|
|
422
|
+
|
|
423
|
+
const instructions: TransactionInstruction[] = [];
|
|
424
|
+
if (!position.exists) instructions.push(await this.createPositionInstruction(position.pool));
|
|
425
|
+
const userAltAccount = getAssociatedTokenAddressSync(ext.altMintAddress, this.walletAddress, true);
|
|
426
|
+
const altMintInfo = await this.connection.getAccountInfo(ext.altMintAddress);
|
|
427
|
+
const tokenProgram = altMintInfo?.owner ?? TOKEN_PROGRAM_ID;
|
|
428
|
+
|
|
429
|
+
instructions.push(
|
|
430
|
+
await (this.program.methods as any)
|
|
431
|
+
.depositAlt(quote.altIn, minCredit)
|
|
432
|
+
.accounts({
|
|
433
|
+
positionOwner: { owner: this.walletAddress, position: position.address, pool: position.pool.address },
|
|
434
|
+
poolExt: ext.address,
|
|
435
|
+
userAltAccount,
|
|
436
|
+
altHolder: ext.altHolderAddress,
|
|
437
|
+
altMint: ext.altMintAddress,
|
|
438
|
+
tokenProgram,
|
|
439
|
+
})
|
|
440
|
+
.remainingAccounts(this.altOracleRemaining(ext))
|
|
441
|
+
.instruction(),
|
|
442
|
+
);
|
|
443
|
+
return { instructions, quote };
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Request an exit paid in the alt token. `amount` is in human VAULT tokens, like
|
|
448
|
+
* `createTicket`: "0" = yield only, anything >= capital + yield = full exit.
|
|
449
|
+
* The program locks the NAV and fee onto the ticket; the payout is fixed from here.
|
|
450
|
+
*/
|
|
451
|
+
async createTicketAltInstructions(
|
|
452
|
+
position: Position,
|
|
453
|
+
ext: PoolExt,
|
|
454
|
+
amount: number | string,
|
|
455
|
+
): Promise<TransactionInstruction[]> {
|
|
456
|
+
if (!ext.pool.address.equals(position.pool.address)) throw new Error("PoolExt does not belong to the position's pool");
|
|
457
|
+
if (!ext.altExitsEnabled) throw new Error("Alt exits are disabled on this pool");
|
|
458
|
+
const amountBN = new BN(new Decimal(amount.toString()).mul(position.pool.vaultMultiplier).toFixed(0));
|
|
459
|
+
const ticketAddress = this.findTicketAddress(position.pool.address, position.ticketCount);
|
|
460
|
+
const ix = await (this.program.methods as any)
|
|
461
|
+
.createTicketAlt(amountBN)
|
|
462
|
+
.accounts({
|
|
463
|
+
payer: this.walletAddress,
|
|
464
|
+
positionOwner: { owner: this.walletAddress, position: position.address, pool: position.pool.address },
|
|
465
|
+
poolExt: ext.address,
|
|
466
|
+
ticket: ticketAddress,
|
|
467
|
+
systemProgram: SystemProgram.programId,
|
|
468
|
+
})
|
|
469
|
+
.remainingAccounts(this.altOracleRemaining(ext))
|
|
470
|
+
.instruction();
|
|
471
|
+
return [ix];
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
/** Redeem a matured alt ticket from the alt faucet. Creates the user's alt ATA if needed. */
|
|
475
|
+
async redeemTicketAltInstructions(
|
|
476
|
+
ticket: WithdrawalTicket,
|
|
477
|
+
position: Position,
|
|
478
|
+
ext: PoolExt,
|
|
479
|
+
): Promise<TransactionInstruction[]> {
|
|
480
|
+
if (!ticket.isAltPayout) throw new Error("Ticket pays the vault token; use redeemTicketInstructions");
|
|
481
|
+
if (!ext.pool.address.equals(position.pool.address)) throw new Error("PoolExt does not belong to the position's pool");
|
|
482
|
+
const instructions: TransactionInstruction[] = [];
|
|
483
|
+
const { ata: userAltAccount, ix: createAta } = await this.ensureAtaInstruction(ext.altMintAddress, this.walletAddress);
|
|
484
|
+
if (createAta) instructions.push(createAta);
|
|
485
|
+
const altMintInfo = await this.connection.getAccountInfo(ext.altMintAddress);
|
|
486
|
+
const tokenProgram = altMintInfo?.owner ?? TOKEN_PROGRAM_ID;
|
|
487
|
+
// Anchor 0.30 optional account: the program id stands for None.
|
|
488
|
+
const feeDestinationAccount = ext.feeDestination
|
|
489
|
+
? getAssociatedTokenAddressSync(ext.altMintAddress, ext.feeDestination, true)
|
|
490
|
+
: this.program.programId;
|
|
491
|
+
|
|
492
|
+
instructions.push(
|
|
493
|
+
await (this.program.methods as any)
|
|
494
|
+
.redeemTicketAlt()
|
|
495
|
+
.accounts({
|
|
496
|
+
owner: this.walletAddress,
|
|
497
|
+
ticket: ticket.address,
|
|
498
|
+
position: position.address,
|
|
499
|
+
pool: position.pool.address,
|
|
500
|
+
extAuthority: ext.authorityAddress,
|
|
501
|
+
poolExt: ext.address,
|
|
502
|
+
altFaucet: ext.altFaucetAddress,
|
|
503
|
+
userAltAccount,
|
|
504
|
+
feeDestinationAccount,
|
|
505
|
+
altMint: ext.altMintAddress,
|
|
506
|
+
tokenProgram,
|
|
507
|
+
})
|
|
508
|
+
.instruction(),
|
|
509
|
+
);
|
|
510
|
+
return instructions;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
/** Admin: set the fee (bps, cap 1000) on exits paid in the vault token. Locked onto tickets at creation. */
|
|
514
|
+
async setVaultExitFeeInstruction(pool: Pool, bps: number, admin: PublicKey = this.walletAddress): Promise<TransactionInstruction> {
|
|
515
|
+
return await (this.program.methods as any)
|
|
516
|
+
.setVaultExitFee(bps)
|
|
517
|
+
.accounts({ admin, pool: pool.address })
|
|
518
|
+
.instruction();
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/** Permissionless: sweep the alt holder to the pool's manager wallet (ops). */
|
|
522
|
+
async flushAltToManagerInstruction(pool: Pool, ext: PoolExt): Promise<TransactionInstruction> {
|
|
523
|
+
const managerAltAccount = getAssociatedTokenAddressSync(ext.altMintAddress, pool.data.managerWallet, true);
|
|
524
|
+
const altMintInfo = await this.connection.getAccountInfo(ext.altMintAddress);
|
|
525
|
+
const tokenProgram = altMintInfo?.owner ?? TOKEN_PROGRAM_ID;
|
|
526
|
+
return await (this.program.methods as any)
|
|
527
|
+
.flushAltToManager()
|
|
528
|
+
.accounts({
|
|
529
|
+
pool: pool.address,
|
|
530
|
+
extAuthority: ext.authorityAddress,
|
|
531
|
+
poolExt: ext.address,
|
|
532
|
+
altHolder: ext.altHolderAddress,
|
|
533
|
+
managerAltAccount,
|
|
534
|
+
altMint: ext.altMintAddress,
|
|
535
|
+
tokenProgram,
|
|
536
|
+
})
|
|
537
|
+
.instruction();
|
|
538
|
+
}
|
|
539
|
+
|
|
353
540
|
// ============================================================================
|
|
354
541
|
// INSTRUCTION BUILDERS
|
|
355
542
|
// ============================================================================
|
|
@@ -1078,6 +1265,24 @@ export class ElementalV2Context {
|
|
|
1078
1265
|
return await this.sendTransaction(instructions);
|
|
1079
1266
|
}
|
|
1080
1267
|
|
|
1268
|
+
async depositAlt(
|
|
1269
|
+
position: Position,
|
|
1270
|
+
ext: PoolExt,
|
|
1271
|
+
amount: number | string,
|
|
1272
|
+
slippageBps?: number,
|
|
1273
|
+
): Promise<TransactionSignature> {
|
|
1274
|
+
const { instructions } = await this.depositAltInstructions(position, ext, amount, slippageBps);
|
|
1275
|
+
return await this.sendTransaction(instructions);
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
async createTicketAlt(position: Position, ext: PoolExt, amount: number | string): Promise<TransactionSignature> {
|
|
1279
|
+
return await this.sendTransaction(await this.createTicketAltInstructions(position, ext, amount));
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
async redeemTicketAlt(ticket: WithdrawalTicket, position: Position, ext: PoolExt): Promise<TransactionSignature> {
|
|
1283
|
+
return await this.sendTransaction(await this.redeemTicketAltInstructions(ticket, position, ext));
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1081
1286
|
async fundFaucet(
|
|
1082
1287
|
pool: Pool,
|
|
1083
1288
|
amount: number | string,
|
package/src/types.ts
CHANGED
|
@@ -42,6 +42,8 @@ export interface PoolData {
|
|
|
42
42
|
};
|
|
43
43
|
managerWallet: PublicKey;
|
|
44
44
|
minDepositAmountAlt: BN;
|
|
45
|
+
/** Fee (bps) on exits paid in the vault token (ele7-rwa-v1.1). Zero on pools that predate it. */
|
|
46
|
+
vaultExitFeeBps?: number;
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
// Raw position data from on-chain account
|
|
@@ -58,6 +60,14 @@ export interface PositionData {
|
|
|
58
60
|
bump: number;
|
|
59
61
|
ticketMode: number;
|
|
60
62
|
ticketCount: number;
|
|
63
|
+
/** Cumulative alt-token deposits (alt units). Zero on positions created before ele7-rwa-v1. */
|
|
64
|
+
altDeposited: BN;
|
|
65
|
+
/** Cumulative vault-token deposits (vault units). Zero on positions created before ele7-rwa-v1. */
|
|
66
|
+
vaultDeposited: BN;
|
|
67
|
+
/** Cumulative alt-token payouts, net of fee (alt units). */
|
|
68
|
+
altWithdrawn: BN;
|
|
69
|
+
/** Cumulative vault-token payouts (vault units). */
|
|
70
|
+
vaultWithdrawn: BN;
|
|
61
71
|
}
|
|
62
72
|
|
|
63
73
|
// Raw withdrawal ticket data from on-chain account
|
|
@@ -69,8 +79,61 @@ export interface WithdrawalTicketData {
|
|
|
69
79
|
createdEpochIndex: number;
|
|
70
80
|
ticketIndex: number;
|
|
71
81
|
bump: number;
|
|
82
|
+
/** 0 = paid in vault_mint via redeem_ticket; 1 = paid in the pool's alt token via redeem_ticket_alt. */
|
|
83
|
+
payoutMint: number;
|
|
84
|
+
/** NAV (USDC per 1 RWA, 1e9-scaled) locked when an alt ticket was created; 0 otherwise. */
|
|
85
|
+
navLocked: BN;
|
|
86
|
+
/** Exit fee (bps) locked when an alt ticket was created; 0 otherwise. */
|
|
87
|
+
feeBpsLocked: number;
|
|
72
88
|
}
|
|
73
89
|
|
|
90
|
+
/**
|
|
91
|
+
* Raw PoolExt data (ELE7 ele7-rwa-v1+): a second token at a pool's edges.
|
|
92
|
+
* The pool's ledger stays in vault_mint; the alt converts at the NAV.
|
|
93
|
+
*/
|
|
94
|
+
export interface PoolExtData {
|
|
95
|
+
pool: PublicKey;
|
|
96
|
+
altMint: PublicKey;
|
|
97
|
+
altHolder: PublicKey;
|
|
98
|
+
altFaucet: PublicKey;
|
|
99
|
+
feeDestination: PublicKey;
|
|
100
|
+
nav: BN;
|
|
101
|
+
navUpdatedAt: BN;
|
|
102
|
+
navMaxAge: number;
|
|
103
|
+
exitFeeBps: number;
|
|
104
|
+
altDecimals: number;
|
|
105
|
+
flags: number;
|
|
106
|
+
conversionSource: number;
|
|
107
|
+
bump: number;
|
|
108
|
+
navOracle: PublicKey;
|
|
109
|
+
navOracleIndex: number;
|
|
110
|
+
altIsUsdc: number;
|
|
111
|
+
extAuthorityBump: number;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** PoolExt.flags bits */
|
|
115
|
+
export const POOL_EXT_FLAG_ALT_DEPOSITS = 1;
|
|
116
|
+
export const POOL_EXT_FLAG_ALT_EXITS = 2;
|
|
117
|
+
/** PoolExt.conversion_source values */
|
|
118
|
+
export const CONVERSION_SOURCE_POSTED = 0;
|
|
119
|
+
export const CONVERSION_SOURCE_SCOPE = 1;
|
|
120
|
+
/** NAV scale: USDC per 1 RWA × 1e9 */
|
|
121
|
+
export const NAV_ONE = new BN(1_000_000_000);
|
|
122
|
+
|
|
123
|
+
// Kamino Scope oracle (mainnet) — the on-chain NAV source for every RWA pool
|
|
124
|
+
export const SCOPE_PROGRAM_ID = new PublicKey("HFn8GnPADiny6XqUoWE8uRPPxb29ikn4yTuPa9MF2fWJ");
|
|
125
|
+
export const SCOPE_PRICES = new PublicKey("3t4JZcueEzTbVP6kLxXrL3VpWx45jDer4eqysweBchNH");
|
|
126
|
+
export const SCOPE_PRICES_LEN = 28_712;
|
|
127
|
+
export const SCOPE_ENTRIES_OFFSET = 40;
|
|
128
|
+
export const SCOPE_ENTRY_SIZE = 56;
|
|
129
|
+
/** Scope price-chain indices confirmed from the Kamino reserves (2026-11-16) */
|
|
130
|
+
export const SCOPE_INDEX: Record<string, number> = {
|
|
131
|
+
ONYC: 350,
|
|
132
|
+
NOPAL: 505,
|
|
133
|
+
AUTO: 451,
|
|
134
|
+
};
|
|
135
|
+
export const USDC_MINT = new PublicKey("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v");
|
|
136
|
+
|
|
74
137
|
// Position status
|
|
75
138
|
export type PositionStatus =
|
|
76
139
|
| "inactive"
|
|
@@ -107,7 +170,9 @@ export const POOL_FAUCET_CONFIG: Record<string, string> = {
|
|
|
107
170
|
"FYiyK57wcpmVbQ2VWcFQxF15VRdQPp4S7pYdGwSQM1QK": "52cusstXjvXn9wWjW895GdKqHVKET9QxDc8n83Mztokx",
|
|
108
171
|
// USDC X1 pool (ELE7, 10% APR) - separate faucet for withdrawals (created 2026-08-26)
|
|
109
172
|
"FHhmYxqE5WLKZRqf3F2iFz4uey2CHH9iktbWwFuHhBqy": "Ad5moKb3yUguzDZNH3B1tcyz5Wk9DneTsD7fHmLzuTpn",
|
|
110
|
-
// nOPAL X1 pool (
|
|
173
|
+
// nOPAL X1 pool (ELE7, 17% APR, nOPAL-denominated, USDC edge via PoolExt) - vault faucet (created 2026-11-19)
|
|
174
|
+
"Fm2J5ah8nZ2eXPbWD8XWsZhm8x99ymDUNKzTNmN2Dfqp": "5yCGAbyKE4zzdEpyFBRJaHwyM78nYvgn9C4tpnDz8guG",
|
|
175
|
+
// USDC X3 pool (ELE7, 17% APR, USDC) - empty; was labelled "nOPAL X1" until the nOPAL-denominated pool above replaced it (2026-11-19)
|
|
111
176
|
"H9b7iXE8XN39DWKxQH2rC2SXmkEb9Tdq2RjhSeKmeerq": "4tuFb14LGanZK5V4gMgCWRXGBwsuSGi1AcaH5DYmMbhg",
|
|
112
177
|
// AUTO X1 pool (ex-USDC X4) (ELE7, 12% APR, srAUTO) - separate faucet for withdrawals (created 2026-10-28)
|
|
113
178
|
"5eEDZf3hzz39xiNBnUdbK8mpmrcKNieQSNVAsFPMpJbg": "CcaiuFU1oKeLXuks6zDggLHaBwLGUsQRywWqbTZiCP6B",
|