otomato-sdk 1.5.56 → 1.5.58
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.
|
@@ -1268,6 +1268,14 @@ export const ACTIONS = {
|
|
|
1268
1268
|
"blockId": 100013,
|
|
1269
1269
|
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/swap.png"
|
|
1270
1270
|
}
|
|
1271
|
+
},
|
|
1272
|
+
"CONDITION": {
|
|
1273
|
+
"description": "Checks for a condition before proceeding",
|
|
1274
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/if.png",
|
|
1275
|
+
},
|
|
1276
|
+
"SPLIT": {
|
|
1277
|
+
"description": "Split a branch in multiple ones",
|
|
1278
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/if.png",
|
|
1271
1279
|
}
|
|
1272
1280
|
},
|
|
1273
1281
|
"NOTIFICATIONS": {
|
|
@@ -1276,7 +1284,7 @@ export const ACTIONS = {
|
|
|
1276
1284
|
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/email.png",
|
|
1277
1285
|
"SEND_EMAIL": {
|
|
1278
1286
|
"name": "Send email",
|
|
1279
|
-
"type":
|
|
1287
|
+
"type": 3,
|
|
1280
1288
|
"description": "Sends an email to the specified recipient",
|
|
1281
1289
|
"output": {
|
|
1282
1290
|
"message": "string"
|
|
@@ -60,7 +60,7 @@ const createETHFearAndGreedCapitalEfficientBuy = () => __awaiter(void 0, void 0,
|
|
|
60
60
|
odosAction.setChainId(chain);
|
|
61
61
|
odosAction.setParams("tokenIn", getTokenFromSymbol(chain, tokenIn).contractAddress);
|
|
62
62
|
odosAction.setParams("tokenOut", getTokenFromSymbol(chain, tokenOut).contractAddress);
|
|
63
|
-
odosAction.setParams("amount", ionicWithdraw.getParameterVariableName('amount'));
|
|
63
|
+
odosAction.setParams("amount", /*ionicWithdraw.getParameterVariableName('amount')*/ yield convertToTokenUnitsFromSymbol(1, chain, tokenIn));
|
|
64
64
|
odosAction.setPosition(400, 360);
|
|
65
65
|
const ionicDeposit = new Action(ACTIONS.LENDING.IONIC.DEPOSIT);
|
|
66
66
|
ionicDeposit.setChainId(chain);
|