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