otomato-sdk 2.0.501 → 2.0.503
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.
|
@@ -6149,11 +6149,10 @@ export const TRIGGERS = {
|
|
|
6149
6149
|
},
|
|
6150
6150
|
"LENDING_RATE": {
|
|
6151
6151
|
"name": "Euler Vault Lending Rate",
|
|
6152
|
-
"dynamicName": "async (env, { otomatoSDK }) => {\n const { getDynamicNameWrapperHTML, getComparisonString, getChainHTML } = otomatoSDK;\n return getDynamicNameWrapperHTML(\n `If Vault`,\n `<b>${
|
|
6153
|
-
"description": "Monitor supply APY for Euler v2 vaults",
|
|
6152
|
+
"dynamicName": "async (env, { otomatoSDK }) => {\n const { getDynamicNameWrapperHTML, getComparisonString, getChainHTML } = otomatoSDK;\n const vault = env.parameters.vault || env.parameters?.abi?.parameters?.vault || env.parameters?.abiParams?.vault;\n return getDynamicNameWrapperHTML(\n `If Vault`,\n `<b>${vault}</b>`,\n `supply rate on ${getChainHTML(env.parameters.chainId)} ${getComparisonString(env.parameters.condition, env.parameters.comparisonValue)}`\n );\n }",
|
|
6153
|
+
"description": "Monitor supply APY for Euler v2 vaults (supports regular eVaults and Euler Earn aggregators)",
|
|
6154
6154
|
"prototype": "eulerVaultLendingRate",
|
|
6155
|
-
"type":
|
|
6156
|
-
"method": "function getAPYs(address vault) external view returns (uint256 borrowAPY, uint256 supplyAPY)",
|
|
6155
|
+
"type": 6,
|
|
6157
6156
|
"parameters": [
|
|
6158
6157
|
{
|
|
6159
6158
|
"key": "chainId",
|
|
@@ -6163,7 +6162,7 @@ export const TRIGGERS = {
|
|
|
6163
6162
|
"category": 0
|
|
6164
6163
|
},
|
|
6165
6164
|
{
|
|
6166
|
-
"key": "
|
|
6165
|
+
"key": "vault",
|
|
6167
6166
|
"type": "address",
|
|
6168
6167
|
"description": "Euler vault address to monitor",
|
|
6169
6168
|
"mandatory": true,
|
|
@@ -6194,7 +6193,7 @@ export const TRIGGERS = {
|
|
|
6194
6193
|
"value": 1
|
|
6195
6194
|
},
|
|
6196
6195
|
{
|
|
6197
|
-
"key": "
|
|
6196
|
+
"key": "vault",
|
|
6198
6197
|
"value": "0x797DD80692c3b2dAdabCe8e30C07fDE5307D48a9"
|
|
6199
6198
|
},
|
|
6200
6199
|
{
|
|
@@ -6209,7 +6208,8 @@ export const TRIGGERS = {
|
|
|
6209
6208
|
}
|
|
6210
6209
|
],
|
|
6211
6210
|
"output": {
|
|
6212
|
-
"lendingRate": "float"
|
|
6211
|
+
"lendingRate": "float",
|
|
6212
|
+
"comparisonValue": "float"
|
|
6213
6213
|
},
|
|
6214
6214
|
"blockId": 121,
|
|
6215
6215
|
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/euler.webp"
|
|
@@ -2368,7 +2368,6 @@ export declare const TRIGGERS: {
|
|
|
2368
2368
|
description: string;
|
|
2369
2369
|
prototype: string;
|
|
2370
2370
|
type: number;
|
|
2371
|
-
method: string;
|
|
2372
2371
|
parameters: Parameter[];
|
|
2373
2372
|
examples: {
|
|
2374
2373
|
name: string;
|
|
@@ -2383,6 +2382,7 @@ export declare const TRIGGERS: {
|
|
|
2383
2382
|
}[];
|
|
2384
2383
|
output: {
|
|
2385
2384
|
lendingRate: string;
|
|
2385
|
+
comparisonValue: string;
|
|
2386
2386
|
};
|
|
2387
2387
|
blockId: number;
|
|
2388
2388
|
image: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.503";
|
|
2
2
|
export declare function compareVersions(v1: string, v2: string): number;
|