otomato-sdk 2.0.523 → 2.0.524
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6055,6 +6055,74 @@ export const TRIGGERS = {
|
|
|
6055
6055
|
],
|
|
6056
6056
|
"blockId": 99,
|
|
6057
6057
|
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/hypurr.webp"
|
|
6058
|
+
},
|
|
6059
|
+
"VAULT_LENDING_RATE": {
|
|
6060
|
+
"name": "EVK Vault Lending Rate",
|
|
6061
|
+
"dynamicName": "async (env, { otomatoSDK }) => {\n const { getDynamicNameWrapperHTML, getComparisonString, getChainHTML, shortenAddress } = otomatoSDK;\n return getDynamicNameWrapperHTML(\n `Vault lending rate on`,\n shortenAddress(env.parameters.vault),\n `on ${getChainHTML(env.parameters.chainId)}`,\n `${getComparisonString(env.parameters.condition, env.parameters.comparisonValue)}`\n );\n }",
|
|
6062
|
+
"description": "Get the supply APY of an EVK vault on HypurrFi",
|
|
6063
|
+
"prototype": "hypurrVaultLendingRate",
|
|
6064
|
+
"type": 6,
|
|
6065
|
+
"parameters": [
|
|
6066
|
+
{
|
|
6067
|
+
"key": "chainId",
|
|
6068
|
+
"type": "chainId",
|
|
6069
|
+
"description": "Chain ID of the network",
|
|
6070
|
+
"mandatory": true,
|
|
6071
|
+
"category": 0
|
|
6072
|
+
},
|
|
6073
|
+
{
|
|
6074
|
+
"key": "vault",
|
|
6075
|
+
"type": "address",
|
|
6076
|
+
"description": "The EVK vault address",
|
|
6077
|
+
"mandatory": true,
|
|
6078
|
+
"category": 0
|
|
6079
|
+
},
|
|
6080
|
+
{
|
|
6081
|
+
"key": "condition",
|
|
6082
|
+
"type": "logic_operator",
|
|
6083
|
+
"description": "Logic operator used for the comparison: <, >, <=, >=, ==, ...",
|
|
6084
|
+
"mandatory": true,
|
|
6085
|
+
"category": 0
|
|
6086
|
+
},
|
|
6087
|
+
{
|
|
6088
|
+
"key": "comparisonValue",
|
|
6089
|
+
"type": "float",
|
|
6090
|
+
"description": "The value to compare to",
|
|
6091
|
+
"mandatory": true,
|
|
6092
|
+
"category": 0
|
|
6093
|
+
},
|
|
6094
|
+
],
|
|
6095
|
+
"output": {
|
|
6096
|
+
"lendingRate": "float",
|
|
6097
|
+
"comparisonValue": "float"
|
|
6098
|
+
},
|
|
6099
|
+
"examples": [
|
|
6100
|
+
{
|
|
6101
|
+
"name": "HypurrFi Earn USDH Vault Lending Rate above 3%",
|
|
6102
|
+
"description": "HypurrFi Earn USDH Vault supply APY is above 3% on Hyper EVM",
|
|
6103
|
+
"externalVariableDescription": "Fetches the current EVK vault supply APY on Hyper EVM",
|
|
6104
|
+
"parameters": [
|
|
6105
|
+
{
|
|
6106
|
+
"key": "chainId",
|
|
6107
|
+
"value": 999
|
|
6108
|
+
},
|
|
6109
|
+
{
|
|
6110
|
+
"key": "vault",
|
|
6111
|
+
"value": "0xF38eA9DE758a8F6be08B6E65bc0Ff2f3e3aB741b"
|
|
6112
|
+
},
|
|
6113
|
+
{
|
|
6114
|
+
"key": "condition",
|
|
6115
|
+
"value": "gt"
|
|
6116
|
+
},
|
|
6117
|
+
{
|
|
6118
|
+
"key": "comparisonValue",
|
|
6119
|
+
"value": 3
|
|
6120
|
+
}
|
|
6121
|
+
]
|
|
6122
|
+
}
|
|
6123
|
+
],
|
|
6124
|
+
"blockId": 146,
|
|
6125
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/hypurr.webp"
|
|
6058
6126
|
}
|
|
6059
6127
|
},
|
|
6060
6128
|
"VENTUALS": {
|
|
@@ -2323,6 +2323,32 @@ export declare const TRIGGERS: {
|
|
|
2323
2323
|
blockId: number;
|
|
2324
2324
|
image: string;
|
|
2325
2325
|
};
|
|
2326
|
+
VAULT_LENDING_RATE: {
|
|
2327
|
+
name: string;
|
|
2328
|
+
dynamicName: string;
|
|
2329
|
+
description: string;
|
|
2330
|
+
prototype: string;
|
|
2331
|
+
type: number;
|
|
2332
|
+
parameters: Parameter[];
|
|
2333
|
+
output: {
|
|
2334
|
+
lendingRate: string;
|
|
2335
|
+
comparisonValue: string;
|
|
2336
|
+
};
|
|
2337
|
+
examples: {
|
|
2338
|
+
name: string;
|
|
2339
|
+
description: string;
|
|
2340
|
+
externalVariableDescription: string;
|
|
2341
|
+
parameters: ({
|
|
2342
|
+
key: string;
|
|
2343
|
+
value: number;
|
|
2344
|
+
} | {
|
|
2345
|
+
key: string;
|
|
2346
|
+
value: string;
|
|
2347
|
+
})[];
|
|
2348
|
+
}[];
|
|
2349
|
+
blockId: number;
|
|
2350
|
+
image: string;
|
|
2351
|
+
};
|
|
2326
2352
|
};
|
|
2327
2353
|
VENTUALS: {
|
|
2328
2354
|
description: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.524";
|
|
2
2
|
export declare function compareVersions(v1: string, v2: string): number;
|