Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve config #13

Merged
merged 3 commits into from
Aug 12, 2024
Merged

Improve config #13

merged 3 commits into from
Aug 12, 2024

Conversation

fewensa
Copy link
Collaborator

@fewensa fewensa commented Aug 9, 2024

No description provided.

Copy link
Contributor

github-actions bot commented Aug 9, 2024

diff

  • configure/configure.itering.json

configure/configure.itering.json

--- a/_main_/outputs/configure/configure.itering.json
+++ b/outputs/configure/configure.itering.json
@@ -11,7 +11,7 @@
           "collaterals": [
             {
               "symbol": "eth",
-              "autosupplyAmount": 0.4
+              "autosupplyAmount": 1
             },
             {
               "symbol": "usdc",
@@ -26,20 +26,28 @@
             },
             {
               "symbol": "eth",
-              "minRepay": 0.05,
+              "minRepay": 0.1,
               "minReserved": 0
             }
           ]
         }
       ]
     },
-    {
-      "name": "astar-zkevm",
-      "lendMarket": []
-    },
     {
       "name": "avalanche",
-      "lendMarket": []
+      "lendMarket": [
+        {
+          "protocol": "aave",
+          "healthFactorLimit": 3,
+          "collaterals": [
+            {
+              "symbol": "usdc",
+              "autosupplyAmount": 2000
+            }
+          ],
+          "tokens": []
+        }
+      ]
     },
     {
       "name": "base",
@@ -50,7 +58,7 @@
           "collaterals": [
             {
               "symbol": "eth",
-              "autosupplyAmount": 0.4
+              "autosupplyAmount": 1
             },
             {
               "symbol": "usdc",
@@ -60,7 +68,7 @@
           "tokens": [
             {
               "symbol": "eth",
-              "minRepay": 0.05,
+              "minRepay": 0.1,
               "minReserved": 0
             }
           ]
@@ -69,39 +77,79 @@
     },
     {
       "name": "blast",
-      "lendMarket": []
+      "lendMarket": [
+        {
+          "protocol": "aave",
+          "healthFactorLimit": 3,
+          "collaterals": [
+            {
+              "symbol": "usdc",
+              "autosupplyAmount": 2000
+            }
+          ],
+          "tokens": []
+        }
+      ]
     },
     {
       "name": "bsc",
-      "lendMarket": []
+      "lendMarket": [
+        {
+          "protocol": "aave",
+          "healthFactorLimit": 3,
+          "collaterals": [
+            {
+              "symbol": "usdc",
+              "autosupplyAmount": 2000
+            }
+          ],
+          "tokens": []
+        }
+      ]
     },
     {
-      "name": "crab-dvm",
-      "lendMarket": []
+      "name": "crab-dvm"
     },
     {
-      "name": "darwinia-dvm",
-      "lendMarket": []
+      "name": "darwinia-dvm"
     },
     {
-      "name": "ethereum",
-      "lendMarket": []
+      "name": "ethereum"
     },
     {
       "name": "gnosis",
-      "lendMarket": []
-    },
-    {
-      "name": "linea",
-      "lendMarket": []
+      "lendMarket": [
+        {
+          "protocol": "aave",
+          "healthFactorLimit": 3,
+          "collaterals": [
+            {
+              "symbol": "usdc",
+              "autosupplyAmount": 2000
+            }
+          ],
+          "tokens": []
+        }
+      ]
     },
     {
       "name": "mantle",
-      "lendMarket": []
+      "lendMarket": [
+        {
+          "protocol": "aave",
+          "healthFactorLimit": 3,
+          "collaterals": [
+            {
+              "symbol": "usdc",
+              "autosupplyAmount": 2000
+            }
+          ],
+          "tokens": []
+        }
+      ]
     },
     {
-      "name": "moonbeam",
-      "lendMarket": []
+      "name": "moonbeam"
     },
     {
       "name": "op",
@@ -112,7 +160,7 @@
           "collaterals": [
             {
               "symbol": "eth",
-              "autosupplyAmount": 0.4
+              "autosupplyAmount": 1
             },
             {
               "symbol": "usdc",
@@ -122,7 +170,7 @@
           "tokens": [
             {
               "symbol": "eth",
-              "minRepay": 0.05,
+              "minRepay": 0.1,
               "minReserved": 0
             }
           ]
@@ -131,7 +179,19 @@
     },
     {
       "name": "polygon",
-      "lendMarket": []
+      "lendMarket": [
+        {
+          "protocol": "aave",
+          "healthFactorLimit": 3,
+          "collaterals": [
+            {
+              "symbol": "usdc",
+              "autosupplyAmount": 2000
+            }
+          ],
+          "tokens": []
+        }
+      ]
     },
     {
       "name": "scroll",
@@ -142,7 +202,7 @@
           "collaterals": [
             {
               "symbol": "eth",
-              "autosupplyAmount": 0.4
+              "autosupplyAmount": 1
             },
             {
               "symbol": "usdc",
@@ -152,16 +212,12 @@
           "tokens": [
             {
               "symbol": "eth",
-              "minRepay": 0.05,
+              "minRepay": 0.1,
               "minReserved": 0
             }
           ]
         }
       ]
-    },
-    {
-      "name": "zksync",
-      "lendMarket": []
     }
   ],
   "bridges": [
@@ -169,6 +225,7 @@
       "direction": "arbitrum->ethereum",
       "feeLimit": 100,
       "reorgThreshold": 100,
+      "microReorgThreshold": 120,
       "bridgeType": "lnv2-opposite",
       "safeWalletAddress": "0x000000000Bb6a011dB294ce3F3423f00EAc4959e",
       "safeWalletUrl": "https://safe-transaction-mainnet.safe.global/api",
@@ -201,7 +258,7 @@
       "direction": "arbitrum->polygon",
       "feeLimit": 0.01,
       "reorgThreshold": 200,
-      "microReorgThreshold": 50,
+      "microReorgThreshold": 30,
       "bridgeType": "lnv3",
       "safeWalletAddress": "0x000000000Bb6a011dB294ce3F3423f00EAc4959e",
       "safeWalletUrl": "https://safe-transaction-polygon.safe.global/api",
@@ -220,7 +277,7 @@
       "direction": "polygon->arbitrum",
       "feeLimit": 0.1,
       "reorgThreshold": 200,
-      "microReorgThreshold": 50,
+      "microReorgThreshold": 30,
       "bridgeType": "lnv3",
       "safeWalletAddress": "0x000000000Bb6a011dB294ce3F3423f00EAc4959e",
       "safeWalletUrl": "https://safe-transaction-arbitrum.safe.global/api",
@@ -239,7 +296,7 @@
       "direction": "arbitrum->scroll",
       "feeLimit": 100,
       "reorgThreshold": 200,
-      "microReorgThreshold": 50,
+      "microReorgThreshold": 120,
       "bridgeType": "lnv3",
       "safeWalletAddress": "0x000000000Bb6a011dB294ce3F3423f00EAc4959e",
       "safeWalletUrl": "https://safe-transaction-scroll.safe.global/api",
@@ -269,7 +326,7 @@
       "direction": "scroll->arbitrum",
       "feeLimit": 150,
       "reorgThreshold": 200,
-      "microReorgThreshold": 50,
+      "microReorgThreshold": 30,
       "bridgeType": "lnv3",
       "safeWalletAddress": "0x000000000Bb6a011dB294ce3F3423f00EAc4959e",
       "safeWalletUrl": "https://safe-transaction-arbitrum.safe.global/api",
@@ -331,6 +388,7 @@
       "direction": "polygon->scroll",
       "feeLimit": 100,
       "reorgThreshold": 200,
+      "microReorgThreshold": 30,
       "bridgeType": "lnv3",
       "safeWalletAddress": "0x000000000Bb6a011dB294ce3F3423f00EAc4959e",
       "safeWalletUrl": "https://safe-transaction-scroll.safe.global/api",
@@ -348,6 +406,7 @@
       "direction": "scroll->polygon",
       "feeLimit": 150,
       "reorgThreshold": 200,
+      "microReorgThreshold": 30,
       "bridgeType": "lnv3",
       "safeWalletAddress": "0x000000000Bb6a011dB294ce3F3423f00EAc4959e",
       "safeWalletUrl": "https://safe-transaction-polygon.safe.global/api",

See the workflow run

Copy link
Contributor

github-actions bot commented Aug 9, 2024

configure changes:

outputs/configure/configure.itering.json
{
  "indexer": "https://apollo.helixbridge.app/graphql",
  "relayGasLimit": 600000,
  "rpcnodes": [
    {
      "name": "arbitrum",
      "lendMarket": [
        {
          "protocol": "aave",
          "healthFactorLimit": 3,
          "collaterals": [
            {
              "symbol": "eth",
              "autosupplyAmount": 1
            },
            {
              "symbol": "usdc",
              "autosupplyAmount": 2000
            }
          ],
          "tokens": [
            {
              "symbol": "usdt",
              "minRepay": 100,
              "minReserved": 0
            },
            {
              "symbol": "eth",
              "minRepay": 0.1,
              "minReserved": 0
            }
          ]
        }
      ]
    },
    {
      "name": "avalanche",
      "lendMarket": [
        {
          "protocol": "aave",
          "healthFactorLimit": 3,
          "collaterals": [
            {
              "symbol": "usdc",
              "autosupplyAmount": 2000
            }
          ],
          "tokens": []
        }
      ]
    },
    {
      "name": "base",
      "lendMarket": [
        {
          "protocol": "aave",
          "healthFactorLimit": 3,
          "collaterals": [
            {
              "symbol": "eth",
              "autosupplyAmount": 1
            },
            {
              "symbol": "usdc",
              "autosupplyAmount": 2000
            }
          ],
          "tokens": [
            {
              "symbol": "eth",
              "minRepay": 0.1,
              "minReserved": 0
            }
          ]
        }
      ]
    },
    {
      "name": "blast",
      "lendMarket": [
        {
          "protocol": "aave",
          "healthFactorLimit": 3,
          "collaterals": [
            {
              "symbol": "usdc",
              "autosupplyAmount": 2000
            }
          ],
          "tokens": []
        }
      ]
    },
    {
      "name": "bsc",
      "lendMarket": [
        {
          "protocol": "aave",
          "healthFactorLimit": 3,
          "collaterals": [
            {
              "symbol": "usdc",
              "autosupplyAmount": 2000
            }
          ],
          "tokens": []
        }
      ]
    },
    {
      "name": "crab-dvm"
    },
    {
      "name": "darwinia-dvm"
    },
    {
      "name": "ethereum"
    },
    {
      "name": "gnosis",
      "lendMarket": [
        {
          "protocol": "aave",
          "healthFactorLimit": 3,
          "collaterals": [
            {
              "symbol": "usdc",
              "autosupplyAmount": 2000
            }
          ],
          "tokens": []
        }
      ]
    },
    {
      "name": "mantle",
      "lendMarket": [
        {
          "protocol": "aave",
          "healthFactorLimit": 3,
          "collaterals": [
            {
              "symbol": "usdc",
              "autosupplyAmount": 2000
            }
          ],
          "tokens": []
        }
      ]
    },
    {
      "name": "moonbeam"
    },
    {
      "name": "op",
      "lendMarket": [
        {
          "protocol": "aave",
          "healthFactorLimit": 3,
          "collaterals": [
            {
              "symbol": "eth",
              "autosupplyAmount": 1
            },
            {
              "symbol": "usdc",
              "autosupplyAmount": 2000
            }
          ],
          "tokens": [
            {
              "symbol": "eth",
              "minRepay": 0.1,
              "minReserved": 0
            }
          ]
        }
      ]
    },
    {
      "name": "polygon",
      "lendMarket": [
        {
          "protocol": "aave",
          "healthFactorLimit": 3,
          "collaterals": [
            {
              "symbol": "usdc",
              "autosupplyAmount": 2000
            }
          ],
          "tokens": []
        }
      ]
    },
    {
      "name": "scroll",
      "lendMarket": [
        {
          "protocol": "aave",
          "healthFactorLimit": 3,
          "collaterals": [
            {
              "symbol": "eth",
              "autosupplyAmount": 1
            },
            {
              "symbol": "usdc",
              "autosupplyAmount": 2000
            }
          ],
          "tokens": [
            {
              "symbol": "eth",
              "minRepay": 0.1,
              "minReserved": 0
            }
          ]
        }
      ]
    }
  ],
  "bridges": [
    {
      "direction": "arbitrum->ethereum",
      "feeLimit": 100,
      "reorgThreshold": 100,
      "microReorgThreshold": 120,
      "bridgeType": "lnv2-opposite",
      "safeWalletAddress": "0x000000000Bb6a011dB294ce3F3423f00EAc4959e",
      "safeWalletUrl": "https://safe-transaction-mainnet.safe.global/api",
      "safeWalletRole": "<safe_wallet_role>",
      "encryptedPrivateKey": "<encrypted_private_key>",
      "tokens": [
        {
          "symbol": "ring->ring",
          "swapRate": 1
        }
      ]
    },
    {
      "direction": "ethereum->arbitrum",
      "feeLimit": 100,
      "reorgThreshold": 100,
      "bridgeType": "lnv2-default",
      "safeWalletAddress": "0x000000000Bb6a011dB294ce3F3423f00EAc4959e",
      "safeWalletUrl": "https://safe-transaction-arbitrum.safe.global/api",
      "safeWalletRole": "<safe_wallet_role>",
      "encryptedPrivateKey": "<encrypted_private_key>",
      "tokens": [
        {
          "symbol": "ring->ring",
          "swapRate": 1
        }
      ]
    },
    {
      "direction": "arbitrum->polygon",
      "feeLimit": 0.01,
      "reorgThreshold": 200,
      "microReorgThreshold": 30,
      "bridgeType": "lnv3",
      "safeWalletAddress": "0x000000000Bb6a011dB294ce3F3423f00EAc4959e",
      "safeWalletUrl": "https://safe-transaction-polygon.safe.global/api",
      "safeWalletRole": "<safe_wallet_role>",
      "encryptedPrivateKey": "<encrypted_private_key>",
      "tokens": [
        {
          "symbol": "usdt->usdt",
          "swapRate": 1,
          "withdrawLiquidityCountThreshold": 10,
          "microThreshold": 50
        }
      ]
    },
    {
      "direction": "polygon->arbitrum",
      "feeLimit": 0.1,
      "reorgThreshold": 200,
      "microReorgThreshold": 30,
      "bridgeType": "lnv3",
      "safeWalletAddress": "0x000000000Bb6a011dB294ce3F3423f00EAc4959e",
      "safeWalletUrl": "https://safe-transaction-arbitrum.safe.global/api",
      "safeWalletRole": "<safe_wallet_role>",
      "encryptedPrivateKey": "<encrypted_private_key>",
      "tokens": [
        {
          "symbol": "usdt->usdt",
          "swapRate": 1,
          "withdrawLiquidityCountThreshold": 10,
          "microThreshold": 50
        }
      ]
    },
    {
      "direction": "arbitrum->scroll",
      "feeLimit": 100,
      "reorgThreshold": 200,
      "microReorgThreshold": 120,
      "bridgeType": "lnv3",
      "safeWalletAddress": "0x000000000Bb6a011dB294ce3F3423f00EAc4959e",
      "safeWalletUrl": "https://safe-transaction-scroll.safe.global/api",
      "safeWalletRole": "<safe_wallet_role>",
      "encryptedPrivateKey": "<encrypted_private_key>",
      "tokens": [
        {
          "symbol": "usdt->usdt",
          "swapRate": 2300,
          "withdrawLiquidityCountThreshold": 10
        },
        {
          "symbol": "usdc->usdc",
          "swapRate": 1,
          "withdrawLiquidityCountThreshold": 10,
          "microThreshold": 50
        },
        {
          "symbol": "eth->eth",
          "swapRate": 1,
          "withdrawLiquidityCountThreshold": 10,
          "microThreshold": 0.01
        }
      ]
    },
    {
      "direction": "scroll->arbitrum",
      "feeLimit": 150,
      "reorgThreshold": 200,
      "microReorgThreshold": 30,
      "bridgeType": "lnv3",
      "safeWalletAddress": "0x000000000Bb6a011dB294ce3F3423f00EAc4959e",
      "safeWalletUrl": "https://safe-transaction-arbitrum.safe.global/api",
      "safeWalletRole": "<safe_wallet_role>",
      "encryptedPrivateKey": "<encrypted_private_key>",
      "tokens": [
        {
          "symbol": "usdt->usdt",
          "swapRate": 2300,
          "withdrawLiquidityCountThreshold": 10
        },
        {
          "symbol": "usdc->usdc",
          "swapRate": 1,
          "withdrawLiquidityCountThreshold": 10,
          "microThreshold": 50
        },
        {
          "symbol": "eth->eth",
          "swapRate": 1,
          "withdrawLiquidityCountThreshold": 10,
          "microThreshold": 0.01
        }
      ]
    },
    {
      "direction": "darwinia-dvm->ethereum",
      "feeLimit": 100,
      "reorgThreshold": 10,
      "bridgeType": "lnv2-opposite",
      "safeWalletAddress": "0x000000000Bb6a011dB294ce3F3423f00EAc4959e",
      "safeWalletUrl": "https://safe-transaction-mainnet.safe.global/api",
      "safeWalletRole": "<safe_wallet_role>",
      "encryptedPrivateKey": "<encrypted_private_key>",
      "tokens": [
        {
          "symbol": "ring->ring",
          "swapRate": 1
        }
      ]
    },
    {
      "direction": "ethereum->darwinia-dvm",
      "feeLimit": 100,
      "reorgThreshold": 10,
      "bridgeType": "lnv2-default",
      "safeWalletAddress": "0x000000000Bb6a011dB294ce3F3423f00EAc4959e",
      "safeWalletUrl": "https://dsafe.dcdao.box/txs/api",
      "safeWalletRole": "<safe_wallet_role>",
      "encryptedPrivateKey": "<encrypted_private_key>",
      "tokens": [
        {
          "symbol": "ring->ring",
          "swapRate": 1
        }
      ]
    },
    {
      "direction": "polygon->scroll",
      "feeLimit": 100,
      "reorgThreshold": 200,
      "microReorgThreshold": 30,
      "bridgeType": "lnv3",
      "safeWalletAddress": "0x000000000Bb6a011dB294ce3F3423f00EAc4959e",
      "safeWalletUrl": "https://safe-transaction-scroll.safe.global/api",
      "safeWalletRole": "<safe_wallet_role>",
      "encryptedPrivateKey": "<encrypted_private_key>",
      "tokens": [
        {
          "symbol": "usdt->usdt",
          "swapRate": 2300,
          "withdrawLiquidityCountThreshold": 10
        }
      ]
    },
    {
      "direction": "scroll->polygon",
      "feeLimit": 150,
      "reorgThreshold": 200,
      "microReorgThreshold": 30,
      "bridgeType": "lnv3",
      "safeWalletAddress": "0x000000000Bb6a011dB294ce3F3423f00EAc4959e",
      "safeWalletUrl": "https://safe-transaction-polygon.safe.global/api",
      "safeWalletRole": "<safe_wallet_role>",
      "encryptedPrivateKey": "<encrypted_private_key>",
      "tokens": [
        {
          "symbol": "usdt->usdt",
          "swapRate": 2300,
          "withdrawLiquidityCountThreshold": 10
        }
      ]
    }
  ]
}
outputs/configure/configure.testnet.json
{
  "indexer": "https://apollo.helixbridge.app/graphql",
  "relayGasLimit": 600000,
  "rpcnodes": [
    {
      "name": "sepolia",
      "fixedGasPrice": 10,
      "rpc": "https://ethereum-sepolia-rpc.publicnode.com"
    },
    {
      "name": "arbitrum-sepolia",
      "rpc": "https://arbitrum-sepolia.blockpi.network/v1/rpc/public"
    }
  ],
  "bridges": [
    {
      "direction": "arbitrum-sepolia->sepolia",
      "feeLimit": 100,
      "reorgThreshold": 10,
      "bridgeType": "lnv3",
      "safeWalletAddress": "0x086962e147c82C037872fa87523faa139D38ee61",
      "safeWalletUrl": "https://safe-transaction-sepolia.safe.global/api",
      "encryptedPrivateKey": "aabbccddee",
      "tokens": [
        {
          "symbol": "usdc->usdc",
          "swapRate": 2000,
          "withdrawLiquidityCountThreshold": 10
        }
      ]
    },
    {
      "direction": "sepolia->arbitrum-sepolia",
      "feeLimit": 100,
      "reorgThreshold": 10,
      "bridgeType": "lnv3",
      "tokens": [
        {
          "symbol": "usdc->usdc",
          "swapRate": 2300,
          "withdrawLiquidityCountThreshold": 10
        }
      ]
    }
  ]
}

@fewensa fewensa merged commit 61d11a8 into main Aug 12, 2024
1 check passed
@fewensa fewensa deleted the improve-config branch August 12, 2024 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant