tx · 4ppffbjL29cDzXXLbtYr4bZRogbiPLCBUQKdADh8LY3W 3N8b7mamWRbw6YjYJgsNGzTsKAbsbf4zVSA: -0.03100000 Waves 2022.07.09 20:59 [2132494] smart account 3N8b7mamWRbw6YjYJgsNGzTsKAbsbf4zVSA > SELF 0.00000000 Waves
{ "type": 13, "id": "4ppffbjL29cDzXXLbtYr4bZRogbiPLCBUQKdADh8LY3W", "fee": 3100000, "feeAssetId": null, "timestamp": 1657389662166, "version": 2, "chainId": 84, "sender": "3N8b7mamWRbw6YjYJgsNGzTsKAbsbf4zVSA", "senderPublicKey": "FA2TFZp55AkfpLAK7toKNNdufbHH3cY6aCSSMFcFPafT", "proofs": [ "HiWvQtQM7EaN2ibUtc8rm6JWpYyxnPuwSweTvDb8vaNy1KVFyfm5ojMYNMEftFeed1XVsJX2wLpK6sZnz2ABdiq" ], "script": "base64:AAIFAAAAAAAAAFkIAhILCgkICAgICAgBAQQSAwoBBBIFCgMEBAQSAwoBARIDCgEEEgMKAQESAwoBCBIGCgQICAgEEgUKAwQICBIGCgQECAgBEgQKAggIEgUKAwgIARIECgIICAAAACcAAAAABG1haW4CAAAACm1haW5fYXNzZXQAAAAAAWwCAAAACWxwX2Fzc2V0XwAAAAADYWExAgAAAAZwb29sX18AAAAAAnNhAgAAAA9TVEFLSU5HX0FNT1VOVF8AAAAAAmxhAgAAAA1MRUFTRV9BTU9VTlRfAAAAAAJpeAIAAAADSURfAAAAAAdyYXRlRmVlAgAAABNwZXJjZW50YWdlX3JhdGVfZmVlAAAAAA5kZXBvc2l0X2hlaWdodAIAAAASRGVwb3NpdF9IZWlnaHRfT2ZfAAAAAAJEOAAAAAAABfXhAAAAAAACRDYAAAAAAAAPQkAAAAAAD2NvbnRyYWN0QWRkcmVzcwkBAAAAB0FkZHJlc3MAAAABCAUAAAAEdGhpcwAAAAVieXRlcwAAAAAMZXhjaGFuZ2VSYXRlAAAAAAAAAAAFAQAAABFnZXRBZGRyZXNzSWZWYWxpZAAAAA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zd2FwIGZlZS4JAAACAAAAAQIAAAASSW52YWxpZCByYXRlIGFzc2V0CQAAAgAAAAECAAAAEUludmFsaWQgU3dhcCBLZXkuCQAAAgAAAAECAAAAGUludmFsaWQgQXNzZXQxIG9yIEFzc2V0MiEJAAACAAAAAQIAAAAgQXNzZXQxIGNhbm5vdCBiZSBlcXVhbCB0byBBc3NldDIJAAACAAAAAQIAAAAkU3dhcCBpcyBjdXJyZW50bHkgdW5kZXIgbWFpbnRlbmFuY2UuCQAAAgAAAAECAAAAJGRBcHAgaXMgY3VycmVudGx5IHVuZGVyIG1haW50ZW5hbmNlLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAVPcmRlcgQAAAAFb3JkZXIFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlLgKgN", "height": 2132494, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4pFNkRehMPcRDvbzATTJSe2u8B9qsyNAG2HpVJ2zCUAF Next: B4ZWyYHWZxqDdxNhKkMfM9jtMU6pUvcpdq9z6ojhEmk4 Diff:
Old | New | Differences | |
---|---|---|---|
31 | 31 | func getAssetIfValid (assetId) = toBase58String(valueOrErrorMessage(value(assetInfo(fromBase58String(assetId))).id, (("Asset Id: " + assetId) + " is invalid."))) | |
32 | 32 | ||
33 | 33 | ||
34 | - | func getAmountBlockAsset (assetId) = valueOrElse(getIntegerValue(this, assetId), 0) | |
34 | + | func getAmountBlockAsset (assetId) = match getIntegerValue(this, assetId) { | |
35 | + | case i: Int => | |
36 | + | i | |
37 | + | case _ => | |
38 | + | 0 | |
39 | + | } | |
35 | 40 | ||
36 | 41 | ||
37 | 42 | func getAssetName (assetId) = match assetInfo(assetId) { | |
73 | 78 | func kp (asset1,asset2) = (((aa1 + asset1) + "_") + asset2) | |
74 | 79 | ||
75 | 80 | ||
76 | - | func validPoolK (key) = valueOrElse(getIntegerValue(this, key), 0) | |
81 | + | func validPoolK (key) = match getIntegerValue(this, key) { | |
82 | + | case i: Int => | |
83 | + | i | |
84 | + | case _ => | |
85 | + | 0 | |
86 | + | } | |
77 | 87 | ||
78 | 88 | ||
79 | 89 | func kpAddress (address,key) = match getIntegerValue(this, ((key + "_") + address)) { | |
84 | 94 | } | |
85 | 95 | ||
86 | 96 | ||
87 | - | func poolAA (address,key,asset) = valueOrElse(getIntegerValue(this, ((((key + "_") + address) + "_") + asset)), 1) | |
97 | + | func poolAA (address,key,asset) = match getIntegerValue(this, ((((key + "_") + address) + "_") + asset)) { | |
98 | + | case a: Int => | |
99 | + | a | |
100 | + | case _ => | |
101 | + | 1 | |
102 | + | } | |
88 | 103 | ||
89 | 104 | ||
90 | - | func assetP (key,asset) = valueOrElse(getIntegerValue(this, ((key + "_") + asset)), 1) | |
105 | + | func assetP (key,asset) = match getIntegerValue(this, ((key + "_") + asset)) { | |
106 | + | case a: Int => | |
107 | + | a | |
108 | + | case _ => | |
109 | + | 1 | |
110 | + | } | |
91 | 111 | ||
92 | 112 | ||
93 | 113 | func pkey (Asset1,Asset2,address) = (((deposit_height + kp(Asset1, Asset2)) + "_") + address) | |
94 | 114 | ||
95 | 115 | ||
96 | - | func lpBlocked (address,key) = valueOrElse(getIntegerValue(this, ((("STAKE_LP_" + address) + "_") + key)), 0) | |
116 | + | func lpBlocked (address,key) = match getIntegerValue(this, ((("STAKE_LP_" + address) + "_") + key)) { | |
117 | + | case a: Int => | |
118 | + | a | |
119 | + | case _ => | |
120 | + | 0 | |
121 | + | } | |
97 | 122 | ||
98 | 123 | ||
99 | 124 | func adminVerification () = match getStringValue(this, "admin") { | |
305 | 330 | then if (!(liquidityPower)) | |
306 | 331 | then { | |
307 | 332 | let currentKey = toBase58String(i.caller.bytes) | |
308 | - | let currentAmount = valueOrElse(if (pool) | |
309 | - | then getIntegerValue(this, ((("STAKE_LP_" + currentKey) + "_") + kp(Asset1, Asset2))) | |
310 | - | else getIntegerValue(this, currentKey), 0) | |
333 | + | let currentAmount = match if (pool) | |
334 | + | then getIntegerValue(this, ((("STAKE_LP_" + currentKey) + "_") + kp(Asset1, Asset2))) | |
335 | + | else getIntegerValue(this, currentKey) { | |
336 | + | case a: Int => | |
337 | + | a | |
338 | + | case _ => | |
339 | + | 0 | |
340 | + | } | |
311 | 341 | let swapheightkeyname = if (pool) | |
312 | 342 | then ((((deposit_height + "_") + currentKey) + "_") + kp(Asset1, Asset2)) | |
313 | 343 | else (deposit_height + currentKey) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let main = "main_asset" | |
5 | 5 | ||
6 | 6 | let l = "lp_asset_" | |
7 | 7 | ||
8 | 8 | let aa1 = "pool__" | |
9 | 9 | ||
10 | 10 | let sa = "STAKING_AMOUNT_" | |
11 | 11 | ||
12 | 12 | let la = "LEASE_AMOUNT_" | |
13 | 13 | ||
14 | 14 | let ix = "ID_" | |
15 | 15 | ||
16 | 16 | let rateFee = "percentage_rate_fee" | |
17 | 17 | ||
18 | 18 | let deposit_height = "Deposit_Height_Of_" | |
19 | 19 | ||
20 | 20 | let D8 = 100000000 | |
21 | 21 | ||
22 | 22 | let D6 = 1000000 | |
23 | 23 | ||
24 | 24 | let contractAddress = Address(this.bytes) | |
25 | 25 | ||
26 | 26 | let exchangeRate = 5 | |
27 | 27 | ||
28 | 28 | func getAddressIfValid (address) = toString(valueOrErrorMessage(addressFromString(address), (("Can't parse " + address) + " as address"))) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func getAssetIfValid (assetId) = toBase58String(valueOrErrorMessage(value(assetInfo(fromBase58String(assetId))).id, (("Asset Id: " + assetId) + " is invalid."))) | |
32 | 32 | ||
33 | 33 | ||
34 | - | func getAmountBlockAsset (assetId) = valueOrElse(getIntegerValue(this, assetId), 0) | |
34 | + | func getAmountBlockAsset (assetId) = match getIntegerValue(this, assetId) { | |
35 | + | case i: Int => | |
36 | + | i | |
37 | + | case _ => | |
38 | + | 0 | |
39 | + | } | |
35 | 40 | ||
36 | 41 | ||
37 | 42 | func getAssetName (assetId) = match assetInfo(assetId) { | |
38 | 43 | case asset: Asset => | |
39 | 44 | asset.name | |
40 | 45 | case _ => | |
41 | 46 | throw("Can't find asset") | |
42 | 47 | } | |
43 | 48 | ||
44 | 49 | ||
45 | 50 | let ac = "activate" | |
46 | 51 | ||
47 | 52 | let poolAc = "activate_pools" | |
48 | 53 | ||
49 | 54 | let swapAc = "activate_swap" | |
50 | 55 | ||
51 | 56 | let liquidityAc = "activate_liquidity" | |
52 | 57 | ||
53 | 58 | let bcD = "block_distribuition" | |
54 | 59 | ||
55 | 60 | let total_locked = "Total_Tokens_Locked_" | |
56 | 61 | ||
57 | 62 | let usdn = "usdn_asset" | |
58 | 63 | ||
59 | 64 | let usdt = "usdt_asset" | |
60 | 65 | ||
61 | 66 | let usdc = "usdc_asset" | |
62 | 67 | ||
63 | 68 | let ngnn = "ngnn_asset" | |
64 | 69 | ||
65 | 70 | let eurn = "eurn_asset" | |
66 | 71 | ||
67 | 72 | let waves = "WAVES" | |
68 | 73 | ||
69 | 74 | let aWaves = "accept_waves" | |
70 | 75 | ||
71 | 76 | let WAVES = unit | |
72 | 77 | ||
73 | 78 | func kp (asset1,asset2) = (((aa1 + asset1) + "_") + asset2) | |
74 | 79 | ||
75 | 80 | ||
76 | - | func validPoolK (key) = valueOrElse(getIntegerValue(this, key), 0) | |
81 | + | func validPoolK (key) = match getIntegerValue(this, key) { | |
82 | + | case i: Int => | |
83 | + | i | |
84 | + | case _ => | |
85 | + | 0 | |
86 | + | } | |
77 | 87 | ||
78 | 88 | ||
79 | 89 | func kpAddress (address,key) = match getIntegerValue(this, ((key + "_") + address)) { | |
80 | 90 | case t: Int => | |
81 | 91 | t | |
82 | 92 | case _ => | |
83 | 93 | 0 | |
84 | 94 | } | |
85 | 95 | ||
86 | 96 | ||
87 | - | func poolAA (address,key,asset) = valueOrElse(getIntegerValue(this, ((((key + "_") + address) + "_") + asset)), 1) | |
97 | + | func poolAA (address,key,asset) = match getIntegerValue(this, ((((key + "_") + address) + "_") + asset)) { | |
98 | + | case a: Int => | |
99 | + | a | |
100 | + | case _ => | |
101 | + | 1 | |
102 | + | } | |
88 | 103 | ||
89 | 104 | ||
90 | - | func assetP (key,asset) = valueOrElse(getIntegerValue(this, ((key + "_") + asset)), 1) | |
105 | + | func assetP (key,asset) = match getIntegerValue(this, ((key + "_") + asset)) { | |
106 | + | case a: Int => | |
107 | + | a | |
108 | + | case _ => | |
109 | + | 1 | |
110 | + | } | |
91 | 111 | ||
92 | 112 | ||
93 | 113 | func pkey (Asset1,Asset2,address) = (((deposit_height + kp(Asset1, Asset2)) + "_") + address) | |
94 | 114 | ||
95 | 115 | ||
96 | - | func lpBlocked (address,key) = valueOrElse(getIntegerValue(this, ((("STAKE_LP_" + address) + "_") + key)), 0) | |
116 | + | func lpBlocked (address,key) = match getIntegerValue(this, ((("STAKE_LP_" + address) + "_") + key)) { | |
117 | + | case a: Int => | |
118 | + | a | |
119 | + | case _ => | |
120 | + | 0 | |
121 | + | } | |
97 | 122 | ||
98 | 123 | ||
99 | 124 | func adminVerification () = match getStringValue(this, "admin") { | |
100 | 125 | case t: String => | |
101 | 126 | Address(fromBase58String(t)) | |
102 | 127 | case _ => | |
103 | 128 | this | |
104 | 129 | } | |
105 | 130 | ||
106 | 131 | ||
107 | 132 | func validateAsset (assetS,stringAsset,acWaves) = if (if ((assetS == WAVES)) | |
108 | 133 | then (stringAsset == "WAVES") | |
109 | 134 | else false) | |
110 | 135 | then if (acWaves) | |
111 | 136 | then true | |
112 | 137 | else throw("The smart contract does not currently support Waves.") | |
113 | 138 | else if ((assetS == fromBase58String(stringAsset))) | |
114 | 139 | then true | |
115 | 140 | else false | |
116 | 141 | ||
117 | 142 | ||
118 | 143 | @Callable(i) | |
119 | 144 | func constructor (MainAssetId,UsdnAssetId,UsdtAssetId,UsdcAssetId,NgnnAssetId,EurnAssetId,percentageRateSwap,blockDistribution,acceptWaves) = if (if ((i.caller == this)) | |
120 | 145 | then true | |
121 | 146 | else (i.caller == adminVerification())) | |
122 | 147 | then { | |
123 | 148 | let keyPoolUsdnUsdt = kp(UsdnAssetId, UsdtAssetId) | |
124 | 149 | let keyPoolUsdnUsdc = kp(UsdnAssetId, UsdcAssetId) | |
125 | 150 | let keyPoolUsdnNgnn = kp(UsdnAssetId, NgnnAssetId) | |
126 | 151 | let keyPoolUsdnWaves = kp(UsdnAssetId, waves) | |
127 | 152 | let keyPoolUsdnMainAsset = kp(UsdnAssetId, MainAssetId) | |
128 | 153 | let keyPoolUsdnEurn = kp(UsdnAssetId, EurnAssetId) | |
129 | 154 | let keyPoolUsdcUsdt = kp(UsdcAssetId, UsdtAssetId) | |
130 | 155 | let keyPoolUsdcNgnn = kp(UsdcAssetId, NgnnAssetId) | |
131 | 156 | let keyPoolUsdcWaves = kp(UsdcAssetId, waves) | |
132 | 157 | let keyPoolUsdcMainAsset = kp(UsdcAssetId, MainAssetId) | |
133 | 158 | let keyPoolUsdcEurn = kp(UsdcAssetId, EurnAssetId) | |
134 | 159 | let keyPoolUsdtNgnn = kp(UsdtAssetId, NgnnAssetId) | |
135 | 160 | let keyPoolUsdtWaves = kp(UsdtAssetId, waves) | |
136 | 161 | let keyPoolUsdtMainAsset = kp(UsdtAssetId, MainAssetId) | |
137 | 162 | let keyPoolUsdtEurn = kp(UsdtAssetId, EurnAssetId) | |
138 | 163 | let keyPoolNgnnWaves = kp(NgnnAssetId, waves) | |
139 | 164 | let keyPoolNgnnMainAsset = kp(NgnnAssetId, MainAssetId) | |
140 | 165 | let keyPoolNgnnEurn = kp(NgnnAssetId, EurnAssetId) | |
141 | 166 | let keyPoolMainWaves = kp(MainAssetId, waves) | |
142 | 167 | let keyPoolMainEurn = kp(MainAssetId, EurnAssetId) | |
143 | 168 | let keyPoolEurnWaves = kp(EurnAssetId, waves) | |
144 | 169 | [StringEntry(main, MainAssetId), StringEntry(usdn, UsdnAssetId), StringEntry(usdc, UsdcAssetId), StringEntry(usdt, UsdtAssetId), StringEntry(ngnn, NgnnAssetId), BooleanEntry(aWaves, acceptWaves), IntegerEntry(rateFee, percentageRateSwap), BooleanEntry(ac, true), BooleanEntry(swapAc, false), BooleanEntry(poolAc, false), BooleanEntry(liquidityAc, false), IntegerEntry(bcD, blockDistribution), IntegerEntry(keyPoolUsdnUsdt, 1), IntegerEntry(keyPoolUsdnWaves, 1), IntegerEntry(keyPoolUsdnUsdc, 1), IntegerEntry(keyPoolUsdnNgnn, 1), IntegerEntry(keyPoolUsdnMainAsset, 1), IntegerEntry(keyPoolUsdcUsdt, 1), IntegerEntry(keyPoolUsdcNgnn, 1), IntegerEntry(keyPoolUsdcWaves, 1), IntegerEntry(keyPoolUsdtMainAsset, 1), IntegerEntry(keyPoolUsdtNgnn, 1), IntegerEntry(keyPoolUsdtWaves, 1), IntegerEntry(keyPoolNgnnWaves, 1), IntegerEntry(keyPoolNgnnMainAsset, 1), IntegerEntry(keyPoolMainWaves, 1), IntegerEntry(keyPoolEurnWaves, 1), IntegerEntry(keyPoolMainEurn, 1), IntegerEntry(keyPoolNgnnEurn, 1), IntegerEntry(keyPoolUsdcEurn, 1), IntegerEntry(keyPoolUsdnEurn, 1), IntegerEntry(keyPoolUsdtEurn, 1), StringEntry(eurn, EurnAssetId)] | |
145 | 170 | } | |
146 | 171 | else throw("Only the Admin itself can invoke this function") | |
147 | 172 | ||
148 | 173 | ||
149 | 174 | ||
150 | 175 | @Callable(i) | |
151 | 176 | func activate (v) = if (if ((i.caller == this)) | |
152 | 177 | then true | |
153 | 178 | else (i.caller == adminVerification())) | |
154 | 179 | then [BooleanEntry(ac, v)] | |
155 | 180 | else throw("Only the Admin itself can invoke this function") | |
156 | 181 | ||
157 | 182 | ||
158 | 183 | ||
159 | 184 | @Callable(i) | |
160 | 185 | func maintenance (pools,swap,stake) = if (if ((i.caller == this)) | |
161 | 186 | then true | |
162 | 187 | else (i.caller == adminVerification())) | |
163 | 188 | then [BooleanEntry(poolAc, pools), BooleanEntry(swapAc, swap), BooleanEntry(liquidityAc, stake)] | |
164 | 189 | else throw("Only the Admin itself can invoke this function") | |
165 | 190 | ||
166 | 191 | ||
167 | 192 | ||
168 | 193 | @Callable(i) | |
169 | 194 | func percentualRateFeeSwapEdit (rate) = if (if ((i.caller == this)) | |
170 | 195 | then true | |
171 | 196 | else (i.caller == adminVerification())) | |
172 | 197 | then [IntegerEntry(rateFee, rate)] | |
173 | 198 | else throw("Only the Admin itself can invoke this function") | |
174 | 199 | ||
175 | 200 | ||
176 | 201 | ||
177 | 202 | @Callable(i) | |
178 | 203 | func acceptWaves (activate) = if (if ((i.caller == this)) | |
179 | 204 | then true | |
180 | 205 | else (i.caller == adminVerification())) | |
181 | 206 | then [BooleanEntry(aWaves, activate)] | |
182 | 207 | else throw("Only the Admin itself can invoke this function") | |
183 | 208 | ||
184 | 209 | ||
185 | 210 | ||
186 | 211 | @Callable(i) | |
187 | 212 | func blockDistribution (newValue) = if (if ((i.caller == this)) | |
188 | 213 | then true | |
189 | 214 | else (i.caller == adminVerification())) | |
190 | 215 | then [IntegerEntry(bcD, newValue)] | |
191 | 216 | else throw("Only the Admin itself can invoke this function") | |
192 | 217 | ||
193 | 218 | ||
194 | 219 | ||
195 | 220 | @Callable(i) | |
196 | 221 | func addAdmin (address) = if (if ((i.caller == this)) | |
197 | 222 | then true | |
198 | 223 | else (i.caller == adminVerification())) | |
199 | 224 | then [StringEntry("admin", address)] | |
200 | 225 | else throw("Only the Admin itself can invoke this function") | |
201 | 226 | ||
202 | 227 | ||
203 | 228 | ||
204 | 229 | @Callable(i) | |
205 | 230 | func lpAssetCreateForPairPool (asset1,asset2,Name,customName) = { | |
206 | 231 | let nameAsset1 = if ((asset1 == waves)) | |
207 | 232 | then waves | |
208 | 233 | else getAssetName(fromBase58String(asset1)) | |
209 | 234 | let nameAsset2 = if ((asset2 == waves)) | |
210 | 235 | then waves | |
211 | 236 | else getAssetName(fromBase58String(asset2)) | |
212 | 237 | let name = if (customName) | |
213 | 238 | then Name | |
214 | 239 | else ((nameAsset1 + "_") + nameAsset2) | |
215 | 240 | let key = validPoolK(kp(asset1, asset2)) | |
216 | 241 | if (if ((i.caller == this)) | |
217 | 242 | then true | |
218 | 243 | else (i.caller == adminVerification())) | |
219 | 244 | then if (!((key == 0))) | |
220 | 245 | then { | |
221 | 246 | let assetLpCreate = Issue(name, ((("LP asset for pool liquidity in AxAi Swap pair " + asset1) + "_") + asset2), 1, 8, true) | |
222 | 247 | let idAssetLp = calculateAssetId(assetLpCreate) | |
223 | 248 | [StringEntry((l + kp(asset1, asset2)), toBase58String(idAssetLp)), assetLpCreate] | |
224 | 249 | } | |
225 | 250 | else throw("Invalid Pool Key. Try inverting the assets") | |
226 | 251 | else throw("Only the Admin itself can invoke this function") | |
227 | 252 | } | |
228 | 253 | ||
229 | 254 | ||
230 | 255 | ||
231 | 256 | @Callable(i) | |
232 | 257 | func deposit (pool,Asset1,Asset2) = { | |
233 | 258 | let power = getBooleanValue(this, ac) | |
234 | 259 | let liquidityPower = getBooleanValue(this, liquidityAc) | |
235 | 260 | let MainAsset = getStringValue(this, main) | |
236 | 261 | let lpAssetId = if (pool) | |
237 | 262 | then getStringValue(this, (l + kp(Asset1, Asset2))) | |
238 | 263 | else MainAsset | |
239 | 264 | if (power) | |
240 | 265 | then if (!(liquidityPower)) | |
241 | 266 | then if ((i.payments[0].assetId != fromBase58String(lpAssetId))) | |
242 | 267 | then throw((("Invalid asset! Kindly Deposit Only " + MainAsset) + " or valid asset lp")) | |
243 | 268 | else if (!(pool)) | |
244 | 269 | then { | |
245 | 270 | let currentKey = toBase58String(i.caller.bytes) | |
246 | 271 | let currentAmount = match getIntegerValue(this, currentKey) { | |
247 | 272 | case a: Int => | |
248 | 273 | a | |
249 | 274 | case _ => | |
250 | 275 | 0 | |
251 | 276 | } | |
252 | 277 | let newAmount = (currentAmount + i.payments[0].amount) | |
253 | 278 | let useramount = IntegerEntry(currentKey, newAmount) | |
254 | 279 | let userdepositheight = IntegerEntry((deposit_height + currentKey), height) | |
255 | 280 | let previouslockbalance = match getIntegerValue(this, "Total_Tokens_Locked:") { | |
256 | 281 | case a: Int => | |
257 | 282 | a | |
258 | 283 | case _ => | |
259 | 284 | 0 | |
260 | 285 | } | |
261 | 286 | let totaltoken = (previouslockbalance + i.payments[0].amount) | |
262 | 287 | let TLV = IntegerEntry("Total_Tokens_Locked:", totaltoken) | |
263 | 288 | [useramount, userdepositheight, TLV] | |
264 | 289 | } | |
265 | 290 | else { | |
266 | 291 | let poolKey = kp(Asset1, Asset2) | |
267 | 292 | let key = validPoolK(poolKey) | |
268 | 293 | if (!((key == 0))) | |
269 | 294 | then { | |
270 | 295 | let currentKey = toBase58String(i.caller.bytes) | |
271 | 296 | let currentAmount = match getIntegerValue(this, ((("STAKE_LP_" + currentKey) + "_") + poolKey)) { | |
272 | 297 | case a: Int => | |
273 | 298 | a | |
274 | 299 | case _ => | |
275 | 300 | 0 | |
276 | 301 | } | |
277 | 302 | let newAmount = (currentAmount + i.payments[0].amount) | |
278 | 303 | let useramount = IntegerEntry(((("STAKE_LP_" + currentKey) + "_") + poolKey), newAmount) | |
279 | 304 | let userdepositheight = IntegerEntry(((((deposit_height + "_") + currentKey) + "_") + poolKey), height) | |
280 | 305 | let previouslockbalance = match getIntegerValue(this, ("Total_Tokens_LP_Locked_" + poolKey)) { | |
281 | 306 | case a: Int => | |
282 | 307 | a | |
283 | 308 | case _ => | |
284 | 309 | 0 | |
285 | 310 | } | |
286 | 311 | let totaltoken = (previouslockbalance + i.payments[0].amount) | |
287 | 312 | let TLV = IntegerEntry(("Total_Tokens_LP_Locked_" + poolKey), totaltoken) | |
288 | 313 | [useramount, userdepositheight, TLV] | |
289 | 314 | } | |
290 | 315 | else throw("Invalid Pool key.") | |
291 | 316 | } | |
292 | 317 | else throw("liquidity is currently under maintenance.") | |
293 | 318 | else throw("dApp is currently under maintenance.") | |
294 | 319 | } | |
295 | 320 | ||
296 | 321 | ||
297 | 322 | ||
298 | 323 | @Callable(i) | |
299 | 324 | func remove (pool,Asset1,Asset2,amount) = { | |
300 | 325 | let power = getBooleanValue(this, ac) | |
301 | 326 | let liquidityPower = getBooleanValue(this, liquidityAc) | |
302 | 327 | let pmt = i.payments[0] | |
303 | 328 | let MainAsset = fromBase58String(getStringValue(this, main)) | |
304 | 329 | if (power) | |
305 | 330 | then if (!(liquidityPower)) | |
306 | 331 | then { | |
307 | 332 | let currentKey = toBase58String(i.caller.bytes) | |
308 | - | let currentAmount = valueOrElse(if (pool) | |
309 | - | then getIntegerValue(this, ((("STAKE_LP_" + currentKey) + "_") + kp(Asset1, Asset2))) | |
310 | - | else getIntegerValue(this, currentKey), 0) | |
333 | + | let currentAmount = match if (pool) | |
334 | + | then getIntegerValue(this, ((("STAKE_LP_" + currentKey) + "_") + kp(Asset1, Asset2))) | |
335 | + | else getIntegerValue(this, currentKey) { | |
336 | + | case a: Int => | |
337 | + | a | |
338 | + | case _ => | |
339 | + | 0 | |
340 | + | } | |
311 | 341 | let swapheightkeyname = if (pool) | |
312 | 342 | then ((((deposit_height + "_") + currentKey) + "_") + kp(Asset1, Asset2)) | |
313 | 343 | else (deposit_height + currentKey) | |
314 | 344 | let previouslockbalance = if (pool) | |
315 | 345 | then getIntegerValue(this, ("Total_Tokens_LP_Locked_" + kp(Asset1, Asset2))) | |
316 | 346 | else getIntegerValue(this, "Total_Tokens_Locked:") | |
317 | 347 | let totaltoken = (previouslockbalance - amount) | |
318 | 348 | let diff = (height - getIntegerValue(this, swapheightkeyname)) | |
319 | 349 | let bcd = getIntegerValue(this, bcD) | |
320 | 350 | let reward = ((diff * bcd) * D8) | |
321 | 351 | let feeCalc = (reward / (previouslockbalance / amount)) | |
322 | 352 | if ((0 > amount)) | |
323 | 353 | then throw(if (pool) | |
324 | 354 | then (((("Can't withdraw negative " + Asset1) + "/") + Asset2) + " amount") | |
325 | 355 | else "Can't withdraw negative AxAi amount") | |
326 | 356 | else { | |
327 | 357 | let newAmount = (currentAmount - amount) | |
328 | 358 | if ((0 > newAmount)) | |
329 | 359 | then throw(if (pool) | |
330 | 360 | then (((("Not enough Asset Lp " + Asset1) + "/") + Asset2) + " balance") | |
331 | 361 | else "Not enough AxAi balance") | |
332 | 362 | else [IntegerEntry(if (pool) | |
333 | 363 | then ((("STAKE_LP_" + currentKey) + "_") + kp(Asset1, Asset2)) | |
334 | 364 | else currentKey, newAmount), IntegerEntry(if (pool) | |
335 | 365 | then ("Total_Tokens_LP_Locked_" + kp(Asset1, Asset2)) | |
336 | 366 | else "Total_Tokens_Locked:", totaltoken), ScriptTransfer(i.caller, amount, if (pool) | |
337 | 367 | then fromBase58String(getStringValue(this, (l + kp(Asset1, Asset2)))) | |
338 | 368 | else MainAsset), ScriptTransfer(i.caller, feeCalc, MainAsset)] | |
339 | 369 | } | |
340 | 370 | } | |
341 | 371 | else throw("liquidity is currently under maintenance.") | |
342 | 372 | else throw("dApp is currently under maintenance.") | |
343 | 373 | } | |
344 | 374 | ||
345 | 375 | ||
346 | 376 | ||
347 | 377 | @Callable(i) | |
348 | 378 | func addLiquidity (Asset1,Asset2) = { | |
349 | 379 | let power = getBooleanValue(this, ac) | |
350 | 380 | let poolActivate = getBooleanValue(this, poolAc) | |
351 | 381 | let acWaves = getBooleanValue(this, aWaves) | |
352 | 382 | let key = validPoolK(kp(Asset1, Asset2)) | |
353 | 383 | let asset1 = i.payments[0].assetId | |
354 | 384 | let asset2 = i.payments[1].assetId | |
355 | 385 | let USDN = fromBase58String(getStringValue(this, usdn)) | |
356 | 386 | let USDC = fromBase58String(getStringValue(this, usdc)) | |
357 | 387 | let USDT = fromBase58String(getStringValue(this, usdt)) | |
358 | 388 | let NGNN = fromBase58String(getStringValue(this, ngnn)) | |
359 | 389 | let EURN = fromBase58String(getStringValue(this, eurn)) | |
360 | 390 | let MainAsset = fromBase58String(getStringValue(this, main)) | |
361 | 391 | let lpAssetId = getStringValue(this, (l + kp(Asset1, Asset2))) | |
362 | 392 | if (power) | |
363 | 393 | then if (!(poolActivate)) | |
364 | 394 | then if (if (if (!((asset1 == asset2))) | |
365 | 395 | then validateAsset(asset1, Asset1, acWaves) | |
366 | 396 | else false) | |
367 | 397 | then validateAsset(asset2, Asset2, acWaves) | |
368 | 398 | else false) | |
369 | 399 | then if (if (if (if (if (if (if (if ((asset1 == USDN)) | |
370 | 400 | then true | |
371 | 401 | else (asset1 == USDC)) | |
372 | 402 | then true | |
373 | 403 | else (asset1 == USDT)) | |
374 | 404 | then true | |
375 | 405 | else (asset1 == NGNN)) | |
376 | 406 | then true | |
377 | 407 | else (asset1 == MainAsset)) | |
378 | 408 | then true | |
379 | 409 | else (asset1 == WAVES)) | |
380 | 410 | then true | |
381 | 411 | else (asset1 == EURN)) | |
382 | 412 | then if (if (if (if (if (if ((asset2 == USDN)) | |
383 | 413 | then true | |
384 | 414 | else (asset2 == USDC)) | |
385 | 415 | then true | |
386 | 416 | else (asset2 == USDT)) | |
387 | 417 | then true | |
388 | 418 | else (asset2 == NGNN)) | |
389 | 419 | then true | |
390 | 420 | else (asset2 == MainAsset)) | |
391 | 421 | then true | |
392 | 422 | else (asset2 == WAVES)) | |
393 | 423 | then true | |
394 | 424 | else (asset2 == EURN) | |
395 | 425 | else false) | |
396 | 426 | then if (!((key == 0))) | |
397 | 427 | then { | |
398 | 428 | let currentKey = toBase58String(i.caller.bytes) | |
399 | 429 | let currentAmount = kpAddress(currentKey, kp(Asset1, Asset2)) | |
400 | 430 | let currentAmountAsset1 = poolAA(currentKey, kp(Asset1, Asset2), Asset1) | |
401 | 431 | let currentAmountAsset2 = poolAA(currentKey, kp(Asset1, Asset2), Asset2) | |
402 | 432 | let asset1pool = assetP(kp(Asset1, Asset2), Asset1) | |
403 | 433 | let asset2pool = assetP(kp(Asset1, Asset2), Asset2) | |
404 | 434 | let receiveLp = (asset1pool / asset2pool) | |
405 | 435 | let newcurrentAmountAsset1 = (currentAmountAsset1 + i.payments[0].amount) | |
406 | 436 | let newcurrentAmountAsset2 = (currentAmountAsset2 + i.payments[1].amount) | |
407 | 437 | let newcurrentAmount = (currentAmount + receiveLp) | |
408 | 438 | let newasset1pool = (asset1pool + i.payments[0].amount) | |
409 | 439 | let newasset2pool = (asset2pool + i.payments[1].amount) | |
410 | 440 | [Reissue(fromBase58String(lpAssetId), receiveLp, true), ScriptTransfer(Address(i.caller.bytes), receiveLp, fromBase58String(lpAssetId)), IntegerEntry(pkey(Asset1, Asset2, currentKey), height), IntegerEntry(((((currentKey + "_") + kp(Asset1, Asset2)) + "_") + Asset1), newcurrentAmountAsset1), IntegerEntry(((((currentKey + "_") + kp(Asset1, Asset2)) + "_") + Asset2), newcurrentAmountAsset2), IntegerEntry(((kp(Asset1, Asset2) + "_") + currentKey), newcurrentAmount), IntegerEntry(((kp(Asset1, Asset2) + "_") + Asset1), newasset1pool), IntegerEntry(((kp(Asset1, Asset2) + "_") + Asset2), newasset2pool), IntegerEntry(Asset1, (getAmountBlockAsset(Asset1) + i.payments[0].amount)), IntegerEntry(Asset2, (getAmountBlockAsset(Asset2) + i.payments[1].amount)), IntegerEntry(lpAssetId, (getAmountBlockAsset(lpAssetId) + receiveLp))] | |
411 | 441 | } | |
412 | 442 | else throw("Invalid Pool Key.") | |
413 | 443 | else throw(((("Invalid Asset1 or Asset2! Asset1: " + toString(if (if (if (if (if (if ((asset1 == USDN)) | |
414 | 444 | then true | |
415 | 445 | else (asset1 == USDC)) | |
416 | 446 | then true | |
417 | 447 | else (asset1 == USDT)) | |
418 | 448 | then true | |
419 | 449 | else (asset1 == NGNN)) | |
420 | 450 | then true | |
421 | 451 | else (asset1 == MainAsset)) | |
422 | 452 | then true | |
423 | 453 | else (asset1 == WAVES)) | |
424 | 454 | then true | |
425 | 455 | else (asset1 == EURN))) + " Asset2:") + toString(if (if (if (if (if (if ((asset2 == USDN)) | |
426 | 456 | then true | |
427 | 457 | else (asset2 == USDC)) | |
428 | 458 | then true | |
429 | 459 | else (asset2 == USDT)) | |
430 | 460 | then true | |
431 | 461 | else (asset2 == NGNN)) | |
432 | 462 | then true | |
433 | 463 | else (asset2 == MainAsset)) | |
434 | 464 | then true | |
435 | 465 | else (asset2 == WAVES)) | |
436 | 466 | then true | |
437 | 467 | else (asset2 == EURN)))) | |
438 | 468 | else throw("Asset1 cannot be equal to Asset2") | |
439 | 469 | else throw("liquidity is currently under maintenance.") | |
440 | 470 | else throw("dApp is currently under maintenance.") | |
441 | 471 | } | |
442 | 472 | ||
443 | 473 | ||
444 | 474 | ||
445 | 475 | @Callable(i) | |
446 | 476 | func removeLiquidity (Asset1,Asset2,Amount) = { | |
447 | 477 | let currentKey = toBase58String(i.caller.bytes) | |
448 | 478 | let power = getBooleanValue(this, ac) | |
449 | 479 | let poolActivate = getBooleanValue(this, poolAc) | |
450 | 480 | let acWaves = getBooleanValue(this, aWaves) | |
451 | 481 | let poolKey = kp(Asset1, Asset2) | |
452 | 482 | let key = validPoolK(poolKey) | |
453 | 483 | let asset1 = if ((Asset1 == waves)) | |
454 | 484 | then if (acWaves) | |
455 | 485 | then WAVES | |
456 | 486 | else throw("The smart contract does not currently support Waves.") | |
457 | 487 | else fromBase58String(Asset1) | |
458 | 488 | let asset2 = if ((Asset2 == waves)) | |
459 | 489 | then if (acWaves) | |
460 | 490 | then WAVES | |
461 | 491 | else throw("The smart contract does not currently support Waves.") | |
462 | 492 | else fromBase58String(Asset2) | |
463 | 493 | let USDN = fromBase58String(getStringValue(this, usdn)) | |
464 | 494 | let USDC = fromBase58String(getStringValue(this, usdc)) | |
465 | 495 | let USDT = fromBase58String(getStringValue(this, usdt)) | |
466 | 496 | let NGNN = fromBase58String(getStringValue(this, ngnn)) | |
467 | 497 | let MainAsset = fromBase58String(getStringValue(this, main)) | |
468 | 498 | let EURN = fromBase58String(getStringValue(this, eurn)) | |
469 | 499 | let lpAssetId = getStringValue(this, (l + kp(Asset1, Asset2))) | |
470 | 500 | let currentAmount = kpAddress(currentKey, kp(Asset1, Asset2)) | |
471 | 501 | let amountLpBlocked = lpBlocked(currentKey, poolKey) | |
472 | 502 | let totalLP = getIntegerValue(this, lpAssetId) | |
473 | 503 | let totalAsset1Pool = getIntegerValue(this, ((kp(Asset1, Asset2) + "_") + Asset1)) | |
474 | 504 | let totalAsset2Pool = getIntegerValue(this, ((kp(Asset1, Asset2) + "_") + Asset2)) | |
475 | 505 | if (power) | |
476 | 506 | then if (!(poolActivate)) | |
477 | 507 | then if (!((Asset1 == Asset2))) | |
478 | 508 | then if (if (if (if (if (if (if (if ((asset1 == USDN)) | |
479 | 509 | then true | |
480 | 510 | else (asset1 == USDC)) | |
481 | 511 | then true | |
482 | 512 | else (asset1 == USDT)) | |
483 | 513 | then true | |
484 | 514 | else (asset1 == NGNN)) | |
485 | 515 | then true | |
486 | 516 | else (asset1 == MainAsset)) | |
487 | 517 | then true | |
488 | 518 | else (asset1 == WAVES)) | |
489 | 519 | then true | |
490 | 520 | else (asset1 == EURN)) | |
491 | 521 | then if (if (if (if (if (if ((asset2 == USDN)) | |
492 | 522 | then true | |
493 | 523 | else (asset2 == USDC)) | |
494 | 524 | then true | |
495 | 525 | else (asset2 == USDT)) | |
496 | 526 | then true | |
497 | 527 | else (asset2 == NGNN)) | |
498 | 528 | then true | |
499 | 529 | else (asset2 == MainAsset)) | |
500 | 530 | then true | |
501 | 531 | else (asset2 == WAVES)) | |
502 | 532 | then true | |
503 | 533 | else (asset2 == EURN) | |
504 | 534 | else false) | |
505 | 535 | then if (!((key == 0))) | |
506 | 536 | then if (!((currentAmount == 0))) | |
507 | 537 | then if (((currentAmount - amountLpBlocked) >= Amount)) | |
508 | 538 | then { | |
509 | 539 | let calcLP = (Amount / totalLP) | |
510 | 540 | let receiveAsset1 = (calcLP * totalAsset1Pool) | |
511 | 541 | let receiveAsset2 = (calcLP * totalAsset2Pool) | |
512 | 542 | let asset1pool = assetP(kp(Asset1, Asset2), Asset1) | |
513 | 543 | let asset2pool = assetP(kp(Asset1, Asset2), Asset2) | |
514 | 544 | let currentAmountAsset1 = poolAA(currentKey, kp(Asset1, Asset2), Asset1) | |
515 | 545 | let currentAmountAsset2 = poolAA(currentKey, kp(Asset1, Asset2), Asset2) | |
516 | 546 | let newcurrentAmountAsset1 = (currentAmountAsset1 - receiveAsset1) | |
517 | 547 | let newcurrentAmountAsset2 = (currentAmountAsset2 - receiveAsset2) | |
518 | 548 | let newcurrentAmount = (currentAmount - Amount) | |
519 | 549 | let newasset1pool = (asset1pool - receiveAsset1) | |
520 | 550 | let newasset2pool = (asset2pool - receiveAsset2) | |
521 | 551 | [Burn(fromBase58String(lpAssetId), Amount), ScriptTransfer(Address(i.caller.bytes), receiveAsset1, asset1), ScriptTransfer(Address(i.caller.bytes), receiveAsset2, asset2), IntegerEntry(pkey(Asset1, Asset2, currentKey), height), IntegerEntry(((((currentKey + "_") + kp(Asset1, Asset2)) + "_") + Asset1), newcurrentAmountAsset1), IntegerEntry(((((currentKey + "_") + kp(Asset1, Asset2)) + "_") + Asset2), newcurrentAmountAsset2), IntegerEntry(((kp(Asset1, Asset2) + "_") + currentKey), newcurrentAmount), IntegerEntry(((kp(Asset1, Asset2) + "_") + Asset1), newasset1pool), IntegerEntry(((kp(Asset1, Asset2) + "_") + Asset2), newasset2pool), IntegerEntry(Asset1, (getAmountBlockAsset(Asset1) - receiveAsset1)), IntegerEntry(Asset2, (getAmountBlockAsset(Asset2) - receiveAsset2)), IntegerEntry(lpAssetId, (getAmountBlockAsset(lpAssetId) - Amount))] | |
522 | 552 | } | |
523 | 553 | else throw("Amount to be withdrawn greater than the amount available for withdrawal.") | |
524 | 554 | else throw("You have no locked values in the pool") | |
525 | 555 | else throw("Invalid Pool Key.") | |
526 | 556 | else throw("Invalid Asset1 or Asset2!") | |
527 | 557 | else throw("Asset1 cannot be equal to Asset2") | |
528 | 558 | else throw("liquidity is currently under maintenance.") | |
529 | 559 | else throw("dApp is currently under maintenance.") | |
530 | 560 | } | |
531 | 561 | ||
532 | 562 | ||
533 | 563 | ||
534 | 564 | @Callable(i) | |
535 | 565 | func swap (Asset1,Asset2) = { | |
536 | 566 | let currentKey = toBase58String(i.caller.bytes) | |
537 | 567 | let acWaves = getBooleanValue(this, aWaves) | |
538 | 568 | let power = getBooleanValue(this, ac) | |
539 | 569 | let swapActivate = getBooleanValue(this, swapAc) | |
540 | 570 | let poolKey = kp(Asset1, Asset2) | |
541 | 571 | let key = validPoolK(poolKey) | |
542 | 572 | let asset1 = i.payments[0].assetId | |
543 | 573 | let USDN = fromBase58String(getStringValue(this, usdn)) | |
544 | 574 | let USDC = fromBase58String(getStringValue(this, usdc)) | |
545 | 575 | let USDT = fromBase58String(getStringValue(this, usdt)) | |
546 | 576 | let NGNN = fromBase58String(getStringValue(this, ngnn)) | |
547 | 577 | let MainAsset = fromBase58String(getStringValue(this, main)) | |
548 | 578 | let EURN = fromBase58String(getStringValue(this, eurn)) | |
549 | 579 | let totalAsset1 = getIntegerValue(this, ((kp(Asset1, Asset2) + "_") + Asset1)) | |
550 | 580 | let totalAsset2 = getIntegerValue(this, ((kp(Asset1, Asset2) + "_") + Asset2)) | |
551 | 581 | let feeRatePercentual = getIntegerValue(this, rateFee) | |
552 | 582 | if (power) | |
553 | 583 | then if (!(swapActivate)) | |
554 | 584 | then if (if (!((Asset1 == Asset2))) | |
555 | 585 | then if (validateAsset(asset1, Asset1, acWaves)) | |
556 | 586 | then true | |
557 | 587 | else validateAsset(asset1, Asset2, acWaves) | |
558 | 588 | else false) | |
559 | 589 | then if (if (if (if (if (if (if ((asset1 == USDN)) | |
560 | 590 | then true | |
561 | 591 | else (asset1 == USDC)) | |
562 | 592 | then true | |
563 | 593 | else (asset1 == USDT)) | |
564 | 594 | then true | |
565 | 595 | else (asset1 == NGNN)) | |
566 | 596 | then true | |
567 | 597 | else (asset1 == MainAsset)) | |
568 | 598 | then true | |
569 | 599 | else (asset1 == EURN)) | |
570 | 600 | then true | |
571 | 601 | else (asset1 == WAVES)) | |
572 | 602 | then if (!((key == 0))) | |
573 | 603 | then if ((i.payments[1].assetId == MainAsset)) | |
574 | 604 | then if ((i.payments[1].amount == 300000)) | |
575 | 605 | then { | |
576 | 606 | let valueAsset = if (!((asset1 == fromBase58String(Asset1)))) | |
577 | 607 | then (totalAsset1 / totalAsset2) | |
578 | 608 | else (totalAsset2 / totalAsset1) | |
579 | 609 | let newValue = (i.payments[0].amount - ((i.payments[0].amount * feeRatePercentual) / (100 * D8))) | |
580 | 610 | let sendValue = (newValue * valueAsset) | |
581 | 611 | [ScriptTransfer(Address(i.caller.bytes), sendValue, if ((Asset2 == waves)) | |
582 | 612 | then WAVES | |
583 | 613 | else fromBase58String(Asset2)), IntegerEntry(Asset2, (getAmountBlockAsset(Asset2) - sendValue)), IntegerEntry(((kp(Asset1, Asset2) + "_") + Asset2), (assetP(kp(Asset1, Asset2), Asset2) - sendValue))] | |
584 | 614 | } | |
585 | 615 | else throw("Swap denied! 0.003 AxAi is required for the swap fee.") | |
586 | 616 | else throw("Invalid rate asset") | |
587 | 617 | else throw("Invalid Swap Key.") | |
588 | 618 | else throw("Invalid Asset1 or Asset2!") | |
589 | 619 | else throw("Asset1 cannot be equal to Asset2") | |
590 | 620 | else throw("Swap is currently under maintenance.") | |
591 | 621 | else throw("dApp is currently under maintenance.") | |
592 | 622 | } | |
593 | 623 | ||
594 | 624 | ||
595 | 625 | @Verifier(tx) | |
596 | 626 | func verify () = match tx { | |
597 | 627 | case order: Order => | |
598 | 628 | true | |
599 | 629 | case e: ExchangeTransaction => | |
600 | 630 | true | |
601 | 631 | case _ => | |
602 | 632 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
603 | 633 | } | |
604 | 634 |
github/deemru/w8io/026f985 73.84 ms ◑