File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 21
21
"lint" : " eslint src --ext .ts" ,
22
22
"lint:fix" : " eslint src --fix" ,
23
23
"watch" : " tsc --watch" ,
24
- "watch:lib" : " rm -rf lib && tsc --watch --project tsconfig.build.json"
24
+ "watch:lib" : " rm -rf lib && tsc --watch --project tsconfig.build.json" ,
25
+ "test-build" : " npm run build && rm -rf /Users/denisfedorov/WebstormProjects/web3/app/src/lib && cp -R lib /Users/denisfedorov/WebstormProjects/web3/app/src/lib"
25
26
},
26
27
"type" : " module" ,
27
28
"devDependencies" : {
Original file line number Diff line number Diff line change @@ -2010,6 +2010,15 @@ export class PoolTemplate extends CorePool {
2010
2010
return this . wrappedCoins . map ( ( ) => BN ( 1 ) )
2011
2011
}
2012
2012
2013
+ public async getStoredRates ( useUnderlying = false ) : Promise < string [ ] > {
2014
+ try {
2015
+ const storedRatesBN = await this . _storedRatesBN ( useUnderlying ) ;
2016
+ return storedRatesBN . map ( rate => rate . toString ( ) ) ;
2017
+ } catch ( error ) {
2018
+ throw new Error ( `Failed to get stored rates for pool ${ this . name } : ${ error instanceof Error ? error . message : 'Unknown error' } ` ) ;
2019
+ }
2020
+ }
2021
+
2013
2022
_underlyingPrices = async ( ) : Promise < number [ ] > => {
2014
2023
const promises = [ ] ;
2015
2024
for ( const addr of this . underlyingCoinAddresses ) {
You can’t perform that action at this time.
0 commit comments