otomato-sdk 2.0.7 → 2.0.8
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.
- package/dist/src/constants/Blocks.js +696 -79
- package/dist/src/constants/version.js +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/models/Note.js +6 -2
- package/dist/src/models/Workflow.js +2 -0
- package/dist/src/utils/helpers.js +4 -0
- package/dist/types/examples/compound-supply-trigger-and-supply-action.d.ts +1 -0
- package/dist/types/examples/compound-withdraw-trigger-and-withdraw-action.d.ts +1 -0
- package/dist/types/examples/create-workflow-with-notes.d.ts +1 -0
- package/dist/types/src/constants/Blocks.d.ts +260 -3
- package/dist/types/src/constants/version.d.ts +1 -1
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/models/Note.d.ts +6 -1
- package/package.json +1 -1
|
@@ -708,7 +708,7 @@ export const TRIGGERS = {
|
|
|
708
708
|
"type": "erc20",
|
|
709
709
|
"description": "The token you want to fetch the yield",
|
|
710
710
|
"mandatory": true,
|
|
711
|
-
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0x4200000000000000000000000000000000000006\"\n ],\n \"34443\": [\n \"0xf0F161fDA2712DB8b566946122a5af183995e2eD\",\n \"0xd988097fb8612cc24eeC14542bC03424c656005f\",\n \"0x2416092f143378750bb29b79eD961ab195CcEea5\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF\",\n \"0x80137510979822322193FC997d400D5A6C747bf7\",\n \"0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x59889b7021243dB5B1e065385F918316cD90D46c\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
711
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0xCfA3Ef56d303AE4fAabA0592388F19d7C3399FB4\",\n \"0xCb327b99fF831bF8223cCEd12B1338FF3aA322Ff\",\n \"0xCc7FF230365bD730eE4B352cC2492CEdAC49383e\",\n \"0xaB36452DbAC151bE02b16Ca17d8919826072f64a\",\n \"0xDBFeFD2e8460a6Ee4955A68582F85708BAEA60A3\",\n \"0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C\",\n \"0x7002458B1DF59EccB57387bC79fFc7C29E22e6f7\",\n \"0x04D5ddf5f3a8939889F11E97f8c4BB48317F1938\",\n \"0xd95ca61CE9aAF2143E81Ef5462C0c2325172E028\",\n \"0xe31eE12bDFDD0573D634124611e85338e2cBF0cF\",\n \"0x9B8Df6E244526ab5F6e6400d331DB28C8fdDdb55\",\n \"0xb0505e5a99abd03d94a1169e638B78EDfEd26ea4\"\n ],\n \"34443\": [\n \"0xf0F161fDA2712DB8b566946122a5af183995e2eD\",\n \"0xd988097fb8612cc24eeC14542bC03424c656005f\",\n \"0x2416092f143378750bb29b79eD961ab195CcEea5\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF\",\n \"0x80137510979822322193FC997d400D5A6C747bf7\",\n \"0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x59889b7021243dB5B1e065385F918316cD90D46c\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
712
712
|
"category": 0
|
|
713
713
|
},
|
|
714
714
|
{
|
|
@@ -775,7 +775,7 @@ export const TRIGGERS = {
|
|
|
775
775
|
"type": "erc20",
|
|
776
776
|
"description": "The token you want to fetch the borrow rate for",
|
|
777
777
|
"mandatory": true,
|
|
778
|
-
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0x4200000000000000000000000000000000000006\"\n ],\n \"34443\": [\n \"0xf0F161fDA2712DB8b566946122a5af183995e2eD\",\n \"0xd988097fb8612cc24eeC14542bC03424c656005f\",\n \"0x2416092f143378750bb29b79eD961ab195CcEea5\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF\",\n \"0x80137510979822322193FC997d400D5A6C747bf7\",\n \"0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x59889b7021243dB5B1e065385F918316cD90D46c\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
778
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0xCfA3Ef56d303AE4fAabA0592388F19d7C3399FB4\",\n \"0xCb327b99fF831bF8223cCEd12B1338FF3aA322Ff\",\n \"0xCc7FF230365bD730eE4B352cC2492CEdAC49383e\",\n \"0xaB36452DbAC151bE02b16Ca17d8919826072f64a\",\n \"0xDBFeFD2e8460a6Ee4955A68582F85708BAEA60A3\",\n \"0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C\",\n \"0x7002458B1DF59EccB57387bC79fFc7C29E22e6f7\",\n \"0x04D5ddf5f3a8939889F11E97f8c4BB48317F1938\",\n \"0xd95ca61CE9aAF2143E81Ef5462C0c2325172E028\",\n \"0xe31eE12bDFDD0573D634124611e85338e2cBF0cF\",\n \"0x9B8Df6E244526ab5F6e6400d331DB28C8fdDdb55\",\n \"0xb0505e5a99abd03d94a1169e638B78EDfEd26ea4\"\n ],\n \"34443\": [\n \"0xf0F161fDA2712DB8b566946122a5af183995e2eD\",\n \"0xd988097fb8612cc24eeC14542bC03424c656005f\",\n \"0x2416092f143378750bb29b79eD961ab195CcEea5\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF\",\n \"0x80137510979822322193FC997d400D5A6C747bf7\",\n \"0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x59889b7021243dB5B1e065385F918316cD90D46c\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
779
779
|
"category": 0
|
|
780
780
|
},
|
|
781
781
|
{
|
|
@@ -913,11 +913,11 @@ export const TRIGGERS = {
|
|
|
913
913
|
}
|
|
914
914
|
},
|
|
915
915
|
"AAVE": {
|
|
916
|
-
"description": "
|
|
916
|
+
"description": "A leading DeFi protocol enabling secure borrowing, lending, and yield generation across multiple assets.",
|
|
917
917
|
"chains": [
|
|
918
918
|
8453
|
|
919
919
|
],
|
|
920
|
-
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/aave.
|
|
920
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/aave.png",
|
|
921
921
|
"LENDING_RATE": {
|
|
922
922
|
"name": "Lending rate",
|
|
923
923
|
"description": "Get the lending rate of any asset on Aave",
|
|
@@ -937,7 +937,7 @@ export const TRIGGERS = {
|
|
|
937
937
|
"type": "erc20",
|
|
938
938
|
"description": "The token you want to fetch the lending rate",
|
|
939
939
|
"mandatory": true,
|
|
940
|
-
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n
|
|
940
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n\n const availableLendingTokens = {\n \"8453\": [\n \"0x4200000000000000000000000000000000000006\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA\"\n ]\n};\n return availableLendingTokens[env.parameters.chainId] || [];\n }",
|
|
941
941
|
"category": 0
|
|
942
942
|
},
|
|
943
943
|
{
|
|
@@ -958,8 +958,32 @@ export const TRIGGERS = {
|
|
|
958
958
|
"output": {
|
|
959
959
|
"lendingRate": "float"
|
|
960
960
|
},
|
|
961
|
+
"examples": [
|
|
962
|
+
{
|
|
963
|
+
"name": "USDC Lending Rate is above 5%",
|
|
964
|
+
"description": "USDC Lending Rate is above 5% on Base",
|
|
965
|
+
"parameters": [
|
|
966
|
+
{
|
|
967
|
+
"key": "chainId",
|
|
968
|
+
"value": 8453
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"key": "abiParams.asset",
|
|
972
|
+
"value": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
|
|
973
|
+
},
|
|
974
|
+
{
|
|
975
|
+
"key": "condition",
|
|
976
|
+
"value": "gt"
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"key": "comparisonValue",
|
|
980
|
+
"value": 5
|
|
981
|
+
}
|
|
982
|
+
]
|
|
983
|
+
}
|
|
984
|
+
],
|
|
961
985
|
"blockId": 19,
|
|
962
|
-
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/aave.
|
|
986
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/aave.png"
|
|
963
987
|
},
|
|
964
988
|
"BORROWING_RATES": {
|
|
965
989
|
"name": "Borrowing rate",
|
|
@@ -980,7 +1004,7 @@ export const TRIGGERS = {
|
|
|
980
1004
|
"type": "erc20",
|
|
981
1005
|
"description": "The token you want to fetch the borrow rate for",
|
|
982
1006
|
"mandatory": true,
|
|
983
|
-
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n
|
|
1007
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n\n const availableLendingTokens = {\n \"8453\": [\n \"0x4200000000000000000000000000000000000006\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA\"\n ]\n};\n return availableLendingTokens[env.parameters.chainId] || [];\n }",
|
|
984
1008
|
"category": 0
|
|
985
1009
|
},
|
|
986
1010
|
{
|
|
@@ -1001,20 +1025,44 @@ export const TRIGGERS = {
|
|
|
1001
1025
|
"output": {
|
|
1002
1026
|
"borrowingRate": "float"
|
|
1003
1027
|
},
|
|
1028
|
+
"examples": [
|
|
1029
|
+
{
|
|
1030
|
+
"name": "USDC Borrowing Rate is above 3%",
|
|
1031
|
+
"description": "USDC Borrowing Rate is above 3% on Base",
|
|
1032
|
+
"parameters": [
|
|
1033
|
+
{
|
|
1034
|
+
"key": "chainId",
|
|
1035
|
+
"value": 8453
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
"key": "abiParams.asset",
|
|
1039
|
+
"value": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
"key": "condition",
|
|
1043
|
+
"value": "gt"
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
"key": "comparisonValue",
|
|
1047
|
+
"value": 3
|
|
1048
|
+
}
|
|
1049
|
+
]
|
|
1050
|
+
}
|
|
1051
|
+
],
|
|
1004
1052
|
"blockId": 20,
|
|
1005
|
-
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/aave.
|
|
1053
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/aave.png"
|
|
1006
1054
|
}
|
|
1007
1055
|
},
|
|
1008
1056
|
"MOONWELL": {
|
|
1009
|
-
"description": "
|
|
1057
|
+
"description": "An advanced lending and borrowing platform focused on scalable, fast blockchain networks for optimal performance.",
|
|
1010
1058
|
"chains": [
|
|
1011
1059
|
34443,
|
|
1012
1060
|
8453
|
|
1013
1061
|
],
|
|
1014
|
-
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/moonwell.
|
|
1062
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/moonwell.png",
|
|
1015
1063
|
"LENDING_RATE": {
|
|
1016
1064
|
"name": "Lending rate",
|
|
1017
|
-
"description": "Get the lending rate of
|
|
1065
|
+
"description": "Get the lending rate of an asset on Moonwell",
|
|
1018
1066
|
"prototype": "moonwellLendingRate",
|
|
1019
1067
|
"type": 1,
|
|
1020
1068
|
"method": "function getMarketInfo(address token) external view returns ((address market, bool isListed, uint256 borrowCap, uint256 supplyCap, bool mintPaused, bool borrowPaused, uint256 collateralFactor, uint256 underlyingPrice, uint256 totalSupply, uint256 totalBorrows, uint256 totalReserves, uint256 cash, uint256 exchangeRate, uint256 borrowIndex, uint256 reserveFactor, uint256 borrowRate, uint256 supplyRate, (address token, uint256 supplyIncentivesPerSec, uint256 borrowIncentivesPerSec)[] incentives))",
|
|
@@ -1027,19 +1075,11 @@ export const TRIGGERS = {
|
|
|
1027
1075
|
"category": 0
|
|
1028
1076
|
},
|
|
1029
1077
|
{
|
|
1030
|
-
"key": "
|
|
1031
|
-
"type": "erc20",
|
|
1032
|
-
"description": "The token you want to fetch the yield",
|
|
1033
|
-
"mandatory": true,
|
|
1034
|
-
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
1035
|
-
"category": 0
|
|
1036
|
-
},
|
|
1037
|
-
{
|
|
1038
|
-
"key": "abiParams.token",
|
|
1078
|
+
"key": "asset",
|
|
1039
1079
|
"type": "erc20",
|
|
1040
1080
|
"description": "The token you want to fetch the yield",
|
|
1041
1081
|
"mandatory": true,
|
|
1042
|
-
"
|
|
1082
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0xB6fe221Fe9EeF5aBa221c348bA20A1Bf5e73624c\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42\",\n \"0xEDfa23602D0EC14714057867A78d01e94176BEA0\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
1043
1083
|
"category": 0
|
|
1044
1084
|
},
|
|
1045
1085
|
{
|
|
@@ -1058,10 +1098,39 @@ export const TRIGGERS = {
|
|
|
1058
1098
|
},
|
|
1059
1099
|
],
|
|
1060
1100
|
"output": {
|
|
1061
|
-
"lendingRate": "float"
|
|
1101
|
+
"lendingRate": "float",
|
|
1102
|
+
"incentives": "[]",
|
|
1103
|
+
"underlyingPrice": "uint256",
|
|
1104
|
+
"totalSupply": "uint256",
|
|
1105
|
+
"supplyRate": "uint256",
|
|
1106
|
+
"exchangeRate": "uint256"
|
|
1062
1107
|
},
|
|
1108
|
+
"examples": [
|
|
1109
|
+
{
|
|
1110
|
+
"name": "USDC Lending Rate is above 5%",
|
|
1111
|
+
"description": "USDC Lending Rate is above 5%",
|
|
1112
|
+
"parameters": [
|
|
1113
|
+
{
|
|
1114
|
+
"key": "chainId",
|
|
1115
|
+
"value": 8453
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
"key": "asset",
|
|
1119
|
+
"value": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
"key": "condition",
|
|
1123
|
+
"value": "gt"
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
"key": "comparisonValue",
|
|
1127
|
+
"value": 5
|
|
1128
|
+
}
|
|
1129
|
+
]
|
|
1130
|
+
}
|
|
1131
|
+
],
|
|
1063
1132
|
"blockId": 21,
|
|
1064
|
-
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/moonwell.
|
|
1133
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/moonwell.png"
|
|
1065
1134
|
},
|
|
1066
1135
|
"BORROWING_RATES": {
|
|
1067
1136
|
"name": "Borrowing rate",
|
|
@@ -1078,21 +1147,174 @@ export const TRIGGERS = {
|
|
|
1078
1147
|
"category": 0
|
|
1079
1148
|
},
|
|
1080
1149
|
{
|
|
1081
|
-
"key": "
|
|
1150
|
+
"key": "asset",
|
|
1082
1151
|
"type": "erc20",
|
|
1083
1152
|
"description": "The token you want to fetch the borrow rate for",
|
|
1084
1153
|
"mandatory": true,
|
|
1085
|
-
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
1154
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0xB6fe221Fe9EeF5aBa221c348bA20A1Bf5e73624c\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42\",\n \"0xEDfa23602D0EC14714057867A78d01e94176BEA0\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
1155
|
+
"category": 0
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
"key": "condition",
|
|
1159
|
+
"type": "logic_operator",
|
|
1160
|
+
"description": "Logic operator used for the comparison: <, >, <=, >=, ==, ...",
|
|
1161
|
+
"mandatory": true,
|
|
1162
|
+
"category": 0
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
"key": "comparisonValue",
|
|
1166
|
+
"type": "float",
|
|
1167
|
+
"description": "The value to compare to",
|
|
1168
|
+
"mandatory": true,
|
|
1169
|
+
"category": 0
|
|
1170
|
+
},
|
|
1171
|
+
],
|
|
1172
|
+
"output": {
|
|
1173
|
+
"collateralFactor": "uint256",
|
|
1174
|
+
"borrowingRate": "float",
|
|
1175
|
+
"incentives": "[]",
|
|
1176
|
+
"underlyingPrice": "uint256",
|
|
1177
|
+
"totalBorrows": "uint256",
|
|
1178
|
+
"borrowRate": "uint256"
|
|
1179
|
+
},
|
|
1180
|
+
"examples": [
|
|
1181
|
+
{
|
|
1182
|
+
"name": "USDC Borrowing Rate is above 3%",
|
|
1183
|
+
"description": "USDC Borrowing Rate is above 3%",
|
|
1184
|
+
"parameters": [
|
|
1185
|
+
{
|
|
1186
|
+
"key": "chainId",
|
|
1187
|
+
"value": 8453
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
"key": "asset",
|
|
1191
|
+
"value": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
"key": "condition",
|
|
1195
|
+
"value": "gt"
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
"key": "comparisonValue",
|
|
1199
|
+
"value": 3
|
|
1200
|
+
}
|
|
1201
|
+
]
|
|
1202
|
+
}
|
|
1203
|
+
],
|
|
1204
|
+
"blockId": 22,
|
|
1205
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/moonwell.png"
|
|
1206
|
+
}
|
|
1207
|
+
},
|
|
1208
|
+
"COMPOUND": {
|
|
1209
|
+
"description": "Compound is an algorithmic, autonomous interest rate protocol built for developers, to unlock a universe of open financial applications.",
|
|
1210
|
+
"chains": [
|
|
1211
|
+
8453
|
|
1212
|
+
],
|
|
1213
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/compound.png",
|
|
1214
|
+
"LENDING_RATE": {
|
|
1215
|
+
"name": "Lending rate",
|
|
1216
|
+
"description": "Get the lending rate of any asset on Compound",
|
|
1217
|
+
"prototype": "compoundLendingRate",
|
|
1218
|
+
"type": 1,
|
|
1219
|
+
"method": "function getSupplyRate(uint utilization) public view returns ((uint256 supplyRate))",
|
|
1220
|
+
"parameters": [
|
|
1221
|
+
{
|
|
1222
|
+
"key": "chainId",
|
|
1223
|
+
"type": "chainId",
|
|
1224
|
+
"description": "Chain ID of the network",
|
|
1225
|
+
"mandatory": true,
|
|
1226
|
+
"category": 0
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
"key": "token",
|
|
1230
|
+
"type": "erc20",
|
|
1231
|
+
"description": "The token you want to fetch the yield",
|
|
1232
|
+
"mandatory": true,
|
|
1233
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
1234
|
+
"category": 0
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
"key": "abiParams.utilization",
|
|
1238
|
+
"type": "uint32",
|
|
1239
|
+
"description": "The utilization",
|
|
1240
|
+
"category": 0,
|
|
1241
|
+
"hideInUI": true
|
|
1242
|
+
},
|
|
1243
|
+
{
|
|
1244
|
+
"key": "condition",
|
|
1245
|
+
"type": "logic_operator",
|
|
1246
|
+
"description": "Logic operator used for the comparison: <, >, <=, >=, ==, ...",
|
|
1247
|
+
"mandatory": true,
|
|
1248
|
+
"category": 0
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
"key": "comparisonValue",
|
|
1252
|
+
"type": "float",
|
|
1253
|
+
"description": "The value to compare to",
|
|
1254
|
+
"mandatory": true,
|
|
1255
|
+
"category": 0
|
|
1256
|
+
},
|
|
1257
|
+
],
|
|
1258
|
+
"examples": [
|
|
1259
|
+
{
|
|
1260
|
+
"name": "USDC Yield is above 5%",
|
|
1261
|
+
"description": "Gets triggered when USDC yield rises above 5% on Compound",
|
|
1262
|
+
"parameters": [
|
|
1263
|
+
{
|
|
1264
|
+
"key": "chainId",
|
|
1265
|
+
"value": 8453
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
"key": "token",
|
|
1269
|
+
"value": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
"key": "condition",
|
|
1273
|
+
"value": "gt"
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
"key": "comparisonValue",
|
|
1277
|
+
"value": 5
|
|
1278
|
+
}
|
|
1279
|
+
]
|
|
1280
|
+
}
|
|
1281
|
+
],
|
|
1282
|
+
"output": {
|
|
1283
|
+
"lendingRate": "float",
|
|
1284
|
+
"supplyRate": "uint256"
|
|
1285
|
+
},
|
|
1286
|
+
"blockId": 23,
|
|
1287
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/compound.png"
|
|
1288
|
+
},
|
|
1289
|
+
"BORROWING_RATES": {
|
|
1290
|
+
"name": "Borrowing rate",
|
|
1291
|
+
"description": "Get the borrowing rate of any asset on Compound",
|
|
1292
|
+
"type": 1,
|
|
1293
|
+
"prototype": "compoundBorrowingRate",
|
|
1294
|
+
"method": "function getBorrowRate(uint utilization) public view returns ((uint256 borrowRate))",
|
|
1295
|
+
"parameters": [
|
|
1296
|
+
{
|
|
1297
|
+
"key": "chainId",
|
|
1298
|
+
"type": "chainId",
|
|
1299
|
+
"description": "Chain ID of the network",
|
|
1300
|
+
"mandatory": true,
|
|
1086
1301
|
"category": 0
|
|
1087
1302
|
},
|
|
1088
1303
|
{
|
|
1089
|
-
"key": "
|
|
1304
|
+
"key": "token",
|
|
1090
1305
|
"type": "erc20",
|
|
1091
1306
|
"description": "The token you want to fetch the borrow rate for",
|
|
1092
1307
|
"mandatory": true,
|
|
1093
|
-
"
|
|
1308
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
1094
1309
|
"category": 0
|
|
1095
1310
|
},
|
|
1311
|
+
{
|
|
1312
|
+
"key": "abiParams.utilization",
|
|
1313
|
+
"type": "uint32",
|
|
1314
|
+
"description": "The utilization",
|
|
1315
|
+
"category": 0,
|
|
1316
|
+
"hideInUI": true
|
|
1317
|
+
},
|
|
1096
1318
|
{
|
|
1097
1319
|
"key": "condition",
|
|
1098
1320
|
"type": "logic_operator",
|
|
@@ -1108,11 +1330,36 @@ export const TRIGGERS = {
|
|
|
1108
1330
|
"category": 0
|
|
1109
1331
|
},
|
|
1110
1332
|
],
|
|
1333
|
+
"examples": [
|
|
1334
|
+
{
|
|
1335
|
+
"name": "USDC Borrowing Rate is below 10%",
|
|
1336
|
+
"description": "Gets triggered when the USDC borrowing rate falls below 10% on Compound",
|
|
1337
|
+
"parameters": [
|
|
1338
|
+
{
|
|
1339
|
+
"key": "chainId",
|
|
1340
|
+
"value": 8453
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
"key": "token",
|
|
1344
|
+
"value": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
"key": "condition",
|
|
1348
|
+
"value": "lt"
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
"key": "comparisonValue",
|
|
1352
|
+
"value": 10
|
|
1353
|
+
}
|
|
1354
|
+
]
|
|
1355
|
+
}
|
|
1356
|
+
],
|
|
1111
1357
|
"output": {
|
|
1112
|
-
"borrowingRate": "float"
|
|
1358
|
+
"borrowingRate": "float",
|
|
1359
|
+
"borrowRate": "uint256"
|
|
1113
1360
|
},
|
|
1114
|
-
"blockId":
|
|
1115
|
-
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/
|
|
1361
|
+
"blockId": 24,
|
|
1362
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/compound.png"
|
|
1116
1363
|
}
|
|
1117
1364
|
}
|
|
1118
1365
|
},
|
|
@@ -1121,14 +1368,14 @@ export const TRIGGERS = {
|
|
|
1121
1368
|
"description": "Smart Order Routing across multiple blockchain protocols, 700+ Liquidity Sources and thousands of token pairs, delivering ultimate savings to users",
|
|
1122
1369
|
"chains": [
|
|
1123
1370
|
34443,
|
|
1124
|
-
1
|
|
1371
|
+
1,
|
|
1372
|
+
8453
|
|
1125
1373
|
],
|
|
1126
1374
|
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/odos.png",
|
|
1127
1375
|
"SWAP": {
|
|
1128
1376
|
"name": "Odos Swap",
|
|
1129
1377
|
"description": "Swap on Odos",
|
|
1130
1378
|
"type": 0,
|
|
1131
|
-
"contractAddress": "0x7E15EB462cdc67Cf92Af1f7102465a8F8c784874",
|
|
1132
1379
|
"output": {
|
|
1133
1380
|
"sender": "address",
|
|
1134
1381
|
"inputAmount": "uint256",
|
|
@@ -1505,7 +1752,7 @@ export const ACTIONS = {
|
|
|
1505
1752
|
{
|
|
1506
1753
|
"key": "time",
|
|
1507
1754
|
"type": "string",
|
|
1508
|
-
"description": "The time to wait (in
|
|
1755
|
+
"description": "The time to wait (in milliseconds)",
|
|
1509
1756
|
"mandatory": true,
|
|
1510
1757
|
"category": 0
|
|
1511
1758
|
},
|
|
@@ -1567,12 +1814,11 @@ export const ACTIONS = {
|
|
|
1567
1814
|
"name": "Swap",
|
|
1568
1815
|
"description": "Swap two assets using the best market rates accross multiple pools",
|
|
1569
1816
|
"type": 1,
|
|
1570
|
-
"contractAddress": "0x7E15EB462cdc67Cf92Af1f7102465a8F8c784874",
|
|
1571
1817
|
"requiredApprovals": [
|
|
1572
1818
|
{
|
|
1573
1819
|
"address": "{{parameters.tokenIn}}",
|
|
1574
1820
|
"amount": "{{parameters.amount}}",
|
|
1575
|
-
"to": "
|
|
1821
|
+
"to": "{{before.contractAddress}}"
|
|
1576
1822
|
}
|
|
1577
1823
|
],
|
|
1578
1824
|
"checks": [
|
|
@@ -1678,7 +1924,7 @@ export const ACTIONS = {
|
|
|
1678
1924
|
],
|
|
1679
1925
|
"permissions": {
|
|
1680
1926
|
"approvedTargets": [
|
|
1681
|
-
"
|
|
1927
|
+
"{{before.contractAddress}}",
|
|
1682
1928
|
"{{parameters.tokenIn}}"
|
|
1683
1929
|
],
|
|
1684
1930
|
"label": [
|
|
@@ -1998,7 +2244,7 @@ export const ACTIONS = {
|
|
|
1998
2244
|
"type": "erc20",
|
|
1999
2245
|
"description": "The token to deposit",
|
|
2000
2246
|
"mandatory": true,
|
|
2001
|
-
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0x4200000000000000000000000000000000000006\"\n ],\n \"34443\": [\n \"0xf0F161fDA2712DB8b566946122a5af183995e2eD\",\n \"0xd988097fb8612cc24eeC14542bC03424c656005f\",\n \"0x2416092f143378750bb29b79eD961ab195CcEea5\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF\",\n \"0x80137510979822322193FC997d400D5A6C747bf7\",\n \"0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x59889b7021243dB5B1e065385F918316cD90D46c\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
2247
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0xCfA3Ef56d303AE4fAabA0592388F19d7C3399FB4\",\n \"0xCb327b99fF831bF8223cCEd12B1338FF3aA322Ff\",\n \"0xCc7FF230365bD730eE4B352cC2492CEdAC49383e\",\n \"0xaB36452DbAC151bE02b16Ca17d8919826072f64a\",\n \"0xDBFeFD2e8460a6Ee4955A68582F85708BAEA60A3\",\n \"0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C\",\n \"0x7002458B1DF59EccB57387bC79fFc7C29E22e6f7\",\n \"0x04D5ddf5f3a8939889F11E97f8c4BB48317F1938\",\n \"0xd95ca61CE9aAF2143E81Ef5462C0c2325172E028\",\n \"0xe31eE12bDFDD0573D634124611e85338e2cBF0cF\",\n \"0x9B8Df6E244526ab5F6e6400d331DB28C8fdDdb55\",\n \"0xb0505e5a99abd03d94a1169e638B78EDfEd26ea4\"\n ],\n \"34443\": [\n \"0xf0F161fDA2712DB8b566946122a5af183995e2eD\",\n \"0xd988097fb8612cc24eeC14542bC03424c656005f\",\n \"0x2416092f143378750bb29b79eD961ab195CcEea5\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF\",\n \"0x80137510979822322193FC997d400D5A6C747bf7\",\n \"0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x59889b7021243dB5B1e065385F918316cD90D46c\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
2002
2248
|
"category": 0
|
|
2003
2249
|
},
|
|
2004
2250
|
{
|
|
@@ -2101,7 +2347,7 @@ export const ACTIONS = {
|
|
|
2101
2347
|
"type": "erc20",
|
|
2102
2348
|
"description": "The token to withdraw",
|
|
2103
2349
|
"mandatory": true,
|
|
2104
|
-
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0x4200000000000000000000000000000000000006\"\n ],\n \"34443\": [\n \"0xf0F161fDA2712DB8b566946122a5af183995e2eD\",\n \"0xd988097fb8612cc24eeC14542bC03424c656005f\",\n \"0x2416092f143378750bb29b79eD961ab195CcEea5\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF\",\n \"0x80137510979822322193FC997d400D5A6C747bf7\",\n \"0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x59889b7021243dB5B1e065385F918316cD90D46c\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
2350
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0xCfA3Ef56d303AE4fAabA0592388F19d7C3399FB4\",\n \"0xCb327b99fF831bF8223cCEd12B1338FF3aA322Ff\",\n \"0xCc7FF230365bD730eE4B352cC2492CEdAC49383e\",\n \"0xaB36452DbAC151bE02b16Ca17d8919826072f64a\",\n \"0xDBFeFD2e8460a6Ee4955A68582F85708BAEA60A3\",\n \"0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C\",\n \"0x7002458B1DF59EccB57387bC79fFc7C29E22e6f7\",\n \"0x04D5ddf5f3a8939889F11E97f8c4BB48317F1938\",\n \"0xd95ca61CE9aAF2143E81Ef5462C0c2325172E028\",\n \"0xe31eE12bDFDD0573D634124611e85338e2cBF0cF\",\n \"0x9B8Df6E244526ab5F6e6400d331DB28C8fdDdb55\",\n \"0xb0505e5a99abd03d94a1169e638B78EDfEd26ea4\"\n ],\n \"34443\": [\n \"0xf0F161fDA2712DB8b566946122a5af183995e2eD\",\n \"0xd988097fb8612cc24eeC14542bC03424c656005f\",\n \"0x2416092f143378750bb29b79eD961ab195CcEea5\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF\",\n \"0x80137510979822322193FC997d400D5A6C747bf7\",\n \"0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x59889b7021243dB5B1e065385F918316cD90D46c\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
2105
2351
|
"category": 0
|
|
2106
2352
|
},
|
|
2107
2353
|
{
|
|
@@ -2134,6 +2380,20 @@ export const ACTIONS = {
|
|
|
2134
2380
|
"value": "0xf0F161fDA2712DB8b566946122a5af183995e2eD"
|
|
2135
2381
|
}
|
|
2136
2382
|
]
|
|
2383
|
+
},
|
|
2384
|
+
{
|
|
2385
|
+
"name": "Withdraw all",
|
|
2386
|
+
"description": "Withdraw all supplied amount of an asset",
|
|
2387
|
+
"parameters": [
|
|
2388
|
+
{
|
|
2389
|
+
"key": "chainId",
|
|
2390
|
+
"value": 8453
|
|
2391
|
+
},
|
|
2392
|
+
{
|
|
2393
|
+
"key": "abiParams.amount",
|
|
2394
|
+
"value": "115792089237316195423570985008687907853269984665640564039457584007913129639935n"
|
|
2395
|
+
}
|
|
2396
|
+
]
|
|
2137
2397
|
}
|
|
2138
2398
|
],
|
|
2139
2399
|
"requiredApprovals": [],
|
|
@@ -2180,7 +2440,7 @@ export const ACTIONS = {
|
|
|
2180
2440
|
"type": "erc20",
|
|
2181
2441
|
"description": "The token to borrow",
|
|
2182
2442
|
"mandatory": true,
|
|
2183
|
-
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0x4200000000000000000000000000000000000006\"\n ],\n \"34443\": [\n \"0xf0F161fDA2712DB8b566946122a5af183995e2eD\",\n \"0xd988097fb8612cc24eeC14542bC03424c656005f\",\n \"0x2416092f143378750bb29b79eD961ab195CcEea5\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF\",\n \"0x80137510979822322193FC997d400D5A6C747bf7\",\n \"0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x59889b7021243dB5B1e065385F918316cD90D46c\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
2443
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0xCfA3Ef56d303AE4fAabA0592388F19d7C3399FB4\",\n \"0xCb327b99fF831bF8223cCEd12B1338FF3aA322Ff\",\n \"0xCc7FF230365bD730eE4B352cC2492CEdAC49383e\",\n \"0xaB36452DbAC151bE02b16Ca17d8919826072f64a\",\n \"0xDBFeFD2e8460a6Ee4955A68582F85708BAEA60A3\",\n \"0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C\",\n \"0x7002458B1DF59EccB57387bC79fFc7C29E22e6f7\",\n \"0x04D5ddf5f3a8939889F11E97f8c4BB48317F1938\",\n \"0xd95ca61CE9aAF2143E81Ef5462C0c2325172E028\",\n \"0xe31eE12bDFDD0573D634124611e85338e2cBF0cF\",\n \"0x9B8Df6E244526ab5F6e6400d331DB28C8fdDdb55\",\n \"0xb0505e5a99abd03d94a1169e638B78EDfEd26ea4\"\n ],\n \"34443\": [\n \"0xf0F161fDA2712DB8b566946122a5af183995e2eD\",\n \"0xd988097fb8612cc24eeC14542bC03424c656005f\",\n \"0x2416092f143378750bb29b79eD961ab195CcEea5\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF\",\n \"0x80137510979822322193FC997d400D5A6C747bf7\",\n \"0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x59889b7021243dB5B1e065385F918316cD90D46c\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
2184
2444
|
"category": 0
|
|
2185
2445
|
},
|
|
2186
2446
|
{
|
|
@@ -2259,7 +2519,7 @@ export const ACTIONS = {
|
|
|
2259
2519
|
"type": "erc20",
|
|
2260
2520
|
"description": "The token to repay",
|
|
2261
2521
|
"mandatory": true,
|
|
2262
|
-
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0x4200000000000000000000000000000000000006\"\n ],\n \"34443\": [\n \"0xf0F161fDA2712DB8b566946122a5af183995e2eD\",\n \"0xd988097fb8612cc24eeC14542bC03424c656005f\",\n \"0x2416092f143378750bb29b79eD961ab195CcEea5\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF\",\n \"0x80137510979822322193FC997d400D5A6C747bf7\",\n \"0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x59889b7021243dB5B1e065385F918316cD90D46c\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
2522
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0xCfA3Ef56d303AE4fAabA0592388F19d7C3399FB4\",\n \"0xCb327b99fF831bF8223cCEd12B1338FF3aA322Ff\",\n \"0xCc7FF230365bD730eE4B352cC2492CEdAC49383e\",\n \"0xaB36452DbAC151bE02b16Ca17d8919826072f64a\",\n \"0xDBFeFD2e8460a6Ee4955A68582F85708BAEA60A3\",\n \"0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C\",\n \"0x7002458B1DF59EccB57387bC79fFc7C29E22e6f7\",\n \"0x04D5ddf5f3a8939889F11E97f8c4BB48317F1938\",\n \"0xd95ca61CE9aAF2143E81Ef5462C0c2325172E028\",\n \"0xe31eE12bDFDD0573D634124611e85338e2cBF0cF\",\n \"0x9B8Df6E244526ab5F6e6400d331DB28C8fdDdb55\",\n \"0xb0505e5a99abd03d94a1169e638B78EDfEd26ea4\"\n ],\n \"34443\": [\n \"0xf0F161fDA2712DB8b566946122a5af183995e2eD\",\n \"0xd988097fb8612cc24eeC14542bC03424c656005f\",\n \"0x2416092f143378750bb29b79eD961ab195CcEea5\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF\",\n \"0x80137510979822322193FC997d400D5A6C747bf7\",\n \"0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x59889b7021243dB5B1e065385F918316cD90D46c\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
2263
2523
|
"category": 0
|
|
2264
2524
|
},
|
|
2265
2525
|
{
|
|
@@ -2380,7 +2640,7 @@ export const ACTIONS = {
|
|
|
2380
2640
|
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/renzo.jpg"
|
|
2381
2641
|
},
|
|
2382
2642
|
"AAVE": {
|
|
2383
|
-
"description": "
|
|
2643
|
+
"description": "A leading DeFi protocol enabling secure borrowing, lending, and yield generation across multiple assets.",
|
|
2384
2644
|
"chains": [
|
|
2385
2645
|
8453,
|
|
2386
2646
|
534352
|
|
@@ -2404,7 +2664,7 @@ export const ACTIONS = {
|
|
|
2404
2664
|
"type": "erc20",
|
|
2405
2665
|
"description": "The token to supply",
|
|
2406
2666
|
"mandatory": true,
|
|
2407
|
-
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n
|
|
2667
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n\n const availableLendingTokens = {\n \"8453\": [\n \"0x4200000000000000000000000000000000000006\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA\"\n ]\n};\n return availableLendingTokens[env.parameters.chainId] || [];\n }",
|
|
2408
2668
|
"category": 0
|
|
2409
2669
|
},
|
|
2410
2670
|
{
|
|
@@ -2422,10 +2682,8 @@ export const ACTIONS = {
|
|
|
2422
2682
|
"key": "abiParams.onBehalfOf",
|
|
2423
2683
|
"type": "address",
|
|
2424
2684
|
"description": "The address to receive aTokens",
|
|
2425
|
-
"mandatory": true,
|
|
2426
2685
|
"hideInUI": true,
|
|
2427
|
-
"category": 1
|
|
2428
|
-
"value": "{{user.smartAccountAddress}}"
|
|
2686
|
+
"category": 1
|
|
2429
2687
|
},
|
|
2430
2688
|
{
|
|
2431
2689
|
"key": "abiParams.referralCode",
|
|
@@ -2441,7 +2699,7 @@ export const ACTIONS = {
|
|
|
2441
2699
|
{
|
|
2442
2700
|
"address": "{{parameters.abi.parameters.asset}}",
|
|
2443
2701
|
"amount": "{{parameters.abi.parameters.amount}}",
|
|
2444
|
-
"to": "
|
|
2702
|
+
"to": "{{before.contractAddress}}"
|
|
2445
2703
|
}
|
|
2446
2704
|
],
|
|
2447
2705
|
"checks": [
|
|
@@ -2452,11 +2710,40 @@ export const ACTIONS = {
|
|
|
2452
2710
|
"amount": "{{parameters.abi.parameters.amount}}"
|
|
2453
2711
|
}
|
|
2454
2712
|
],
|
|
2713
|
+
"examples": [
|
|
2714
|
+
{
|
|
2715
|
+
"name": "Supply USDC",
|
|
2716
|
+
"description": "Supply 100 USDC to Aave on the Base network",
|
|
2717
|
+
"parameters": [
|
|
2718
|
+
{
|
|
2719
|
+
"key": "chainId",
|
|
2720
|
+
"value": 8453
|
|
2721
|
+
},
|
|
2722
|
+
{
|
|
2723
|
+
"key": "abiParams.asset",
|
|
2724
|
+
"value": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
|
|
2725
|
+
},
|
|
2726
|
+
{
|
|
2727
|
+
"key": "abiParams.amount",
|
|
2728
|
+
"value": "100000000n"
|
|
2729
|
+
},
|
|
2730
|
+
{
|
|
2731
|
+
"key": "abiParams.onBehalfOf",
|
|
2732
|
+
"value": ""
|
|
2733
|
+
},
|
|
2734
|
+
{
|
|
2735
|
+
"key": "abiParams.referralCode",
|
|
2736
|
+
"value": 0
|
|
2737
|
+
}
|
|
2738
|
+
]
|
|
2739
|
+
}
|
|
2740
|
+
],
|
|
2455
2741
|
"output": {
|
|
2456
2742
|
"transactionHash": "string"
|
|
2457
2743
|
},
|
|
2458
2744
|
"permissions": {
|
|
2459
2745
|
"approvedTargets": [
|
|
2746
|
+
"{{parameters.abi.parameters.asset}}",
|
|
2460
2747
|
"{{before.contractAddress}}"
|
|
2461
2748
|
],
|
|
2462
2749
|
"label": [
|
|
@@ -2487,7 +2774,7 @@ export const ACTIONS = {
|
|
|
2487
2774
|
"type": "erc20",
|
|
2488
2775
|
"description": "The address of the asset to withdraw",
|
|
2489
2776
|
"mandatory": true,
|
|
2490
|
-
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n
|
|
2777
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n\n const availableLendingTokens = {\n \"8453\": [\n \"0x4200000000000000000000000000000000000006\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA\"\n ]\n};\n return availableLendingTokens[env.parameters.chainId] || [];\n }",
|
|
2491
2778
|
"category": 0
|
|
2492
2779
|
},
|
|
2493
2780
|
{
|
|
@@ -2506,37 +2793,86 @@ export const ACTIONS = {
|
|
|
2506
2793
|
"key": "abiParams.to",
|
|
2507
2794
|
"type": "address",
|
|
2508
2795
|
"description": "The address to receive the withdrawn asset",
|
|
2509
|
-
"mandatory": true,
|
|
2510
2796
|
"category": 0,
|
|
2511
|
-
"hideInUI": true
|
|
2512
|
-
"default": "{{user.smartAccountAddress}}"
|
|
2797
|
+
"hideInUI": true
|
|
2513
2798
|
},
|
|
2514
2799
|
],
|
|
2515
|
-
"
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2800
|
+
"examples": [
|
|
2801
|
+
{
|
|
2802
|
+
"name": "Withdraw USDC",
|
|
2803
|
+
"description": "Withdraw 10 USDC from Aave on the Base network",
|
|
2804
|
+
"parameters": [
|
|
2805
|
+
{
|
|
2806
|
+
"key": "chainId",
|
|
2807
|
+
"value": 8453
|
|
2808
|
+
},
|
|
2809
|
+
{
|
|
2810
|
+
"key": "abiParams.asset",
|
|
2811
|
+
"value": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
|
|
2812
|
+
},
|
|
2813
|
+
{
|
|
2814
|
+
"key": "abiParams.amount",
|
|
2815
|
+
"value": "10000000n"
|
|
2816
|
+
},
|
|
2817
|
+
{
|
|
2818
|
+
"key": "abiParams.to",
|
|
2819
|
+
"value": ""
|
|
2820
|
+
}
|
|
2821
|
+
]
|
|
2822
|
+
},
|
|
2823
|
+
{
|
|
2824
|
+
"name": "Withdraw all",
|
|
2825
|
+
"description": "Withdraw all supplied amount of an asset",
|
|
2826
|
+
"parameters": [
|
|
2827
|
+
{
|
|
2828
|
+
"key": "chainId",
|
|
2829
|
+
"value": 8453
|
|
2830
|
+
},
|
|
2831
|
+
{
|
|
2832
|
+
"key": "abiParams.amount",
|
|
2833
|
+
"value": "115792089237316195423570985008687907853269984665640564039457584007913129639935n"
|
|
2834
|
+
},
|
|
2835
|
+
{
|
|
2836
|
+
"key": "abiParams.to",
|
|
2837
|
+
"value": ""
|
|
2838
|
+
}
|
|
2839
|
+
]
|
|
2840
|
+
}
|
|
2841
|
+
],
|
|
2842
|
+
"output": {
|
|
2843
|
+
"transactionHash": "string",
|
|
2844
|
+
"amountWithdrawn": "uint256"
|
|
2845
|
+
},
|
|
2846
|
+
"permissions": {
|
|
2847
|
+
"approvedTargets": [
|
|
2848
|
+
"{{parameters.abi.parameters.asset}}",
|
|
2849
|
+
"{{before.contractAddress}}"
|
|
2850
|
+
],
|
|
2851
|
+
"label": [
|
|
2852
|
+
"Withdraw {{tokenSymbol({{parameters.chainId}}, {{parameters.abi.parameters.asset}})}} from Aave"
|
|
2853
|
+
],
|
|
2526
2854
|
"labelNotAuthorized": [
|
|
2527
2855
|
"Transfer {{tokenSymbol({{parameters.chainId}}, {{parameters.abi.parameters.asset}})}}"
|
|
2528
2856
|
]
|
|
2529
2857
|
},
|
|
2858
|
+
"checks": [
|
|
2859
|
+
{
|
|
2860
|
+
"type": 0,
|
|
2861
|
+
"chainId": "{{parameters.chainId}}",
|
|
2862
|
+
"contractAddress": "{{before.aaveToken}}",
|
|
2863
|
+
"amount": "{{parameters.abi.parameters.amount}}"
|
|
2864
|
+
}
|
|
2865
|
+
],
|
|
2530
2866
|
"blockId": 100021,
|
|
2531
2867
|
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/aave.png"
|
|
2532
2868
|
}
|
|
2533
2869
|
},
|
|
2534
2870
|
"MOONWELL": {
|
|
2535
|
-
"description": "
|
|
2871
|
+
"description": "An advanced lending and borrowing platform focused on scalable, fast blockchain networks for optimal performance.",
|
|
2536
2872
|
"chains": [
|
|
2537
2873
|
8453
|
|
2538
2874
|
],
|
|
2539
|
-
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/moonwell.
|
|
2875
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/moonwell.png",
|
|
2540
2876
|
"DEPOSIT": {
|
|
2541
2877
|
"name": "Lend asset",
|
|
2542
2878
|
"description": "Deposit token in any Moonwell lending pool",
|
|
@@ -2555,13 +2891,13 @@ export const ACTIONS = {
|
|
|
2555
2891
|
"type": "erc20",
|
|
2556
2892
|
"description": "The token to deposit",
|
|
2557
2893
|
"mandatory": true,
|
|
2558
|
-
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
2894
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0xB6fe221Fe9EeF5aBa221c348bA20A1Bf5e73624c\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42\",\n \"0xEDfa23602D0EC14714057867A78d01e94176BEA0\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
2559
2895
|
"category": 0
|
|
2560
2896
|
},
|
|
2561
2897
|
{
|
|
2562
2898
|
"key": "abiParams.amount",
|
|
2563
2899
|
"type": "uint256",
|
|
2564
|
-
"description": "Amount of
|
|
2900
|
+
"description": "Amount of token to deposit",
|
|
2565
2901
|
"mandatory": true,
|
|
2566
2902
|
"category": 0,
|
|
2567
2903
|
"erc20FormattedAmount": {
|
|
@@ -2602,7 +2938,7 @@ export const ACTIONS = {
|
|
|
2602
2938
|
},
|
|
2603
2939
|
"batchWith": [
|
|
2604
2940
|
{
|
|
2605
|
-
"id":
|
|
2941
|
+
"id": 100026,
|
|
2606
2942
|
"type": 1,
|
|
2607
2943
|
"conditions": [],
|
|
2608
2944
|
"parameters": {
|
|
@@ -2617,8 +2953,28 @@ export const ACTIONS = {
|
|
|
2617
2953
|
}
|
|
2618
2954
|
}
|
|
2619
2955
|
],
|
|
2956
|
+
"examples": [
|
|
2957
|
+
{
|
|
2958
|
+
"name": "Deposit 100 USDC",
|
|
2959
|
+
"description": "Lend 100 USDC on Moonwell on Base",
|
|
2960
|
+
"parameters": [
|
|
2961
|
+
{
|
|
2962
|
+
"key": "chainId",
|
|
2963
|
+
"value": 8453
|
|
2964
|
+
},
|
|
2965
|
+
{
|
|
2966
|
+
"key": "abiParams.amount",
|
|
2967
|
+
"value": "100000000n"
|
|
2968
|
+
},
|
|
2969
|
+
{
|
|
2970
|
+
"key": "tokenToDeposit",
|
|
2971
|
+
"value": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
|
|
2972
|
+
}
|
|
2973
|
+
]
|
|
2974
|
+
}
|
|
2975
|
+
],
|
|
2620
2976
|
"blockId": 100022,
|
|
2621
|
-
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/moonwell.
|
|
2977
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/moonwell.png"
|
|
2622
2978
|
},
|
|
2623
2979
|
"WITHDRAW": {
|
|
2624
2980
|
"name": "Withdraw asset",
|
|
@@ -2638,13 +2994,13 @@ export const ACTIONS = {
|
|
|
2638
2994
|
"type": "erc20",
|
|
2639
2995
|
"description": "The token to withdraw",
|
|
2640
2996
|
"mandatory": true,
|
|
2641
|
-
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
2997
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0xB6fe221Fe9EeF5aBa221c348bA20A1Bf5e73624c\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42\",\n \"0xEDfa23602D0EC14714057867A78d01e94176BEA0\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
2642
2998
|
"category": 0
|
|
2643
2999
|
},
|
|
2644
3000
|
{
|
|
2645
3001
|
"key": "abiParams.amount",
|
|
2646
3002
|
"type": "uint256",
|
|
2647
|
-
"description": "Amount of
|
|
3003
|
+
"description": "Amount of token to withdraw",
|
|
2648
3004
|
"mandatory": true,
|
|
2649
3005
|
"category": 0,
|
|
2650
3006
|
"erc20FormattedAmount": {
|
|
@@ -2653,6 +3009,40 @@ export const ACTIONS = {
|
|
|
2653
3009
|
}
|
|
2654
3010
|
},
|
|
2655
3011
|
],
|
|
3012
|
+
"examples": [
|
|
3013
|
+
{
|
|
3014
|
+
"name": "Withdraw 100 USDC",
|
|
3015
|
+
"description": "Withdraw 100 USDC on Moonwell on Base",
|
|
3016
|
+
"parameters": [
|
|
3017
|
+
{
|
|
3018
|
+
"key": "chainId",
|
|
3019
|
+
"value": 8453
|
|
3020
|
+
},
|
|
3021
|
+
{
|
|
3022
|
+
"key": "abiParams.amount",
|
|
3023
|
+
"value": "100000000n"
|
|
3024
|
+
},
|
|
3025
|
+
{
|
|
3026
|
+
"key": "tokenToWithdraw",
|
|
3027
|
+
"value": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
|
|
3028
|
+
}
|
|
3029
|
+
]
|
|
3030
|
+
},
|
|
3031
|
+
{
|
|
3032
|
+
"name": "Withdraw all",
|
|
3033
|
+
"description": "Withdraw all supplied amount of an asset",
|
|
3034
|
+
"parameters": [
|
|
3035
|
+
{
|
|
3036
|
+
"key": "chainId",
|
|
3037
|
+
"value": 8453
|
|
3038
|
+
},
|
|
3039
|
+
{
|
|
3040
|
+
"key": "abiParams.amount",
|
|
3041
|
+
"value": "115792089237316195423570985008687907853269984665640564039457584007913129639935n"
|
|
3042
|
+
}
|
|
3043
|
+
]
|
|
3044
|
+
}
|
|
3045
|
+
],
|
|
2656
3046
|
"requiredApprovals": [],
|
|
2657
3047
|
"output": {
|
|
2658
3048
|
"transactionHash": "string"
|
|
@@ -2677,7 +3067,7 @@ export const ACTIONS = {
|
|
|
2677
3067
|
}
|
|
2678
3068
|
],
|
|
2679
3069
|
"blockId": 100023,
|
|
2680
|
-
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/moonwell.
|
|
3070
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/moonwell.png"
|
|
2681
3071
|
},
|
|
2682
3072
|
"BORROW": {
|
|
2683
3073
|
"name": "Borrow asset",
|
|
@@ -2697,7 +3087,7 @@ export const ACTIONS = {
|
|
|
2697
3087
|
"type": "erc20",
|
|
2698
3088
|
"description": "The token to borrow",
|
|
2699
3089
|
"mandatory": true,
|
|
2700
|
-
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
3090
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0xB6fe221Fe9EeF5aBa221c348bA20A1Bf5e73624c\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42\",\n \"0xEDfa23602D0EC14714057867A78d01e94176BEA0\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
2701
3091
|
"category": 0
|
|
2702
3092
|
},
|
|
2703
3093
|
{
|
|
@@ -2712,6 +3102,26 @@ export const ACTIONS = {
|
|
|
2712
3102
|
}
|
|
2713
3103
|
},
|
|
2714
3104
|
],
|
|
3105
|
+
"examples": [
|
|
3106
|
+
{
|
|
3107
|
+
"name": "Borrow 100 USDC",
|
|
3108
|
+
"description": "Borrow 100 USDC on Moonwell on Base",
|
|
3109
|
+
"parameters": [
|
|
3110
|
+
{
|
|
3111
|
+
"key": "chainId",
|
|
3112
|
+
"value": 8453
|
|
3113
|
+
},
|
|
3114
|
+
{
|
|
3115
|
+
"key": "abiParams.amount",
|
|
3116
|
+
"value": "100000000n"
|
|
3117
|
+
},
|
|
3118
|
+
{
|
|
3119
|
+
"key": "tokenToBorrow",
|
|
3120
|
+
"value": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
|
|
3121
|
+
}
|
|
3122
|
+
]
|
|
3123
|
+
}
|
|
3124
|
+
],
|
|
2715
3125
|
"requiredApprovals": [],
|
|
2716
3126
|
"output": {
|
|
2717
3127
|
"transactionHash": "string"
|
|
@@ -2728,7 +3138,7 @@ export const ACTIONS = {
|
|
|
2728
3138
|
]
|
|
2729
3139
|
},
|
|
2730
3140
|
"blockId": 100024,
|
|
2731
|
-
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/moonwell.
|
|
3141
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/moonwell.png"
|
|
2732
3142
|
},
|
|
2733
3143
|
"REPAY": {
|
|
2734
3144
|
"name": "Repay asset",
|
|
@@ -2748,7 +3158,7 @@ export const ACTIONS = {
|
|
|
2748
3158
|
"type": "erc20",
|
|
2749
3159
|
"description": "The token to repay",
|
|
2750
3160
|
"mandatory": true,
|
|
2751
|
-
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
3161
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452\",\n \"0xB6fe221Fe9EeF5aBa221c348bA20A1Bf5e73624c\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42\",\n \"0xEDfa23602D0EC14714057867A78d01e94176BEA0\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
2752
3162
|
"category": 0
|
|
2753
3163
|
},
|
|
2754
3164
|
{
|
|
@@ -2771,6 +3181,26 @@ export const ACTIONS = {
|
|
|
2771
3181
|
"amount": "{{parameters.abi.parameters.amount}}"
|
|
2772
3182
|
}
|
|
2773
3183
|
],
|
|
3184
|
+
"examples": [
|
|
3185
|
+
{
|
|
3186
|
+
"name": "Repay 100 USDC",
|
|
3187
|
+
"description": "Repay 100 USDC on Moonwell on Base",
|
|
3188
|
+
"parameters": [
|
|
3189
|
+
{
|
|
3190
|
+
"key": "chainId",
|
|
3191
|
+
"value": 8453
|
|
3192
|
+
},
|
|
3193
|
+
{
|
|
3194
|
+
"key": "abiParams.amount",
|
|
3195
|
+
"value": "100000000n"
|
|
3196
|
+
},
|
|
3197
|
+
{
|
|
3198
|
+
"key": "tokenToRepay",
|
|
3199
|
+
"value": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
|
|
3200
|
+
}
|
|
3201
|
+
]
|
|
3202
|
+
}
|
|
3203
|
+
],
|
|
2774
3204
|
"requiredApprovals": [
|
|
2775
3205
|
{
|
|
2776
3206
|
"address": "{{parameters.tokenToRepay}}",
|
|
@@ -2793,7 +3223,7 @@ export const ACTIONS = {
|
|
|
2793
3223
|
]
|
|
2794
3224
|
},
|
|
2795
3225
|
"blockId": 100025,
|
|
2796
|
-
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/moonwell.
|
|
3226
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/moonwell.png"
|
|
2797
3227
|
},
|
|
2798
3228
|
"ENABLE_COLLATERAL": {
|
|
2799
3229
|
"showInUI": false,
|
|
@@ -2830,7 +3260,194 @@ export const ACTIONS = {
|
|
|
2830
3260
|
]
|
|
2831
3261
|
},
|
|
2832
3262
|
"blockId": 100026,
|
|
2833
|
-
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/moonwell.
|
|
3263
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/moonwell.png"
|
|
3264
|
+
}
|
|
3265
|
+
},
|
|
3266
|
+
"COMPOUND": {
|
|
3267
|
+
"description": "Compound is an algorithmic, autonomous interest rate protocol built for developers, to unlock a universe of open financial applications.",
|
|
3268
|
+
"chains": [
|
|
3269
|
+
8453
|
|
3270
|
+
],
|
|
3271
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/compound.png",
|
|
3272
|
+
"DEPOSIT": {
|
|
3273
|
+
"name": "Lend asset",
|
|
3274
|
+
"description": "Deposit token in any Compound lending pool",
|
|
3275
|
+
"type": 1,
|
|
3276
|
+
"method": "function supply(address asset, uint amount)",
|
|
3277
|
+
"parameters": [
|
|
3278
|
+
{
|
|
3279
|
+
"key": "chainId",
|
|
3280
|
+
"type": "chainId",
|
|
3281
|
+
"description": "Chain ID of the network",
|
|
3282
|
+
"mandatory": true,
|
|
3283
|
+
"category": 0
|
|
3284
|
+
},
|
|
3285
|
+
{
|
|
3286
|
+
"key": "abiParams.asset",
|
|
3287
|
+
"type": "erc20",
|
|
3288
|
+
"description": "The token to deposit",
|
|
3289
|
+
"mandatory": true,
|
|
3290
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
3291
|
+
"category": 0
|
|
3292
|
+
},
|
|
3293
|
+
{
|
|
3294
|
+
"key": "abiParams.amount",
|
|
3295
|
+
"type": "uint256",
|
|
3296
|
+
"description": "Amount of crypto to deposit",
|
|
3297
|
+
"mandatory": true,
|
|
3298
|
+
"category": 0,
|
|
3299
|
+
"erc20FormattedAmount": {
|
|
3300
|
+
"contractAddress": "{{parameters.abi.parameters.asset}}",
|
|
3301
|
+
"chain": "{{parameters.chainId}}"
|
|
3302
|
+
}
|
|
3303
|
+
},
|
|
3304
|
+
],
|
|
3305
|
+
"examples": [
|
|
3306
|
+
{
|
|
3307
|
+
"name": "Deposit 100 USDC",
|
|
3308
|
+
"description": "Lend 100 USDC on Compound on Base",
|
|
3309
|
+
"parameters": [
|
|
3310
|
+
{
|
|
3311
|
+
"key": "chainId",
|
|
3312
|
+
"value": 8453
|
|
3313
|
+
},
|
|
3314
|
+
{
|
|
3315
|
+
"key": "abiParams.amount",
|
|
3316
|
+
"value": "100000000n"
|
|
3317
|
+
},
|
|
3318
|
+
{
|
|
3319
|
+
"key": "abiParams.asset",
|
|
3320
|
+
"value": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
|
|
3321
|
+
}
|
|
3322
|
+
]
|
|
3323
|
+
}
|
|
3324
|
+
],
|
|
3325
|
+
"checks": [
|
|
3326
|
+
{
|
|
3327
|
+
"type": 0,
|
|
3328
|
+
"chainId": "{{parameters.chainId}}",
|
|
3329
|
+
"contractAddress": "{{parameters.abi.parameters.asset}}",
|
|
3330
|
+
"amount": "{{parameters.abi.parameters.amount}}"
|
|
3331
|
+
}
|
|
3332
|
+
],
|
|
3333
|
+
"requiredApprovals": [
|
|
3334
|
+
{
|
|
3335
|
+
"address": "{{parameters.abi.parameters.asset}}",
|
|
3336
|
+
"amount": "{{parameters.abi.parameters.amount}}",
|
|
3337
|
+
"to": "{{before.contractAddress}}"
|
|
3338
|
+
}
|
|
3339
|
+
],
|
|
3340
|
+
"output": {
|
|
3341
|
+
"transactionHash": "string"
|
|
3342
|
+
},
|
|
3343
|
+
"permissions": {
|
|
3344
|
+
"approvedTargets": [
|
|
3345
|
+
"{{parameters.abi.parameters.asset}}",
|
|
3346
|
+
"{{before.contractAddress}}"
|
|
3347
|
+
],
|
|
3348
|
+
"label": [
|
|
3349
|
+
"Deposit {{tokenSymbol({{parameters.chainId}}, {{parameters.abi.parameters.asset}})}} on COMPOUND"
|
|
3350
|
+
],
|
|
3351
|
+
"labelNotAuthorized": [
|
|
3352
|
+
"Transfer {{tokenSymbol({{parameters.chainId}}, {{parameters.abi.parameters.asset}})}}"
|
|
3353
|
+
]
|
|
3354
|
+
},
|
|
3355
|
+
"blockId": 100027,
|
|
3356
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/compound.png"
|
|
3357
|
+
},
|
|
3358
|
+
"WITHDRAW": {
|
|
3359
|
+
"name": "Withdraw asset",
|
|
3360
|
+
"description": "Withdraw token deposited in any lending pool",
|
|
3361
|
+
"type": 1,
|
|
3362
|
+
"method": "function withdraw(address asset, uint amount)",
|
|
3363
|
+
"parameters": [
|
|
3364
|
+
{
|
|
3365
|
+
"key": "chainId",
|
|
3366
|
+
"type": "chainId",
|
|
3367
|
+
"description": "Chain ID of the network",
|
|
3368
|
+
"mandatory": true,
|
|
3369
|
+
"category": 0
|
|
3370
|
+
},
|
|
3371
|
+
{
|
|
3372
|
+
"key": "abiParams.asset",
|
|
3373
|
+
"type": "erc20",
|
|
3374
|
+
"description": "The token to withdraw",
|
|
3375
|
+
"mandatory": true,
|
|
3376
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n \n const availableTokens = {\n \"8453\": [\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA\"\n ]\n};\n const chainId = env.parameters.chainId;\n return availableTokens[chainId] || [];\n }",
|
|
3377
|
+
"category": 0
|
|
3378
|
+
},
|
|
3379
|
+
{
|
|
3380
|
+
"key": "abiParams.amount",
|
|
3381
|
+
"type": "uint256",
|
|
3382
|
+
"description": "Amount of crypto to withdraw",
|
|
3383
|
+
"mandatory": true,
|
|
3384
|
+
"category": 0,
|
|
3385
|
+
"erc20FormattedAmount": {
|
|
3386
|
+
"contractAddress": "{{parameters.abi.parameters.asset}}",
|
|
3387
|
+
"chain": "{{parameters.chainId}}"
|
|
3388
|
+
}
|
|
3389
|
+
},
|
|
3390
|
+
],
|
|
3391
|
+
"checks": [
|
|
3392
|
+
{
|
|
3393
|
+
"type": 0,
|
|
3394
|
+
"chainId": "{{parameters.chainId}}",
|
|
3395
|
+
"contractAddress": "{{before.contractAddress}}",
|
|
3396
|
+
"amount": "{{parameters.abi.parameters.amount}}"
|
|
3397
|
+
}
|
|
3398
|
+
],
|
|
3399
|
+
"examples": [
|
|
3400
|
+
{
|
|
3401
|
+
"name": "Withdraw 100 USDC",
|
|
3402
|
+
"description": "Withdraw 100 USDC on Compound on Base",
|
|
3403
|
+
"parameters": [
|
|
3404
|
+
{
|
|
3405
|
+
"key": "chainId",
|
|
3406
|
+
"value": 8453
|
|
3407
|
+
},
|
|
3408
|
+
{
|
|
3409
|
+
"key": "abiParams.amount",
|
|
3410
|
+
"value": "100000000n"
|
|
3411
|
+
},
|
|
3412
|
+
{
|
|
3413
|
+
"key": "abiParams.asset",
|
|
3414
|
+
"value": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
|
|
3415
|
+
}
|
|
3416
|
+
]
|
|
3417
|
+
},
|
|
3418
|
+
{
|
|
3419
|
+
"name": "Withdraw all",
|
|
3420
|
+
"description": "Withdraw all supplied amount of an asset",
|
|
3421
|
+
"parameters": [
|
|
3422
|
+
{
|
|
3423
|
+
"key": "chainId",
|
|
3424
|
+
"value": 8453
|
|
3425
|
+
},
|
|
3426
|
+
{
|
|
3427
|
+
"key": "abiParams.amount",
|
|
3428
|
+
"value": "115792089237316195423570985008687907853269984665640564039457584007913129639935n"
|
|
3429
|
+
}
|
|
3430
|
+
]
|
|
3431
|
+
}
|
|
3432
|
+
],
|
|
3433
|
+
"requiredApprovals": [],
|
|
3434
|
+
"output": {
|
|
3435
|
+
"transactionHash": "string"
|
|
3436
|
+
},
|
|
3437
|
+
"permissions": {
|
|
3438
|
+
"approvedTargets": [
|
|
3439
|
+
"{{parameters.abi.parameters.asset}}",
|
|
3440
|
+
"{{before.contractAddress}}"
|
|
3441
|
+
],
|
|
3442
|
+
"label": [
|
|
3443
|
+
"Withdraw {{tokenSymbol({{parameters.chainId}}, {{parameters.abi.parameters.asset}})}} from COMPOUND"
|
|
3444
|
+
],
|
|
3445
|
+
"labelNotAuthorized": [
|
|
3446
|
+
"Transfer {{tokenSymbol({{parameters.chainId}}, {{parameters.abi.parameters.asset}})}}"
|
|
3447
|
+
]
|
|
3448
|
+
},
|
|
3449
|
+
"blockId": 100028,
|
|
3450
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/compound.png"
|
|
2834
3451
|
}
|
|
2835
3452
|
}
|
|
2836
3453
|
},
|
|
@@ -2838,19 +3455,19 @@ export const ACTIONS = {
|
|
|
2838
3455
|
"ODOS": {
|
|
2839
3456
|
"description": "Smart Order Routing across multiple blockchain protocols, 700+ Liquidity Sources and thousands of token pairs, delivering ultimate savings to users",
|
|
2840
3457
|
"chains": [
|
|
2841
|
-
34443
|
|
3458
|
+
34443,
|
|
3459
|
+
8453
|
|
2842
3460
|
],
|
|
2843
3461
|
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/odos.png",
|
|
2844
3462
|
"SWAP": {
|
|
2845
3463
|
"name": "Odos swap",
|
|
2846
3464
|
"description": "Swap on Odos to get the best market rates accross multiple pools",
|
|
2847
3465
|
"type": 1,
|
|
2848
|
-
"contractAddress": "0x7E15EB462cdc67Cf92Af1f7102465a8F8c784874",
|
|
2849
3466
|
"requiredApprovals": [
|
|
2850
3467
|
{
|
|
2851
3468
|
"address": "{{parameters.tokenIn}}",
|
|
2852
3469
|
"amount": "{{parameters.amount}}",
|
|
2853
|
-
"to": "
|
|
3470
|
+
"to": "{{before.contractAddress}}"
|
|
2854
3471
|
}
|
|
2855
3472
|
],
|
|
2856
3473
|
"checks": [
|
|
@@ -2956,7 +3573,7 @@ export const ACTIONS = {
|
|
|
2956
3573
|
],
|
|
2957
3574
|
"permissions": {
|
|
2958
3575
|
"approvedTargets": [
|
|
2959
|
-
"
|
|
3576
|
+
"{{before.contractAddress}}",
|
|
2960
3577
|
"{{parameters.tokenIn}}"
|
|
2961
3578
|
],
|
|
2962
3579
|
"label": [
|