SHA256
Обновить казну и управление Shine Payments
This commit is contained in:
@@ -188,9 +188,9 @@
|
||||
function parseConfig(data) {
|
||||
let o = 0;
|
||||
const version = data[o++];
|
||||
const dao = new solanaWeb3.PublicKey(data.slice(o, o + 32)).toBase58(); o += 32;
|
||||
const daoTreasury = new solanaWeb3.PublicKey(data.slice(o, o + 32)).toBase58(); o += 32;
|
||||
const inflow = new solanaWeb3.PublicKey(data.slice(o, o + 32)).toBase58(); o += 32;
|
||||
return { version, dao, inflow };
|
||||
return { version, daoTreasury, inflow };
|
||||
}
|
||||
function parseCoef(data) {
|
||||
let o = 0;
|
||||
@@ -335,9 +335,9 @@
|
||||
const remainingByTotal = coef.limitUsdCents > queues.q1SumTotal ? (coef.limitUsdCents - queues.q1SumTotal) : 0n;
|
||||
const paused = queues.q1SumTotal >= coef.limitUsdCents;
|
||||
el.innerHTML = `
|
||||
<div>DAO: <code>${config.dao}</code></div>
|
||||
<div>Казна DAO: <code>${config.daoTreasury}</code></div>
|
||||
<div>Inflow vault: <code>${config.inflow}</code></div>
|
||||
<div class="muted">Тестовый DAO-кошелек. В production будет реальный адрес DAO.</div>
|
||||
<div class="muted">Адрес берётся из Config PDA текущего кластера.</div>
|
||||
<div>Курс SOL/USD (Pyth): <b>${trimZeros((Number(pyth.num) / Number(pyth.den) / 100).toFixed(6))}</b></div>
|
||||
<div>Коэффициент: <b>${coefText}</b></div>
|
||||
<div>Лимит очереди 1: <b>${centsToUsdStr(coef.limitUsdCents)} USD</b></div>
|
||||
@@ -382,7 +382,7 @@
|
||||
{ pubkey: pdas.coefPda, isSigner: false, isWritable: true },
|
||||
{ pubkey: pdas.queuesPda, isSigner: false, isWritable: true },
|
||||
{ pubkey: ticketPda, isSigner: false, isWritable: true },
|
||||
{ pubkey: new solanaWeb3.PublicKey(config.dao), isSigner: false, isWritable: true },
|
||||
{ pubkey: new solanaWeb3.PublicKey(config.daoTreasury), isSigner: false, isWritable: true },
|
||||
{ pubkey: ORACLE_ACCOUNT, isSigner: false, isWritable: false },
|
||||
{ pubkey: solanaWeb3.SystemProgram.programId, isSigner: false, isWritable: false },
|
||||
];
|
||||
@@ -422,7 +422,7 @@
|
||||
{ pubkey: pdas.coefPda, isSigner: false, isWritable: true },
|
||||
{ pubkey: pdas.queuesPda, isSigner: false, isWritable: true },
|
||||
{ pubkey: ticketPda, isSigner: false, isWritable: true },
|
||||
{ pubkey: new solanaWeb3.PublicKey(config.dao), isSigner: false, isWritable: true },
|
||||
{ pubkey: new solanaWeb3.PublicKey(config.daoTreasury), isSigner: false, isWritable: true },
|
||||
{ pubkey: ORACLE_ACCOUNT, isSigner: false, isWritable: false },
|
||||
{ pubkey: solanaWeb3.SystemProgram.programId, isSigner: false, isWritable: false },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user