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