Closed MerlinEgalite closed 6 months ago
id
must be unique for a pending cap, but you can retrieve the market id by doing the following query:
{
pendingCaps(first: 1) {
metaMorphoMarket {
market {
id
}
}
}
}
Better, you can do that:
{
metaMorphos(first: 10) {
markets {
market {
id
}
pendingCaps {
validAt
isNewMarket
cap
status
}
}
}
}
ah cool thx
When querying the pending caps the id is the concatenation of the market params. I think it would be better if it was the the id of the market instead