otomato-sdk 2.0.616 → 2.0.617
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.
|
@@ -1570,6 +1570,84 @@ export const TRIGGERS = {
|
|
|
1570
1570
|
}
|
|
1571
1571
|
},
|
|
1572
1572
|
"YIELD": {
|
|
1573
|
+
"SUSD3": {
|
|
1574
|
+
"description": "3Jane — native on-chain yield of sUSD3 (share-price growth, no smoothing)",
|
|
1575
|
+
"chains": [
|
|
1576
|
+
1
|
|
1577
|
+
],
|
|
1578
|
+
"image": "https://coin-images.coingecko.com/coins/images/6319/large/usdc.png",
|
|
1579
|
+
"NATIVE_YIELD": {
|
|
1580
|
+
"name": "sUSD3 native yield",
|
|
1581
|
+
"prototype": "threejaneSusd3NativeYield",
|
|
1582
|
+
"dynamicName": "async (env, { otomatoSDK }) => {\n const { getDynamicNameWrapperHTML, getChainHTML, getComparisonString } = otomatoSDK;\n return getDynamicNameWrapperHTML(\n `sUSD3 native yield on ${getChainHTML(env.parameters.chainId)} ${getComparisonString(env.parameters.condition, env.parameters.comparisonValue)}%`\n );\n }",
|
|
1583
|
+
"description": "Reads the on-chain native yield (APY %) of sUSD3 from the growth of its convertToAssets() share-price over a 7-day window, and fires when it meets the condition.",
|
|
1584
|
+
"type": 6,
|
|
1585
|
+
"output": {
|
|
1586
|
+
"nativeApy": "float",
|
|
1587
|
+
"sharePrice": "float",
|
|
1588
|
+
"windowDays": "float"
|
|
1589
|
+
},
|
|
1590
|
+
"parameters": [
|
|
1591
|
+
{
|
|
1592
|
+
"key": "chainId",
|
|
1593
|
+
"type": "chainId",
|
|
1594
|
+
"description": "Chain ID of the network",
|
|
1595
|
+
"mandatory": true,
|
|
1596
|
+
"category": 0,
|
|
1597
|
+
"value": 1
|
|
1598
|
+
},
|
|
1599
|
+
{
|
|
1600
|
+
"key": "contractAddress",
|
|
1601
|
+
"type": "address",
|
|
1602
|
+
"description": "Rate-holder contract exposing convertToAssets() (the token itself)",
|
|
1603
|
+
"mandatory": true,
|
|
1604
|
+
"category": 0,
|
|
1605
|
+
"value": "0xf689555121e529Ff0463e191F9Bd9d1E496164a7"
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
"key": "condition",
|
|
1609
|
+
"type": "logic_operator",
|
|
1610
|
+
"description": "Logic operator used for the comparison (e.g. >, <, >=)",
|
|
1611
|
+
"mandatory": true,
|
|
1612
|
+
"category": 0
|
|
1613
|
+
},
|
|
1614
|
+
{
|
|
1615
|
+
"key": "comparisonValue",
|
|
1616
|
+
"type": "float",
|
|
1617
|
+
"description": "The native yield (in %) to compare against (e.g. 3 = 3% APY)",
|
|
1618
|
+
"mandatory": true,
|
|
1619
|
+
"category": 0
|
|
1620
|
+
},
|
|
1621
|
+
],
|
|
1622
|
+
"examples": [
|
|
1623
|
+
{
|
|
1624
|
+
"name": "sUSD3 native yield above 5%",
|
|
1625
|
+
"description": "Triggers when the on-chain native yield of sUSD3 rises above 5% on Ethereum.",
|
|
1626
|
+
"externalVariableDescription": "Fetches the current on-chain native yield (APY %) of sUSD3.",
|
|
1627
|
+
"parameters": [
|
|
1628
|
+
{
|
|
1629
|
+
"key": "chainId",
|
|
1630
|
+
"value": 1
|
|
1631
|
+
},
|
|
1632
|
+
{
|
|
1633
|
+
"key": "contractAddress",
|
|
1634
|
+
"value": "0xf689555121e529Ff0463e191F9Bd9d1E496164a7"
|
|
1635
|
+
},
|
|
1636
|
+
{
|
|
1637
|
+
"key": "condition",
|
|
1638
|
+
"value": "gt"
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
"key": "comparisonValue",
|
|
1642
|
+
"value": 5
|
|
1643
|
+
}
|
|
1644
|
+
]
|
|
1645
|
+
}
|
|
1646
|
+
],
|
|
1647
|
+
"blockId": 274,
|
|
1648
|
+
"image": "https://coin-images.coingecko.com/coins/images/6319/large/usdc.png"
|
|
1649
|
+
}
|
|
1650
|
+
},
|
|
1573
1651
|
"USD3": {
|
|
1574
1652
|
"description": "3Jane — native on-chain yield of USD3 (share-price growth, no smoothing)",
|
|
1575
1653
|
"chains": [
|
|
@@ -586,6 +586,38 @@ export declare const TRIGGERS: {
|
|
|
586
586
|
};
|
|
587
587
|
};
|
|
588
588
|
YIELD: {
|
|
589
|
+
SUSD3: {
|
|
590
|
+
description: string;
|
|
591
|
+
chains: number[];
|
|
592
|
+
image: string;
|
|
593
|
+
NATIVE_YIELD: {
|
|
594
|
+
name: string;
|
|
595
|
+
prototype: string;
|
|
596
|
+
dynamicName: string;
|
|
597
|
+
description: string;
|
|
598
|
+
type: number;
|
|
599
|
+
output: {
|
|
600
|
+
nativeApy: string;
|
|
601
|
+
sharePrice: string;
|
|
602
|
+
windowDays: string;
|
|
603
|
+
};
|
|
604
|
+
parameters: Parameter[];
|
|
605
|
+
examples: {
|
|
606
|
+
name: string;
|
|
607
|
+
description: string;
|
|
608
|
+
externalVariableDescription: string;
|
|
609
|
+
parameters: ({
|
|
610
|
+
key: string;
|
|
611
|
+
value: number;
|
|
612
|
+
} | {
|
|
613
|
+
key: string;
|
|
614
|
+
value: string;
|
|
615
|
+
})[];
|
|
616
|
+
}[];
|
|
617
|
+
blockId: number;
|
|
618
|
+
image: string;
|
|
619
|
+
};
|
|
620
|
+
};
|
|
589
621
|
USD3: {
|
|
590
622
|
description: string;
|
|
591
623
|
chains: number[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.617";
|
|
2
2
|
export declare function compareVersions(v1: string, v2: string): number;
|