geniusyield / smart-order-router

Open-source Smart Order Router framework to connect liquidity from the Genius Yield DEX
https://www.geniusyield.co
Apache License 2.0
57 stars 11 forks source link

BlockfrostError "Usage is over limit." #38

Closed privatejava closed 9 months ago

privatejava commented 11 months ago

Describe the bug Simple one currency and commodity started in Docker environment.

To Reproduce Steps to reproduce the behavior:

  1. Use latest Docker image

  2. Environments: These all are provided on minified version in environment.

    "BOTC_ASSET_FILTER": [
    {
    "commodityAsset": "171163f05e4f30b6be3c22668c37978e7d508b84f83558e523133cdf.74454d50",
    "currencyAsset": "lovelace"
    }
    ]
    "BOTC_COLLATERAL" : "7cc7b044d26981d3fc73ae72994f289d99ba113ceefb5b83f4d7643bfb12682a#1"
    "BOTC_CONFIG": {
    "coreProvider": {
    "blockfrostKey": "preprod_mykey"
    },
    "networkId": "testnet-preprod",
    "logging": [
    {
      "type": {
        "tag": "stderr"
      },
      "severity": "Info",
      "verbosity": "V2"
    }
    ],
    "utxoCacheEnable": false
    }
    "BOTC_SKEY": {
    "cborHex": "my_hex",
    "type": "PaymentSigningKeyShelley_ed25519",
    "description": "Payment Signing Key"
    }
  3. Run this container with that env

  4. See error

    
    [2023-10-17 08:00:20][GeniusYield.][Info][993d7d6557bb][PID 7][ThreadId 9][atlas-cardano-0.3.0-501e1471f205aa71b23c5d142f56d7aaa30f3d576720da46e118209bd03607cb:GeniusYield.Providers.Katip src/GeniusYield/Providers/Katip.hs:22:34] Querying utxos (with datums) At Addresses:
    --
    [unsafeAddressFromText "addr_test1wqtcz4vq80zxr3dskdcuw7wtfq0vwssd7rrpnnvcvrjhp5sx7leew"]
    [2023-10-17 08:00:20][GeniusYield..SOR][Error][993d7d6557bb][PID 7][ThreadId 9][atlas-cardano-0.3.0-501e1471f205aa71b23c5d142f56d7aaa30f3d576720da46e118209bd03607cb:GeniusYield.Providers.Katip src/GeniusYield/Providers/Katip.hs:22:34] BlpvApiError "AddressUtxos" (BlockfrostError "Usage is over limit.")
    [2023-10-17 08:00:50][GeniusYield..SOR][Info][993d7d6557bb][PID 7][ThreadId 9][atlas-cardano-0.3.0-501e1471f205aa71b23c5d142f56d7aaa30f3d576720da46e118209bd03607cb:GeniusYield.Providers.Katip src/GeniusYield/Providers/Katip.hs:22:34] Rescanning for orders...
    [2023-10-17 08:00:50][GeniusYield.][Info][993d7d6557bb][PID 7][ThreadId 9][atlas-cardano-0.3.0-501e1471f205aa71b23c5d142f56d7aaa30f3d576720da46e118209bd03607cb:GeniusYield.Providers.Katip src/GeniusYield/Providers/Katip.hs:22:34] Querying utxos (with datums) At Addresses:
    [unsafeAddressFromText "addr_test1wqtcz4vq80zxr3dskdcuw7wtfq0vwssd7rrpnnvcvrjhp5sx7leew"]
    [2023-10-17 08:00:51][GeniusYield..SOR][Error][993d7d6557bb][PID 7][ThreadId 9][atlas-cardano-0.3.0-501e1471f205aa71b23c5d142f56d7aaa30f3d576720da46e118209bd03607cb:GeniusYield.Providers.Katip src/GeniusYield/Providers/Katip.hs:22:34] BlpvApiError "AddressUtxos" (BlockfrostError "Usage is over limit.")
    [2023-10-17 08:01:21][GeniusYield..SOR][Info][993d7d6557bb][PID 7][ThreadId 9][atlas-cardano-0.3.0-501e1471f205aa71b23c5d142f56d7aaa30f3d576720da46e118209bd03607cb:GeniusYield.Providers.Katip src/GeniusYield/Providers/Katip.hs:22:34] Rescanning for orders...
    [2023-10-17 08:01:21][GeniusYield.][Info][993d7d6557bb][PID 7][ThreadId 9][atlas-cardano-0.3.0-501e1471f205aa71b23c5d142f56d7aaa30f3d576720da46e118209bd03607cb:GeniusYield.Providers.Katip src/GeniusYield/Providers/Katip.hs:22:34] Querying utxos (with datums) At Addresses:
    [unsafeAddressFromText "addr_test1wqtcz4vq80zxr3dskdcuw7wtfq0vwssd7rrpnnvcvrjhp5sx7leew"]
    [2023-10-17 08:01:22][GeniusYield..SOR][Error][993d7d6557bb][PID 7][ThreadId 9][atlas-cardano-0.3.0-501e1471f205aa71b23c5d142f56d7aaa30f3d576720da46e118209bd03607cb:GeniusYield.Providers.Katip src/GeniusYield/Providers/Katip.hs:22:34] BlpvApiError "AddressUtxos" (BlockfrostError "Usage is over limit.")
    [2023-10-17 08:01:52][GeniusYield..SOR][Info][993d7d6557bb][PID 7][ThreadId 9][atlas-cardano-0.3.0-501e1471f205aa71b23c5d142f56d7aaa30f3d576720da46e118209bd03607cb:GeniusYield.Providers.Katip src/GeniusYield/Providers/Katip.hs:22:34] Rescanning for orders...
    [2023-10-17 08:01:52][GeniusYield.][Info][993d7d6557bb][PID 7][ThreadId 9][atlas-cardano-0.3.0-501e1471f205aa71b23c5d142f56d7aaa30f3d576720da46e118209bd03607cb:GeniusYield.Providers.Katip src/GeniusYield/Providers/Katip.hs:22:34] Querying utxos (with datums) At Addresses:
    [unsafeAddressFromText "addr_test1wqtcz4vq80zxr3dskdcuw7wtfq0vwssd7rrpnnvcvrjhp5sx7leew"]


**Station (please complete the following information):**
 - OS: Ubuntu
 - Version 22.04
 - smart-order-router: latest
Micrograx commented 11 months ago

Hi, looks like you reached the API limit of the blockfrost token you are using. You can get more details in the blockfrost dashboard: https://blockfrost.io/dashboard.

We also recommend using Maestro as the provider, because it's more optimized and less queries are needed for each iteration. https://www.gomaestro.org/

sourabhxyz commented 9 months ago

Please see the updated README regarding different available providers and their related tradeoffs.