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