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