tx · 8wrf2BbavtGGVQbwCFn61pytKxkHuiuEsnsCDjPMW9b9 3N8b7mamWRbw6YjYJgsNGzTsKAbsbf4zVSA: -0.02800000 Waves 2022.07.09 00:30 [2131267] smart account 3N8b7mamWRbw6YjYJgsNGzTsKAbsbf4zVSA > SELF 0.00000000 Waves
{ "type": 13, "id": "8wrf2BbavtGGVQbwCFn61pytKxkHuiuEsnsCDjPMW9b9", "fee": 2800000, "feeAssetId": null, "timestamp": 1657315812607, "version": 2, "chainId": 84, "sender": "3N8b7mamWRbw6YjYJgsNGzTsKAbsbf4zVSA", "senderPublicKey": "FA2TFZp55AkfpLAK7toKNNdufbHH3cY6aCSSMFcFPafT", "proofs": [ "3mfwYGNbrtqN7rJiATSk1x4MyeyjM7kuTdzcATVQPoCWETSb7CsS9N2zPuk5VwZ74p8qegUe7duvytH789yGqf4E" ], "script": "base64:AAIFAAAAAAAAAFEIAhIJCgcICAgICAEBEgMKAQQSBQoDBAQEEgMKAQESAwoBARIDCgEIEgUKAwgICBIFCgMECAgSBgoEBAgIARIECgIICBIFCgMICAESBAoCCAgAAAAiAAAAAARtYWluAgAAAAptYWluX2Fzc2V0AAAAAAFsAgAAAAlscF9hc3NldF8AAAAAA2FhMQIAAAAGcG9vbF9fAAAAAAJzYQIAAAAPU1RBS0lOR19BTU9VTlRfAAAAAAJsYQIAAAANTEVBU0VfQU1PVU5UXwAAAAACaXgCAAAAA0lEXwAAAAAHcmF0ZUZlZQIAAAATcGVyY2VudGFnZV9yYXRlX2ZlZQAAAAAOZGVwb3NpdF9oZWlnaHQCAAAAEkRlcG9zaXRfSGVpZ2h0X09mXwAAAAACRDgAAAAAAAX14QAAAAAAAkQ2AAAAAAAAD0JAAAAAAA9jb250cmFjdEFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQgFAAAABHRoaXMAAAAFYnl0ZXMAAAAADGV4Y2hhbmdlUmF0ZQAAAAAAAAAABQEAAAARZ2V0QWRkcmVzc0lmVmFsaWQAAAABAAAAB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AAAAJrcAAAAAIFAAAABkFzc2V0MQUAAAAGQXNzZXQyAgAAAAFfBQAAAAZBc3NldDIJAABlAAAAAgkBAAAABmFzc2V0UAAAAAIJAQAAAAJrcAAAAAIFAAAABkFzc2V0MQUAAAAGQXNzZXQyBQAAAAZBc3NldDIFAAAACXNlbmRWYWx1ZQUAAAADbmlsCQAAAgAAAAECAAAANVN3YXAgZGVuaWVkISAwLjAwMyBBeEFpIGlzIHJlcXVpcmVkIGZvciB0aGUgc3dhcCBmZWUuCQAAAgAAAAECAAAAEkludmFsaWQgcmF0ZSBhc3NldAkAAAIAAAABAgAAABFJbnZhbGlkIFN3YXAgS2V5LgkAAAIAAAABAgAAABlJbnZhbGlkIEFzc2V0MSBvciBBc3NldDIhCQAAAgAAAAECAAAAIEFzc2V0MSBjYW5ub3QgYmUgZXF1YWwgdG8gQXNzZXQyCQAAAgAAAAECAAAAJFN3YXAgaXMgY3VycmVudGx5IHVuZGVyIG1haW50ZW5hbmNlLgkAAAIAAAABAgAAACRkQXBwIGlzIGN1cnJlbnRseSB1bmRlciBtYWludGVuYW5jZS4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAFT3JkZXIEAAAABW9yZGVyBQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5xrliIQ==", "height": 2131267, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HWaaUzotisY9ku1UmjebBeDbKPgqUnqfV1ipwJaBAoU7 Next: 2mgr5EKTXBYMaufxdeq1D2QgcyqsTtYAp4R3ah2DkkKT Diff:
Old | New | Differences | |
---|---|---|---|
45 | 45 | let bcD = "block_distribuition" | |
46 | 46 | ||
47 | 47 | let total_locked = "Total_Tokens_Locked_" | |
48 | - | ||
49 | - | let axai1 = base58'AtR3c6X6q21VGFdtu73PspcCw1pERV4csVS97LHZBbSF' | |
50 | - | ||
51 | - | let usdn1 = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
52 | 48 | ||
53 | 49 | let usdn = "usdn_asset" | |
54 | 50 | ||
485 | 481 | @Verifier(tx) | |
486 | 482 | func verify () = match tx { | |
487 | 483 | case order: Order => | |
488 | - | if ((order.orderType == Buy)) | |
489 | - | then if (if ((order.assetPair.amountAsset == axai1)) | |
490 | - | then (order.assetPair.priceAsset == usdn1) | |
491 | - | else false) | |
492 | - | then sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey) | |
493 | - | else false | |
494 | - | else if (if ((order.assetPair.amountAsset == axai1)) | |
495 | - | then (order.assetPair.priceAsset == usdn1) | |
496 | - | else false) | |
497 | - | then sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey) | |
498 | - | else false | |
484 | + | true | |
499 | 485 | case e: ExchangeTransaction => | |
500 | - | if ((e.buyOrder.orderType == Buy)) | |
501 | - | then if (if ((e.buyOrder.assetPair.amountAsset == axai1)) | |
502 | - | then (e.buyOrder.assetPair.priceAsset == usdn1) | |
503 | - | else false) | |
504 | - | then sigVerify(e.bodyBytes, e.proofs[0], e.senderPublicKey) | |
505 | - | else false | |
506 | - | else if (if ((e.sellOrder.assetPair.amountAsset == axai1)) | |
507 | - | then (e.sellOrder.assetPair.priceAsset == usdn1) | |
508 | - | else false) | |
509 | - | then sigVerify(e.bodyBytes, e.proofs[0], e.senderPublicKey) | |
510 | - | else false | |
486 | + | true | |
511 | 487 | case _ => | |
512 | 488 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
513 | 489 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let main = "main_asset" | |
5 | 5 | ||
6 | 6 | let l = "lp_asset_" | |
7 | 7 | ||
8 | 8 | let aa1 = "pool__" | |
9 | 9 | ||
10 | 10 | let sa = "STAKING_AMOUNT_" | |
11 | 11 | ||
12 | 12 | let la = "LEASE_AMOUNT_" | |
13 | 13 | ||
14 | 14 | let ix = "ID_" | |
15 | 15 | ||
16 | 16 | let rateFee = "percentage_rate_fee" | |
17 | 17 | ||
18 | 18 | let deposit_height = "Deposit_Height_Of_" | |
19 | 19 | ||
20 | 20 | let D8 = 100000000 | |
21 | 21 | ||
22 | 22 | let D6 = 1000000 | |
23 | 23 | ||
24 | 24 | let contractAddress = Address(this.bytes) | |
25 | 25 | ||
26 | 26 | let exchangeRate = 5 | |
27 | 27 | ||
28 | 28 | func getAddressIfValid (address) = toString(valueOrErrorMessage(addressFromString(address), (("Can't parse " + address) + " as address"))) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func getAssetIfValid (assetId) = toBase58String(valueOrErrorMessage(value(assetInfo(fromBase58String(assetId))).id, (("Asset Id: " + assetId) + " is invalid."))) | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func getAmountBlockAsset (assetId) = valueOrElse(getIntegerValue(this, assetId), 0) | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | let ac = "activate" | |
38 | 38 | ||
39 | 39 | let poolAc = "activate_pools" | |
40 | 40 | ||
41 | 41 | let swapAc = "activate_swap" | |
42 | 42 | ||
43 | 43 | let liquidityAc = "activate_liquidity" | |
44 | 44 | ||
45 | 45 | let bcD = "block_distribuition" | |
46 | 46 | ||
47 | 47 | let total_locked = "Total_Tokens_Locked_" | |
48 | - | ||
49 | - | let axai1 = base58'AtR3c6X6q21VGFdtu73PspcCw1pERV4csVS97LHZBbSF' | |
50 | - | ||
51 | - | let usdn1 = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
52 | 48 | ||
53 | 49 | let usdn = "usdn_asset" | |
54 | 50 | ||
55 | 51 | let usdt = "usdt_asset" | |
56 | 52 | ||
57 | 53 | let usdc = "usdc_asset" | |
58 | 54 | ||
59 | 55 | let ngnn = "ngnn_asset" | |
60 | 56 | ||
61 | 57 | let aWaves = "accept_waves" | |
62 | 58 | ||
63 | 59 | func kp (asset1,asset2) = (((aa1 + asset1) + "_") + asset2) | |
64 | 60 | ||
65 | 61 | ||
66 | 62 | func validPoolK (key) = valueOrElse(getInteger(this, key), 0) | |
67 | 63 | ||
68 | 64 | ||
69 | 65 | func kpAddress (address,key) = valueOrElse(getIntegerValue(this, ((key + "_") + address)), 0) | |
70 | 66 | ||
71 | 67 | ||
72 | 68 | func poolAA (address,key,asset) = valueOrElse(getIntegerValue(this, ((((key + "_") + address) + "_") + asset)), 1) | |
73 | 69 | ||
74 | 70 | ||
75 | 71 | func assetP (key,asset) = valueOrElse(getIntegerValue(this, ((key + "_") + asset)), 1) | |
76 | 72 | ||
77 | 73 | ||
78 | 74 | func pkey (Asset1,Asset2,address) = (((deposit_height + kp(Asset1, Asset2)) + "_") + address) | |
79 | 75 | ||
80 | 76 | ||
81 | 77 | func lpBlocked (address,key) = valueOrElse(getIntegerValue(this, ((("STAKE_LP_" + address) + "_") + key)), 0) | |
82 | 78 | ||
83 | 79 | ||
84 | 80 | func adminVerification () = match getStringValue(this, "admin") { | |
85 | 81 | case t: String => | |
86 | 82 | Address(fromBase58String(t)) | |
87 | 83 | case _ => | |
88 | 84 | this | |
89 | 85 | } | |
90 | 86 | ||
91 | 87 | ||
92 | 88 | @Callable(i) | |
93 | 89 | func constructor (MainAssetId,UsdnAssetId,UsdtAssetId,UsdcAssetId,NgnnAssetId,percentageRateSwap,blockDistribution) = if (if ((i.caller == this)) | |
94 | 90 | then true | |
95 | 91 | else (i.caller == adminVerification())) | |
96 | 92 | then { | |
97 | 93 | let keyPoolUsdnUsdt = kp(UsdnAssetId, UsdtAssetId) | |
98 | 94 | let keyPoolUsdnUsdc = kp(UsdnAssetId, UsdcAssetId) | |
99 | 95 | let keyPoolUsdnNgnn = kp(UsdnAssetId, NgnnAssetId) | |
100 | 96 | let keyPoolUsdnWaves = kp(UsdnAssetId, "WAVES") | |
101 | 97 | let keyPoolUsdnMainAsset = kp(UsdnAssetId, MainAssetId) | |
102 | 98 | let keyPoolUsdcUsdt = kp(UsdcAssetId, UsdtAssetId) | |
103 | 99 | let keyPoolUsdcNgnn = kp(UsdcAssetId, NgnnAssetId) | |
104 | 100 | let keyPoolUsdcWaves = kp(UsdcAssetId, "WAVES") | |
105 | 101 | let keyPoolUsdcMainAsset = kp(UsdcAssetId, MainAssetId) | |
106 | 102 | let keyPoolUsdtNgnn = kp(UsdtAssetId, NgnnAssetId) | |
107 | 103 | let keyPoolUsdtWaves = kp(UsdtAssetId, "WAVES") | |
108 | 104 | let keyPoolUsdtMainAsset = kp(UsdtAssetId, MainAssetId) | |
109 | 105 | let keyPoolNgnnWaves = kp(NgnnAssetId, "WAVES") | |
110 | 106 | let keyPoolNgnnMainAsset = kp(NgnnAssetId, MainAssetId) | |
111 | 107 | let keyPoolMainWaves = kp(MainAssetId, "WAVES") | |
112 | 108 | [StringEntry(main, MainAssetId), StringEntry(usdn, UsdnAssetId), StringEntry(usdc, UsdcAssetId), StringEntry(usdt, UsdtAssetId), StringEntry(ngnn, NgnnAssetId), 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)] | |
113 | 109 | } | |
114 | 110 | else throw("Only the Admin itself can invoke this function") | |
115 | 111 | ||
116 | 112 | ||
117 | 113 | ||
118 | 114 | @Callable(i) | |
119 | 115 | func activate (v) = if (if ((i.caller == this)) | |
120 | 116 | then true | |
121 | 117 | else (i.caller == adminVerification())) | |
122 | 118 | then [BooleanEntry(ac, v)] | |
123 | 119 | else throw("Only the Admin itself can invoke this function") | |
124 | 120 | ||
125 | 121 | ||
126 | 122 | ||
127 | 123 | @Callable(i) | |
128 | 124 | func maintenance (pools,swap,stake) = if (if ((i.caller == this)) | |
129 | 125 | then true | |
130 | 126 | else (i.caller == adminVerification())) | |
131 | 127 | then [BooleanEntry(poolAc, pools), BooleanEntry(swapAc, swap), BooleanEntry(liquidityAc, stake)] | |
132 | 128 | else throw("Only the Admin itself can invoke this function") | |
133 | 129 | ||
134 | 130 | ||
135 | 131 | ||
136 | 132 | @Callable(i) | |
137 | 133 | func percentualRateFeeSwapEdit (rate) = if (if ((i.caller == this)) | |
138 | 134 | then true | |
139 | 135 | else (i.caller == adminVerification())) | |
140 | 136 | then [IntegerEntry(rateFee, rate)] | |
141 | 137 | else throw("Only the Admin itself can invoke this function") | |
142 | 138 | ||
143 | 139 | ||
144 | 140 | ||
145 | 141 | @Callable(i) | |
146 | 142 | func blockDistribution (newValue) = if (if ((i.caller == this)) | |
147 | 143 | then true | |
148 | 144 | else (i.caller == adminVerification())) | |
149 | 145 | then [IntegerEntry(bcD, newValue)] | |
150 | 146 | else throw("Only the Admin itself can invoke this function") | |
151 | 147 | ||
152 | 148 | ||
153 | 149 | ||
154 | 150 | @Callable(i) | |
155 | 151 | func addAdmin (address) = if (if ((i.caller == this)) | |
156 | 152 | then true | |
157 | 153 | else (i.caller == adminVerification())) | |
158 | 154 | then [StringEntry("admin", address)] | |
159 | 155 | else throw("Only the Admin itself can invoke this function") | |
160 | 156 | ||
161 | 157 | ||
162 | 158 | ||
163 | 159 | @Callable(i) | |
164 | 160 | func lpAssetCreateForPairPool (asset1,asset2,name) = { | |
165 | 161 | let key = validPoolK(kp(asset1, asset2)) | |
166 | 162 | if (if ((i.caller == this)) | |
167 | 163 | then true | |
168 | 164 | else (i.caller == adminVerification())) | |
169 | 165 | then if (!((key == 0))) | |
170 | 166 | then { | |
171 | 167 | let assetLpCreate = Issue(("LP_" + name), ((("LP asset for pool liquidity in AxAi Swap pair " + asset1) + "_") + asset2), 1, 8, true) | |
172 | 168 | let idAssetLp = calculateAssetId(assetLpCreate) | |
173 | 169 | [StringEntry((l + kp(asset1, asset2)), toBase58String(idAssetLp)), assetLpCreate] | |
174 | 170 | } | |
175 | 171 | else throw("Invalid Pool Key. Try inverting the assets") | |
176 | 172 | else throw("Only the Admin itself can invoke this function") | |
177 | 173 | } | |
178 | 174 | ||
179 | 175 | ||
180 | 176 | ||
181 | 177 | @Callable(i) | |
182 | 178 | func deposit (pool,Asset1,Asset2) = { | |
183 | 179 | let power = getBooleanValue(this, ac) | |
184 | 180 | let liquidityPower = getBooleanValue(this, liquidityAc) | |
185 | 181 | let MainAsset = getStringValue(this, main) | |
186 | 182 | let lpAssetId = if (pool) | |
187 | 183 | then getStringValue(this, (l + kp(Asset1, Asset2))) | |
188 | 184 | else MainAsset | |
189 | 185 | if (power) | |
190 | 186 | then if (!(liquidityPower)) | |
191 | 187 | then if ((i.payments[0].assetId != fromBase58String(lpAssetId))) | |
192 | 188 | then throw((("Invalid asset! Kindly Deposit Only " + MainAsset) + " or valid asset lp")) | |
193 | 189 | else if (!(pool)) | |
194 | 190 | then { | |
195 | 191 | let currentKey = toBase58String(i.caller.bytes) | |
196 | 192 | let currentAmount = match getInteger(this, currentKey) { | |
197 | 193 | case a: Int => | |
198 | 194 | a | |
199 | 195 | case _ => | |
200 | 196 | 0 | |
201 | 197 | } | |
202 | 198 | let newAmount = (currentAmount + i.payments[0].amount) | |
203 | 199 | let useramount = IntegerEntry(currentKey, newAmount) | |
204 | 200 | let userdepositheight = IntegerEntry((deposit_height + currentKey), height) | |
205 | 201 | let previouslockbalance = match getInteger(this, "Total_Tokens_Locked:") { | |
206 | 202 | case a: Int => | |
207 | 203 | a | |
208 | 204 | case _ => | |
209 | 205 | 0 | |
210 | 206 | } | |
211 | 207 | let totaltoken = (previouslockbalance + i.payments[0].amount) | |
212 | 208 | let TLV = IntegerEntry("Total_Tokens_Locked:", totaltoken) | |
213 | 209 | [useramount, userdepositheight, TLV] | |
214 | 210 | } | |
215 | 211 | else { | |
216 | 212 | let poolKey = kp(Asset1, Asset2) | |
217 | 213 | let key = validPoolK(poolKey) | |
218 | 214 | if (!((key == 0))) | |
219 | 215 | then { | |
220 | 216 | let currentKey = toBase58String(i.caller.bytes) | |
221 | 217 | let currentAmount = match getInteger(this, ((("STAKE_LP_" + currentKey) + "_") + poolKey)) { | |
222 | 218 | case a: Int => | |
223 | 219 | a | |
224 | 220 | case _ => | |
225 | 221 | 0 | |
226 | 222 | } | |
227 | 223 | let newAmount = (currentAmount + i.payments[0].amount) | |
228 | 224 | let useramount = IntegerEntry(((("STAKE_LP_" + currentKey) + "_") + poolKey), newAmount) | |
229 | 225 | let userdepositheight = IntegerEntry(((((deposit_height + "_") + currentKey) + "_") + poolKey), height) | |
230 | 226 | let previouslockbalance = match getInteger(this, ("Total_Tokens_LP_Locked_" + poolKey)) { | |
231 | 227 | case a: Int => | |
232 | 228 | a | |
233 | 229 | case _ => | |
234 | 230 | 0 | |
235 | 231 | } | |
236 | 232 | let totaltoken = (previouslockbalance + i.payments[0].amount) | |
237 | 233 | let TLV = IntegerEntry(("Total_Tokens_LP_Locked_" + poolKey), totaltoken) | |
238 | 234 | [useramount, userdepositheight, TLV] | |
239 | 235 | } | |
240 | 236 | else throw("Invalid Pool key.") | |
241 | 237 | } | |
242 | 238 | else throw("liquidity is currently under maintenance.") | |
243 | 239 | else throw("dApp is currently under maintenance.") | |
244 | 240 | } | |
245 | 241 | ||
246 | 242 | ||
247 | 243 | ||
248 | 244 | @Callable(i) | |
249 | 245 | func remove (pool,Asset1,Asset2,amount) = { | |
250 | 246 | let power = getBooleanValue(this, ac) | |
251 | 247 | let liquidityPower = getBooleanValue(this, liquidityAc) | |
252 | 248 | let pmt = i.payments[0] | |
253 | 249 | let MainAsset = fromBase58String(getStringValue(this, main)) | |
254 | 250 | if (power) | |
255 | 251 | then if (!(liquidityPower)) | |
256 | 252 | then { | |
257 | 253 | let currentKey = toBase58String(i.caller.bytes) | |
258 | 254 | let currentAmount = valueOrElse(if (pool) | |
259 | 255 | then getIntegerValue(this, ((("STAKE_LP_" + currentKey) + "_") + kp(Asset1, Asset2))) | |
260 | 256 | else getInteger(this, currentKey), 0) | |
261 | 257 | let swapheightkeyname = if (pool) | |
262 | 258 | then ((((deposit_height + "_") + currentKey) + "_") + kp(Asset1, Asset2)) | |
263 | 259 | else (deposit_height + currentKey) | |
264 | 260 | let previouslockbalance = if (pool) | |
265 | 261 | then getIntegerValue(this, ("Total_Tokens_LP_Locked_" + kp(Asset1, Asset2))) | |
266 | 262 | else getIntegerValue(this, "Total_Tokens_Locked:") | |
267 | 263 | let totaltoken = (previouslockbalance - amount) | |
268 | 264 | let diff = (height - getIntegerValue(this, swapheightkeyname)) | |
269 | 265 | let bcd = getIntegerValue(this, bcD) | |
270 | 266 | let reward = ((diff * bcd) * D8) | |
271 | 267 | let feeCalc = (reward / (previouslockbalance / amount)) | |
272 | 268 | if ((0 > amount)) | |
273 | 269 | then throw(if (pool) | |
274 | 270 | then (((("Can't withdraw negative " + Asset1) + "/") + Asset2) + " amount") | |
275 | 271 | else "Can't withdraw negative AxAi amount") | |
276 | 272 | else { | |
277 | 273 | let newAmount = (currentAmount - amount) | |
278 | 274 | if ((0 > newAmount)) | |
279 | 275 | then throw(if (pool) | |
280 | 276 | then (((("Not enough Asset Lp " + Asset1) + "/") + Asset2) + " balance") | |
281 | 277 | else "Not enough AxAi balance") | |
282 | 278 | else [IntegerEntry(if (pool) | |
283 | 279 | then ((("STAKE_LP_" + currentKey) + "_") + kp(Asset1, Asset2)) | |
284 | 280 | else currentKey, newAmount), IntegerEntry(if (pool) | |
285 | 281 | then ("Total_Tokens_LP_Locked_" + kp(Asset1, Asset2)) | |
286 | 282 | else "Total_Tokens_Locked:", totaltoken), ScriptTransfer(i.caller, amount, if (pool) | |
287 | 283 | then fromBase58String(getStringValue(this, (l + kp(Asset1, Asset2)))) | |
288 | 284 | else MainAsset), ScriptTransfer(i.caller, feeCalc, MainAsset)] | |
289 | 285 | } | |
290 | 286 | } | |
291 | 287 | else throw("liquidity is currently under maintenance.") | |
292 | 288 | else throw("dApp is currently under maintenance.") | |
293 | 289 | } | |
294 | 290 | ||
295 | 291 | ||
296 | 292 | ||
297 | 293 | @Callable(i) | |
298 | 294 | func addLiquidity (Asset1,Asset2) = { | |
299 | 295 | let power = getBooleanValue(this, ac) | |
300 | 296 | let poolActivate = getBooleanValue(this, poolAc) | |
301 | 297 | let key = validPoolK(kp(Asset1, Asset2)) | |
302 | 298 | let asset1 = i.payments[0].assetId | |
303 | 299 | let asset2 = i.payments[1].assetId | |
304 | 300 | let USDN = toBytes(getStringValue(this, usdn)) | |
305 | 301 | let USDC = toBytes(getStringValue(this, usdc)) | |
306 | 302 | let USDT = toBytes(getStringValue(this, usdt)) | |
307 | 303 | let NGNN = toBytes(getStringValue(this, ngnn)) | |
308 | 304 | let MainAsset = fromBase58String(getStringValue(this, main)) | |
309 | 305 | let lpAssetId = getStringValue(this, (l + kp(Asset1, Asset2))) | |
310 | 306 | if (power) | |
311 | 307 | then if (!(poolActivate)) | |
312 | 308 | then if (if (if (!((asset1 == asset2))) | |
313 | 309 | then (asset1 == fromBase58String(Asset1)) | |
314 | 310 | else false) | |
315 | 311 | then (asset2 == fromBase58String(Asset2)) | |
316 | 312 | else false) | |
317 | 313 | then if (if (if (if (if (if ((asset1 == USDN)) | |
318 | 314 | then true | |
319 | 315 | else (asset1 == USDC)) | |
320 | 316 | then true | |
321 | 317 | else (asset1 == USDT)) | |
322 | 318 | then true | |
323 | 319 | else (asset1 == NGNN)) | |
324 | 320 | then true | |
325 | 321 | else (asset1 == MainAsset)) | |
326 | 322 | then if (if (if (if ((asset2 == USDN)) | |
327 | 323 | then true | |
328 | 324 | else (asset2 == USDC)) | |
329 | 325 | then true | |
330 | 326 | else (asset2 == USDT)) | |
331 | 327 | then true | |
332 | 328 | else (asset2 == NGNN)) | |
333 | 329 | then true | |
334 | 330 | else (asset2 == MainAsset) | |
335 | 331 | else false) | |
336 | 332 | then if (!((key == 0))) | |
337 | 333 | then { | |
338 | 334 | let currentKey = toBase58String(i.caller.bytes) | |
339 | 335 | let currentAmount = kpAddress(currentKey, kp(Asset1, Asset2)) | |
340 | 336 | let currentAmountAsset1 = poolAA(currentKey, kp(Asset1, Asset2), Asset1) | |
341 | 337 | let currentAmountAsset2 = poolAA(currentKey, kp(Asset1, Asset2), Asset2) | |
342 | 338 | let asset1pool = assetP(kp(Asset1, Asset2), Asset1) | |
343 | 339 | let asset2pool = assetP(kp(Asset1, Asset2), Asset2) | |
344 | 340 | let receiveLp = (asset1pool / asset2pool) | |
345 | 341 | let newcurrentAmountAsset1 = (currentAmountAsset1 + i.payments[0].amount) | |
346 | 342 | let newcurrentAmountAsset2 = (currentAmountAsset2 + i.payments[1].amount) | |
347 | 343 | let newcurrentAmount = (currentAmount + receiveLp) | |
348 | 344 | let newasset1pool = (asset1pool + i.payments[0].amount) | |
349 | 345 | let newasset2pool = (asset2pool + i.payments[1].amount) | |
350 | 346 | [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))] | |
351 | 347 | } | |
352 | 348 | else throw("Invalid Pool Key.") | |
353 | 349 | else throw("Invalid Asset1 or Asset2!") | |
354 | 350 | else throw("Asset1 cannot be equal to Asset2") | |
355 | 351 | else throw("liquidity is currently under maintenance.") | |
356 | 352 | else throw("dApp is currently under maintenance.") | |
357 | 353 | } | |
358 | 354 | ||
359 | 355 | ||
360 | 356 | ||
361 | 357 | @Callable(i) | |
362 | 358 | func removeLiquidity (Asset1,Asset2,Amount) = { | |
363 | 359 | let currentKey = toBase58String(i.caller.bytes) | |
364 | 360 | let power = getBooleanValue(this, ac) | |
365 | 361 | let poolActivate = getBooleanValue(this, poolAc) | |
366 | 362 | let poolKey = kp(Asset1, Asset2) | |
367 | 363 | let key = validPoolK(poolKey) | |
368 | 364 | let asset1 = fromBase58String(Asset1) | |
369 | 365 | let asset2 = fromBase58String(Asset2) | |
370 | 366 | let USDN = toBytes(getStringValue(this, usdn)) | |
371 | 367 | let USDC = toBytes(getStringValue(this, usdc)) | |
372 | 368 | let USDT = toBytes(getStringValue(this, usdt)) | |
373 | 369 | let NGNN = toBytes(getStringValue(this, ngnn)) | |
374 | 370 | let MainAsset = fromBase58String(getStringValue(this, main)) | |
375 | 371 | let lpAssetId = getStringValue(this, (l + kp(Asset1, Asset2))) | |
376 | 372 | let currentAmount = kpAddress(currentKey, kp(Asset1, Asset2)) | |
377 | 373 | let amountLpBlocked = lpBlocked(currentKey, poolKey) | |
378 | 374 | let totalLP = getIntegerValue(this, lpAssetId) | |
379 | 375 | let totalAsset1Pool = getIntegerValue(this, ((kp(Asset1, Asset2) + "_") + Asset1)) | |
380 | 376 | let totalAsset2Pool = getIntegerValue(this, ((kp(Asset1, Asset2) + "_") + Asset2)) | |
381 | 377 | if (power) | |
382 | 378 | then if (!(poolActivate)) | |
383 | 379 | then if (!((Asset1 == Asset2))) | |
384 | 380 | then if (if (if (if (if (if ((asset1 == USDN)) | |
385 | 381 | then true | |
386 | 382 | else (asset1 == USDC)) | |
387 | 383 | then true | |
388 | 384 | else (asset1 == USDT)) | |
389 | 385 | then true | |
390 | 386 | else (asset1 == NGNN)) | |
391 | 387 | then true | |
392 | 388 | else (asset1 == MainAsset)) | |
393 | 389 | then if (if (if (if ((asset2 == USDN)) | |
394 | 390 | then true | |
395 | 391 | else (asset2 == USDC)) | |
396 | 392 | then true | |
397 | 393 | else (asset2 == USDT)) | |
398 | 394 | then true | |
399 | 395 | else (asset2 == NGNN)) | |
400 | 396 | then true | |
401 | 397 | else (asset2 == MainAsset) | |
402 | 398 | else false) | |
403 | 399 | then if (!((key == 0))) | |
404 | 400 | then if (!((currentAmount == 0))) | |
405 | 401 | then if (((currentAmount - amountLpBlocked) >= Amount)) | |
406 | 402 | then { | |
407 | 403 | let calcLP = (Amount / totalLP) | |
408 | 404 | let receiveAsset1 = (calcLP * totalAsset1Pool) | |
409 | 405 | let receiveAsset2 = (calcLP * totalAsset2Pool) | |
410 | 406 | let asset1pool = assetP(kp(Asset1, Asset2), Asset1) | |
411 | 407 | let asset2pool = assetP(kp(Asset1, Asset2), Asset2) | |
412 | 408 | let currentAmountAsset1 = poolAA(currentKey, kp(Asset1, Asset2), Asset1) | |
413 | 409 | let currentAmountAsset2 = poolAA(currentKey, kp(Asset1, Asset2), Asset2) | |
414 | 410 | let newcurrentAmountAsset1 = (currentAmountAsset1 - receiveAsset1) | |
415 | 411 | let newcurrentAmountAsset2 = (currentAmountAsset2 - receiveAsset2) | |
416 | 412 | let newcurrentAmount = (currentAmount - Amount) | |
417 | 413 | let newasset1pool = (asset1pool - receiveAsset1) | |
418 | 414 | let newasset2pool = (asset2pool - receiveAsset2) | |
419 | 415 | [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))] | |
420 | 416 | } | |
421 | 417 | else throw("Amount to be withdrawn greater than the amount available for withdrawal.") | |
422 | 418 | else throw("You have no locked values in the pool") | |
423 | 419 | else throw("Invalid Pool Key.") | |
424 | 420 | else throw("Invalid Asset1 or Asset2!") | |
425 | 421 | else throw("Asset1 cannot be equal to Asset2") | |
426 | 422 | else throw("liquidity is currently under maintenance.") | |
427 | 423 | else throw("dApp is currently under maintenance.") | |
428 | 424 | } | |
429 | 425 | ||
430 | 426 | ||
431 | 427 | ||
432 | 428 | @Callable(i) | |
433 | 429 | func swap (Asset1,Asset2) = { | |
434 | 430 | let currentKey = toBase58String(i.caller.bytes) | |
435 | 431 | let power = getBooleanValue(this, ac) | |
436 | 432 | let swapActivate = getBooleanValue(this, swapAc) | |
437 | 433 | let poolKey = kp(Asset1, Asset2) | |
438 | 434 | let key = validPoolK(poolKey) | |
439 | 435 | let asset1 = i.payments[0].assetId | |
440 | 436 | let USDN = toBytes(getStringValue(this, usdn)) | |
441 | 437 | let USDC = toBytes(getStringValue(this, usdc)) | |
442 | 438 | let USDT = toBytes(getStringValue(this, usdt)) | |
443 | 439 | let NGNN = toBytes(getStringValue(this, ngnn)) | |
444 | 440 | let MainAsset = fromBase58String(getStringValue(this, main)) | |
445 | 441 | let totalAsset1 = getIntegerValue(this, ((kp(Asset1, Asset2) + "_") + Asset1)) | |
446 | 442 | let totalAsset2 = getIntegerValue(this, ((kp(Asset1, Asset2) + "_") + Asset2)) | |
447 | 443 | let feeRatePercentual = getIntegerValue(this, rateFee) | |
448 | 444 | if (power) | |
449 | 445 | then if (!(swapActivate)) | |
450 | 446 | then if (if (!((Asset1 == Asset2))) | |
451 | 447 | then if ((asset1 == fromBase58String(Asset1))) | |
452 | 448 | then true | |
453 | 449 | else (asset1 == fromBase58String(Asset2)) | |
454 | 450 | else false) | |
455 | 451 | then if (if (if (if (if ((asset1 == USDN)) | |
456 | 452 | then true | |
457 | 453 | else (asset1 == USDC)) | |
458 | 454 | then true | |
459 | 455 | else (asset1 == USDT)) | |
460 | 456 | then true | |
461 | 457 | else (asset1 == NGNN)) | |
462 | 458 | then true | |
463 | 459 | else (asset1 == MainAsset)) | |
464 | 460 | then if (!((key == 0))) | |
465 | 461 | then if ((i.payments[1].assetId == MainAsset)) | |
466 | 462 | then if ((i.payments[1].amount == 300000)) | |
467 | 463 | then { | |
468 | 464 | let valueAsset = if (!((asset1 == fromBase58String(Asset1)))) | |
469 | 465 | then (totalAsset1 / totalAsset2) | |
470 | 466 | else (totalAsset2 / totalAsset1) | |
471 | 467 | let newValue = (i.payments[0].amount - ((i.payments[0].amount * feeRatePercentual) / (100 * D8))) | |
472 | 468 | let sendValue = (newValue * valueAsset) | |
473 | 469 | [ScriptTransfer(Address(i.caller.bytes), sendValue, fromBase58String(Asset2)), IntegerEntry(Asset2, (getAmountBlockAsset(Asset2) - sendValue)), IntegerEntry(((kp(Asset1, Asset2) + "_") + Asset2), (assetP(kp(Asset1, Asset2), Asset2) - sendValue))] | |
474 | 470 | } | |
475 | 471 | else throw("Swap denied! 0.003 AxAi is required for the swap fee.") | |
476 | 472 | else throw("Invalid rate asset") | |
477 | 473 | else throw("Invalid Swap Key.") | |
478 | 474 | else throw("Invalid Asset1 or Asset2!") | |
479 | 475 | else throw("Asset1 cannot be equal to Asset2") | |
480 | 476 | else throw("Swap is currently under maintenance.") | |
481 | 477 | else throw("dApp is currently under maintenance.") | |
482 | 478 | } | |
483 | 479 | ||
484 | 480 | ||
485 | 481 | @Verifier(tx) | |
486 | 482 | func verify () = match tx { | |
487 | 483 | case order: Order => | |
488 | - | if ((order.orderType == Buy)) | |
489 | - | then if (if ((order.assetPair.amountAsset == axai1)) | |
490 | - | then (order.assetPair.priceAsset == usdn1) | |
491 | - | else false) | |
492 | - | then sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey) | |
493 | - | else false | |
494 | - | else if (if ((order.assetPair.amountAsset == axai1)) | |
495 | - | then (order.assetPair.priceAsset == usdn1) | |
496 | - | else false) | |
497 | - | then sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey) | |
498 | - | else false | |
484 | + | true | |
499 | 485 | case e: ExchangeTransaction => | |
500 | - | if ((e.buyOrder.orderType == Buy)) | |
501 | - | then if (if ((e.buyOrder.assetPair.amountAsset == axai1)) | |
502 | - | then (e.buyOrder.assetPair.priceAsset == usdn1) | |
503 | - | else false) | |
504 | - | then sigVerify(e.bodyBytes, e.proofs[0], e.senderPublicKey) | |
505 | - | else false | |
506 | - | else if (if ((e.sellOrder.assetPair.amountAsset == axai1)) | |
507 | - | then (e.sellOrder.assetPair.priceAsset == usdn1) | |
508 | - | else false) | |
509 | - | then sigVerify(e.bodyBytes, e.proofs[0], e.senderPublicKey) | |
510 | - | else false | |
486 | + | true | |
511 | 487 | case _ => | |
512 | 488 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
513 | 489 | } | |
514 | 490 |
github/deemru/w8io/169f3d6 96.25 ms ◑