Comments (2)
fixed in #245
from balancer-sdk.
FX
is a new pool type and support for it still needs to be added.
However fix incoming for search functions returning a list of pools: all
, where
, so when poolType is not supported yet, functions won't throw. Individual pools data will be returned and just services which aren't implemented yet will throw an error when called.
As it is right now:
let list
try {
list = sdk.pools.all()
} catch(err) {
// it will throw and list is empty
}
Expected:
const list = sdk.pools.all()
try {
list[0].buildJoin(...)
} catch(err) {
// will throw with not implemented error if join service is not added for the poolType
}
It should fix the issue for getting APRs, since they are independent from other services.
from balancer-sdk.
Related Issues (20)
- Update default polygon subgraph endpoint HOT 3
- Typescript error: TS1005 on update to balancer-labs/sdk: 0.1.44 HOT 4
- Doesn't work for Polygon network
- fe [BalancerError]: queryBatchSwapWithSor returned 0 amount HOT 1
- Standardization Support Request for adding handling to other pool types in SDK HOT 1
- tail: option used in invalid context -- 1 Error HH308: Unrecognized positional argument ALCHEMY_URL_GOERLI HOT 2
- Check issue with staBAL3 swaps value presentation
- Bug: balancer.swaps.fetchPools() on goerli testnet HOT 1
- swaps.fetchPools(); error
- Call exception for getClaimableRewardTokens() on Network.POLYGON
- Add Gyro2 v2 data to on-chain calls HOT 1
- BETS/wstETH pool not returning bptPrice HOT 17
- Impermanent Loss tests are being skipped because of coingecko request limits
- swaps.buildRouteExactIn() not defined.
- No routes found to swap between WXDAI and crvUSD on gnosis chain
- Coingecko Rate Limit
- Move ethers from devDependencies to dependencies HOT 7
- Ethers error while trying to load the sdk HOT 4
- Adapt the balancer-sdk SOR to not use coingecko requests
- Support - Bug with B-80BAL-20WETH > USDC Swap on Mainnet HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from balancer-sdk.