fix: set fee accounts as writable

This commit is contained in:
bartosz-lipinski 2021-01-06 22:23:49 -06:00
parent dff25c7ef8
commit 315d9304e8
2 changed files with 4 additions and 4 deletions

View File

@ -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') },

View File

@ -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({