fix: set fee accounts as writable
This commit is contained in:
parent
dff25c7ef8
commit
315d9304e8
|
@ -14,8 +14,8 @@ export const ENDPOINTS = [
|
|||
endpoint: 'https://solana-api.projectserum.com/',
|
||||
},
|
||||
{
|
||||
name: 'Oyster Dev' as ENV,
|
||||
endpoint: 'http://oyster-dev.solana.com/',
|
||||
name: 'Lending' as ENV,
|
||||
endpoint: 'https://tln.solana.com/',
|
||||
},
|
||||
{ name: 'testnet' as ENV, endpoint: clusterApiUrl('testnet') },
|
||||
{ name: 'devnet' as ENV, endpoint: clusterApiUrl('devnet') },
|
||||
|
|
|
@ -87,7 +87,7 @@ export const borrowInstruction = (
|
|||
isSigner: false,
|
||||
isWritable: true,
|
||||
},
|
||||
{ pubkey: ownerFeeReceiver, isSigner: false, isWritable: false },
|
||||
{ pubkey: ownerFeeReceiver, isSigner: false, isWritable: true },
|
||||
|
||||
{ pubkey: borrowReserve, isSigner: false, isWritable: true },
|
||||
{
|
||||
|
@ -113,7 +113,7 @@ export const borrowInstruction = (
|
|||
];
|
||||
|
||||
if(hostFeeReceiver) {
|
||||
keys.push({ pubkey: hostFeeReceiver, isSigner: false, isWritable: false })
|
||||
keys.push({ pubkey: hostFeeReceiver, isSigner: false, isWritable: true })
|
||||
}
|
||||
|
||||
return new TransactionInstruction({
|
||||
|
|
Loading…
Reference in New Issue