curvefi / curve-subgraph Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://thegraph.com/explorer/subgraph?id=0x2382ab6c2099474cf424560a370ed1b1fdb65253-0
Home Page: https://thegraph.com/explorer/subgraph?id=0x2382ab6c2099474cf424560a370ed1b1fdb65253-0
Adapt logic in asset-types.ts and more for tricrypto to produce accurate volumes, prices, etc
I don't think this function is correct, as it sets the pool A to the future A right away (and not only at the given future block).
Unless I am missing something, in which case any help your be appreciated!
Thanks
Marco
Hello. For @rotki we have some address selected for testing and before the subgraph fix we could fetch addLiquidityEvent
s for the address 0x3ba6eb0e4327b96ade6d4f3b578724208a590cef
. One of them being https://etherscan.io/tx/0x9b5471ee166bc8210ae10faae6e3292424829e48cb437346fbcc60bd66a5c008
After the last upgrade the query
{
addLiquidityEvents(where:{provider: "0x3ba6eb0e4327b96ade6d4f3b578724208a590cef" }){
pool{
id
lpToken {
id
decimals
}
underlyingCoins {
index
token {
id
}
balance
}
virtualPrice
name
}
tokenAmounts
fees
tokenSupply
timestamp
transaction
block
}
}
doesn't return any event. What could be the issue?
When calculating the balance of the underlying coins here the decimals are not used (which causes it default to 18 afaik), one example in which this causes problems is in 3CRV metapools, which causes the balance to be
Here is the code of the line with the problem
coin.balance = balances ? decimal.fromBigInt(balances![i]) : decimal.ZERO
Hi, I noticed that the latest registry address has changed to: 0x90E00ACe148ca3b23Ac1bC8C240C2a7Dd9c2d7f5.
If we're looking to handle all pool_added
events from both the old and current contract, would we need to add this data source as well?
Thanks.
Opening this issue to let indexers know we're currently aware and investigating the following error, which causes indexing to fail at block 12785713:
{
"data": {
"indexingStatusForCurrentVersion": {
"fatalError": {
"block": {
"number": "12785713"
},
"handler": null,
"message": "Heap access out of bounds. Offset: 42 Size: 6291556\twasm backtrace:\t 0: 0x1c74 - <unknown>!generated/schema/Gauge#save\t 1: 0x1dd6 - <unknown>!src/mappings/dao/gauge-controller/handleNewGauge\t in handler `handleNewGauge` at block #12785713 (d64b643a6699097df4b95a36282a9ec776bd89619b32194d44401d5a4e621464)"
},
"nonFatalErrors": [],
"subgraph": "Qma85KVRwTpstXgcHhmufP8Psc54AYKdYfZSrotx89j3jN"
}
}
}
We'll ensure a proper fix is found and deployed asap. If you have more info from your own logs don't hesitate to share them below!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.