Skip to content

Galxe/ibalpaca-subgraph

Repository files navigation

Alpaca ibALPACA Subgraph

Alpaca Finance is the largest lending protocol allowing leveraged yield farming on Binance Smart Chain. It helps lenders to earn safe and stable yields, and offers borrowers undercollateralized loans for leveraged yield farming positions, vastly multiplying their farming principals and resulting profits.‌ Furthermore, Alpacas are a virtuous breed. That’s why, we are a fair-launch project with no pre-sale, no investor, and no pre-mine. This is a product built by the Alpacas, for the Alpacas.

Deployed at: https://thegraph.com/legacy-explorer/subgraph/nftgalaxy/alpaca-ibalpaca-subgraph

Model

User

  • id: User address
  • mintCount: User mint times

Example Queries

  • Each address will get a chance to draw from Burger NFT cards for more than 100 BURGER or xBURGER liquidity provided by any one of following trading pairs for 10 days on Liquidity.

Query:

{
  user(id: "0x005557a4d27714a764eed9afb2b2e86ac35d6f00") {
    id
    tx
  }
}

Sample response data:

{
  "data": {
    "user": {
      "id": "0x00064a106d0596817a9f697f7c5cce32e8286d55",
      "tx": "0xa66005ffc522ef59ad95f745623948ab6cd82a959a2282c719b60242b9a8c291"
    }
  }
}

Get claim count expression:

function(data) {
  if (data.user == null) {
    return 0
  }
  return 1
  
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published