File tree 1 file changed +3
-9
lines changed
adapters/layerbank/src/sdk
1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -130,13 +130,7 @@ export const updateBorrowBalances = async (
130
130
) ;
131
131
const marketsByUnderlying : any = { } ;
132
132
for ( let marketInfo of marketInfos ) {
133
- marketsByUnderlying [ marketInfo . underlyingAddress ] = {
134
- address : marketInfo . address ,
135
- exchangeRate : marketInfo . exchangeRateStored ,
136
- decimals : marketInfo . decimals ,
137
- tokenAddress : marketInfo . underlyingAddress ,
138
- tokenSymbol : marketInfo . underlyingSymbol ,
139
- } ;
133
+ marketsByUnderlying [ marketInfo . underlyingAddress ] = marketInfo ;
140
134
}
141
135
142
136
const publicClient = createPublicClient ( {
@@ -147,9 +141,9 @@ export const updateBorrowBalances = async (
147
141
states = states . filter ( ( x ) => x . borrowAmount > 0 ) ;
148
142
149
143
console . log ( `Will update all borrow balances for ${ states . length } states` ) ;
150
- for ( var i = 0 ; i < states . length ; i += 500 ) {
144
+ for ( var i = 0 ; i < states . length ; i += 1000 ) {
151
145
const start = i ;
152
- const end = i + 500 ;
146
+ const end = i + 1000 ;
153
147
var subStates = states . slice ( start , end ) ;
154
148
console . log ( `Updating borrow balances for ${ start } - ${ end } ` ) ;
155
149
You can’t perform that action at this time.
0 commit comments