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