diff --git a/src/contexts/connection.tsx b/src/contexts/connection.tsx index ec48ea4..3de821b 100644 --- a/src/contexts/connection.tsx +++ b/src/contexts/connection.tsx @@ -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') }, diff --git a/src/models/lending/borrow.ts b/src/models/lending/borrow.ts index d80036a..999bb75 100644 --- a/src/models/lending/borrow.ts +++ b/src/models/lending/borrow.ts @@ -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({