use fixed ids for acct
This commit is contained in:
parent
dd2b798535
commit
dbe613c48b
|
@ -169,7 +169,7 @@ function StakeForm({ token: selectedToken }: StakeFormProps) {
|
||||||
amountToBorrow,
|
amountToBorrow,
|
||||||
stakeBank.mint,
|
stakeBank.mint,
|
||||||
parseFloat(inputAmount),
|
parseFloat(inputAmount),
|
||||||
420 + (tokenNum || 0),
|
tokenNum || 0,
|
||||||
)
|
)
|
||||||
notify({
|
notify({
|
||||||
title: 'Transaction confirmed',
|
title: 'Transaction confirmed',
|
||||||
|
|
|
@ -51,7 +51,7 @@ export default function useAccountHistory() {
|
||||||
|
|
||||||
const x = accountNums.map((n) => {
|
const x = accountNums.map((n) => {
|
||||||
const acctNumBuffer = Buffer.alloc(4)
|
const acctNumBuffer = Buffer.alloc(4)
|
||||||
acctNumBuffer.writeUInt32LE(420 + n)
|
acctNumBuffer.writeUInt32LE(n)
|
||||||
const [mangoAccountPda] = PublicKey.findProgramAddressSync(
|
const [mangoAccountPda] = PublicKey.findProgramAddressSync(
|
||||||
[
|
[
|
||||||
Buffer.from('MangoAccount'),
|
Buffer.from('MangoAccount'),
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
export const BORROW_TOKEN = 'SOL'
|
export const BORROW_TOKEN = 'SOL'
|
||||||
|
|
||||||
export const STAKEABLE_TOKENS_DATA = [
|
export const STAKEABLE_TOKENS_DATA = [
|
||||||
{ name: 'MSOL', id: 1, active: true },
|
{ name: 'MSOL', id: 521, active: true },
|
||||||
{ name: 'JitoSOL', id: 2, active: true },
|
{ name: 'JitoSOL', id: 621, active: true },
|
||||||
{ name: 'bSOL', id: 4, active: true },
|
{ name: 'bSOL', id: 721, active: true },
|
||||||
]
|
]
|
||||||
export const STAKEABLE_TOKENS = STAKEABLE_TOKENS_DATA.filter(
|
export const STAKEABLE_TOKENS = STAKEABLE_TOKENS_DATA.filter(
|
||||||
(d) => d.active,
|
(d) => d.active,
|
||||||
|
|
Loading…
Reference in New Issue