tx · HRRVoBuLYcJKP4KZGw2sHeSEWHE8hVto5UQJm4f6LMXP 3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5: -0.02000000 Waves 2023.09.24 21:42 [2769856] smart account 3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5 > SELF 0.00000000 Waves
{ "type": 13, "id": "HRRVoBuLYcJKP4KZGw2sHeSEWHE8hVto5UQJm4f6LMXP", "fee": 2000000, "feeAssetId": null, "timestamp": 1695580974946, "version": 2, "chainId": 84, "sender": "3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5", "senderPublicKey": "2LmNyaN5YAXdg9C5vsXcTLU66hsW2KUNPsN7KcHBYhUo", "proofs": [ "49MFKfKxcDY3iACL7SMGn3EbedTrgZDsBBn4JeCKjFPv55nk7yZV1R3XqefS4KYDC79LvE4PzjZCVCZaCzgY65jT" ], "script": "base64:BgIgCAISAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgIAAdWZXJzaW9uAgUxLjAuMAAOZEFwcFNpbmNlU3RhcnQAwPf3jKoxAAtsaXN0aW5nX2ZlZQCAv9YGAAlrZXkxb3duZXIJAKcIAQEgL8wj0E+YdymCOLPkHvyUyyV6f105rlHZhoS1aMWmpnsACWtleTJvd25lcgkApwgBASAvzCPQT5h3KYI4s+Qe/JTLJXp/XTmuUdmGhLVoxaamewAIVHJlYXN1cnkJAKcIAQEgzkjfc3pzZ3kooMBny03g4HEHbv5A+Wp5Ghfc7qG4JAEAClhUTkFzc2V0SUQBIAhlhLcP8IpqGvPiaOguCJAkw9MnWAPNLPYuXgvf2hWkAQljb3VudGRheXMABAdUU19EaWZmCQBlAggFCWxhc3RCbG9jawl0aW1lc3RhbXAFDmRBcHBTaW5jZVN0YXJ0BAlkYXludW1iZXIJAGsDAAEFB1RTX0RpZmYAgLiZKQUJZGF5bnVtYmVyBgFpAQxSZWdpc3RlclBhaXIBDEVudGVyQXNzZXRJRAQEcG10MQkBBXZhbHV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FldpdGhkcmF3X0xQX1BlcmNlbnRhZ2UFEFVzZXJMUFBlcmNlbnRhZ2UJAMwIAgkBBEJ1cm4CBRJSZWlzc3VlYWJsZWFzc2V0SWQIBQNwbXQGYW1vdW50CQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgICCVRvdGFsX0xQXwUMRW50ZXJBc3NldElEBRBOZXdMUFRva2VuSXNzdWVkCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIJAKwCAgkArAICAgtCYWxhbmNlX29mXwUMRW50ZXJBc3NldElEAgFfCQDYBAEFClhUTkFzc2V0SUQFE05ld1hUTkhvbGRpbmdJblBhaXIJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgkArAICCQCsAgICC0JhbGFuY2Vfb2ZfCQDYBAEFClhUTkFzc2V0SUQCAV8FDEVudGVyQXNzZXRJRAUVTmV3QXNzZXRIb2xkaW5nSW5QYWlyCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgUOVXNlckxQV29ydGhYVE4FClhUTkFzc2V0SUQJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyBRBVc2VyTFBXb3J0aEFzc2V0CQDZBAEFDEVudGVyQXNzZXRJRAUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleesiaIs=", "height": 2769856, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CbmjuMw8BKcPfHdc75ZMVKoVfDDo1ucsrzVm8KeB6uP3 Next: 99dP3YgqSnPWQ83bU8KGZtZygw3Xzhj9w9j45LcNxtbB Diff:
Old | New | Differences | |
---|---|---|---|
5 | 5 | ||
6 | 6 | let b = 1694928600000 | |
7 | 7 | ||
8 | - | let c = | |
8 | + | let c = 14000000 | |
9 | 9 | ||
10 | 10 | let d = addressFromPublicKey(base58'4Dahqn4MYNrieo9AX8qLWNCseBQNc9skQY81h4DFoote') | |
11 | 11 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "1.0.0" | |
5 | 5 | ||
6 | 6 | let b = 1694928600000 | |
7 | 7 | ||
8 | - | let c = | |
8 | + | let c = 14000000 | |
9 | 9 | ||
10 | 10 | let d = addressFromPublicKey(base58'4Dahqn4MYNrieo9AX8qLWNCseBQNc9skQY81h4DFoote') | |
11 | 11 | ||
12 | 12 | let e = addressFromPublicKey(base58'4Dahqn4MYNrieo9AX8qLWNCseBQNc9skQY81h4DFoote') | |
13 | 13 | ||
14 | 14 | let f = addressFromPublicKey(base58'EtFSDsn89XfmXQvuQXPQMbLDbaAZ1YWYZHksptpQH4gp') | |
15 | 15 | ||
16 | 16 | let g = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H' | |
17 | 17 | ||
18 | 18 | func h () = { | |
19 | 19 | let i = (lastBlock.timestamp - b) | |
20 | 20 | let j = fraction(1, i, 86400000) | |
21 | 21 | j | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | @Callable(k) | |
26 | 26 | func RegisterPair (l) = { | |
27 | 27 | let m = value(k.payments[0]) | |
28 | 28 | let n = value(k.payments[1]) | |
29 | 29 | let o = value(k.payments[2]) | |
30 | 30 | let p = toBase58String(k.caller.bytes) | |
31 | 31 | let q = !(isDefined(n.assetId)) | |
32 | 32 | let r = getString(this, ("Pair_UV_" + l)) | |
33 | 33 | let s = fromBase58String(l) | |
34 | 34 | let t = valueOrErrorMessage(assetInfo(fromBase58String(l)), (("Asset " + l) + " doesn't exist")) | |
35 | 35 | let u = t.name | |
36 | 36 | let v = t.decimals | |
37 | 37 | let w = fraction((v + 6), 1, 2) | |
38 | 38 | let x = (1 * pow(10, 0, w, 0, 0, CEILING)) | |
39 | 39 | let y = fraction(m.amount, n.amount, x) | |
40 | 40 | let z = sqrt(y, w, w, CEILING) | |
41 | 41 | let A = Issue((("LP-" + take(u, 8)) + "-XTN"), (((("LP-" + u) + "-XTN") + " is a Liquidity Provider Token Issued Against ") + l), z, w, true) | |
42 | 42 | let B = calculateAssetId(A) | |
43 | 43 | if ((r == l)) | |
44 | 44 | then throw("Pair Already Exist in List.") | |
45 | 45 | else if ((size(k.payments) != 3)) | |
46 | 46 | then throw((("Two attached assets expected as payment. Kindly Attach payment1 = XTN Token & payment2 = Token you want to List & payment3 = [" + toString(c)) + "/10^8] Waves.")) | |
47 | 47 | else if ((m.assetId != g)) | |
48 | 48 | then throw("Incorrect asset attached as payment[1], please attach XTN only.") | |
49 | 49 | else if ((100000 > m.amount)) | |
50 | 50 | then throw("Attached payment[1] amount is less than 0.1 XTN, please attach 0.1 XTN Minimum.") | |
51 | 51 | else if ((n.assetId != s)) | |
52 | 52 | then throw("Input String & Attached AssetID in payment2 is not matching.") | |
53 | 53 | else if ((o.amount != c)) | |
54 | 54 | then throw((("Attached payment[3] amount has to be exact [" + toString(c)) + "/10^8] WAVES.")) | |
55 | 55 | else if ((q == true)) | |
56 | 56 | then throw("You Attached WAVES Asset ID for Listing, please attach Tokens You want to list in payment[2].") | |
57 | 57 | else [StringEntry(("Pair_UV_" + l), l), IntegerEntry(("Listing_Fee_" + l), o.amount), IntegerEntry(((("Balance_of_" + l) + "_") + toBase58String(g)), m.amount), IntegerEntry(((("Balance_of_" + toBase58String(g)) + "_") + l), n.amount), IntegerEntry(("Total_of_Pair_Txns_" + l), 0), IntegerEntry(((("Total_Swap_Fee_Collected_" + l) + "_") + toBase58String(g)), 0), IntegerEntry(("Total_Swap_Fee_Collected_" + l), 0), A, ScriptTransfer(k.caller, z, B), ScriptTransfer(d, fraction(c, 1, 2), unit), ScriptTransfer(e, fraction(c, 1, 2), unit), StringEntry(("LP_" + l), toBase58String(B)), IntegerEntry(("Total_LP_" + l), z)] | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | ||
62 | 62 | @Callable(k) | |
63 | 63 | func oldAddLiquidity (l) = { | |
64 | 64 | let C = toBase58String(k.caller.bytes) | |
65 | 65 | let m = value(k.payments[0]) | |
66 | 66 | let n = value(k.payments[1]) | |
67 | 67 | let D = getString(this, ("Pair_UV_" + l)) | |
68 | 68 | let E = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + l)), "LP Token is Missing or May be not Generated.")) | |
69 | 69 | let F = getIntegerValue(this, ((("Balance_of_" + l) + "_") + toBase58String(g))) | |
70 | 70 | let G = getIntegerValue(this, ((("Balance_of_" + toBase58String(g)) + "_") + l)) | |
71 | 71 | let H = valueOrErrorMessage(assetInfo(fromBase58String(l)), (("Asset " + l) + " doesn't exist")) | |
72 | 72 | let v = H.decimals | |
73 | 73 | let I = F | |
74 | 74 | let J = G | |
75 | 75 | let K = pow((((I * 1000000) / J) * pow(10, 0, v, 0, 0, CEILING)), 0, 1, 0, 0, CEILING) | |
76 | 76 | let L = (6 + v) | |
77 | 77 | let M = (L / 2) | |
78 | 78 | let N = fraction(K, m.amount, pow(10, 0, L, 0, 0, CEILING)) | |
79 | 79 | let O = pow((fraction(m.amount, 1, pow(10, 0, v, 0, 0, CEILING)) * fraction(n.amount, 1, pow(10, 0, 6, 0, 0, CEILING))), 0, 5, 1, M, DOWN) | |
80 | 80 | let P = { | |
81 | 81 | let Q = getInteger(this, ((("Balance_of_" + l) + "_") + toBase58String(g))) | |
82 | 82 | if ($isInstanceOf(Q, "Int")) | |
83 | 83 | then { | |
84 | 84 | let R = Q | |
85 | 85 | R | |
86 | 86 | } | |
87 | 87 | else 0 | |
88 | 88 | } | |
89 | 89 | let S = (P + n.amount) | |
90 | 90 | let T = { | |
91 | 91 | let Q = getInteger(this, ((("Balance_of_" + toBase58String(g)) + "_") + l)) | |
92 | 92 | if ($isInstanceOf(Q, "Int")) | |
93 | 93 | then { | |
94 | 94 | let R = Q | |
95 | 95 | R | |
96 | 96 | } | |
97 | 97 | else 0 | |
98 | 98 | } | |
99 | 99 | let U = (T + m.amount) | |
100 | 100 | let V = { | |
101 | 101 | let Q = getIntegerValue(this, ("Total_LP_" + l)) | |
102 | 102 | if ($isInstanceOf(Q, "Int")) | |
103 | 103 | then { | |
104 | 104 | let R = Q | |
105 | 105 | R | |
106 | 106 | } | |
107 | 107 | else 0 | |
108 | 108 | } | |
109 | 109 | let W = (V + O) | |
110 | 110 | if ((D != l)) | |
111 | 111 | then throw("Pair is not available in Whitelisted Asset.") | |
112 | 112 | else if ((l == toBase58String(g))) | |
113 | 113 | then throw("Input can Never be a USDC AssetID. Enter Whitelisted AssetID in input as well as in payment[1] & Attach USDC as an attachment Token in payment[2].") | |
114 | 114 | else if ((size(k.payments) != 2)) | |
115 | 115 | then throw("Two attached assets expected as payment in 50%-50%. Kindly Attach payment1 = Token you want to add for Liquidity & payment2 = Equivalent Amount of USDC Token.") | |
116 | 116 | else if ((m.assetId == g)) | |
117 | 117 | then throw("You Attached USDC asset in payment[1], please attach only whitelisted Token in payment[1] along with USDC in payment[2].") | |
118 | 118 | else if ((m.assetId != fromBase58String(l))) | |
119 | 119 | then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.") | |
120 | 120 | else if ((m.assetId != fromBase58String(l))) | |
121 | 121 | then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.") | |
122 | 122 | else if ((n.assetId != g)) | |
123 | 123 | then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = USDC Token.") | |
124 | 124 | else if ((5000000 > n.amount)) | |
125 | 125 | then throw("please attach atleast 5 USDC in payment[2] & Equivalent worth of Token in payment[1]") | |
126 | 126 | else if ((n.amount != N)) | |
127 | 127 | then throw((((((("Attached payment[2] qty is not matching as per attached payment[1].payment[2] must be as int [" + toString(N)) + "] or ") + toString(fraction(N, 1, 1000000))) + ".") + takeRight(toString(N), 6)) + " USDC.")) | |
128 | 128 | else if ((1 > O)) | |
129 | 129 | then throw((("LP Token Outcome is going below " + toString(M)) + " Decimals. Please Attach min. 1 LP token or 5 USDC Atleast.")) | |
130 | 130 | else [IntegerEntry(((("Balance_of_" + l) + "_") + toBase58String(g)), S), IntegerEntry(((("Balance_of_" + toBase58String(g)) + "_") + l), U), IntegerEntry(("Total_LP_" + l), W), Reissue(E, O, true), ScriptTransfer(k.caller, O, E)] | |
131 | 131 | } | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | ||
135 | 135 | @Callable(k) | |
136 | 136 | func SwapAssetToXTNPairEntry (l) = { | |
137 | 137 | let C = toBase58String(k.caller.bytes) | |
138 | 138 | let X = if ((size(k.payments) == 1)) | |
139 | 139 | then k.payments[0] | |
140 | 140 | else throw("Whitelisted Token is required as Attached payment[1].") | |
141 | 141 | let D = getString(this, ("Pair_UV_" + l)) | |
142 | 142 | let Y = getIntegerValue(this, ((("Balance_of_" + l) + "_") + toBase58String(g))) | |
143 | 143 | let G = getIntegerValue(this, ((("Balance_of_" + toBase58String(g)) + "_") + l)) | |
144 | 144 | let Z = fraction(Y, G, (G + X.amount)) | |
145 | 145 | let aa = (Y - Z) | |
146 | 146 | let ab = 5 | |
147 | 147 | let ac = h() | |
148 | 148 | let ad = ((aa * ab) / 1000) | |
149 | 149 | let ae = ((aa - ad) - ad) | |
150 | 150 | let af = { | |
151 | 151 | let Q = getInteger(this, ((("Total_Swap_Fee_Collected_" + l) + "_") + toBase58String(g))) | |
152 | 152 | if ($isInstanceOf(Q, "Int")) | |
153 | 153 | then { | |
154 | 154 | let R = Q | |
155 | 155 | R | |
156 | 156 | } | |
157 | 157 | else 0 | |
158 | 158 | } | |
159 | 159 | let ag = ((af + ad) + ad) | |
160 | 160 | let ah = { | |
161 | 161 | let Q = getInteger(this, ((("Balance_of_" + toBase58String(g)) + "_") + l)) | |
162 | 162 | if ($isInstanceOf(Q, "Int")) | |
163 | 163 | then { | |
164 | 164 | let R = Q | |
165 | 165 | R | |
166 | 166 | } | |
167 | 167 | else 0 | |
168 | 168 | } | |
169 | 169 | let ai = (G + X.amount) | |
170 | 170 | let aj = { | |
171 | 171 | let Q = getInteger(this, ((("Balance_of_" + l) + "_") + toBase58String(g))) | |
172 | 172 | if ($isInstanceOf(Q, "Int")) | |
173 | 173 | then { | |
174 | 174 | let R = Q | |
175 | 175 | R | |
176 | 176 | } | |
177 | 177 | else 0 | |
178 | 178 | } | |
179 | 179 | let ak = ((Y - aa) + ad) | |
180 | 180 | let al = { | |
181 | 181 | let Q = getIntegerValue(this, ("Total_of_Pair_Txns_" + l)) | |
182 | 182 | if ($isInstanceOf(Q, "Int")) | |
183 | 183 | then { | |
184 | 184 | let R = Q | |
185 | 185 | R | |
186 | 186 | } | |
187 | 187 | else 0 | |
188 | 188 | } | |
189 | 189 | let am = (al + 1) | |
190 | 190 | if ((l == toBase58String(g))) | |
191 | 191 | then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input & Attach Whitelisted Asset as an attachment Token in payment[1].") | |
192 | 192 | else if ((D != l)) | |
193 | 193 | then throw("Pair is not available in Whitelisted Asset.") | |
194 | 194 | else if ((X.assetId == g)) | |
195 | 195 | then throw("You can't Attach XTN as an Attached Payment. Only Whitelisted Tokens are accepted.") | |
196 | 196 | else if ((X.assetId != fromBase58String(l))) | |
197 | 197 | then throw(("Incorrect asset attached, please attach or send " + l)) | |
198 | 198 | else if ((Y == 0)) | |
199 | 199 | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
200 | 200 | else if ((G == 0)) | |
201 | 201 | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
202 | 202 | else if ((100000 > aa)) | |
203 | 203 | then throw((("Your Attached Asset Amount is very low. Attach More " + l) + " Tokens to Claim the minimum Amount of 0.1 dollar atleast.")) | |
204 | 204 | else if ((aa > Y)) | |
205 | 205 | then throw((("Pool Only has a Liquidity of " + toString((Y / pow(10, 0, 6, 0, 0, CEILING)))) + " XTN. Add Liquidity into Pool.")) | |
206 | 206 | else [IntegerEntry(((("Total_Swap_Fee_Collected_" + l) + "_") + toBase58String(g)), ag), IntegerEntry("Current_Day", ac), IntegerEntry(("Total_of_Pair_Txns_" + l), am), IntegerEntry(((("Balance_of_" + toBase58String(g)) + "_") + l), ai), IntegerEntry(((("Balance_of_" + l) + "_") + toBase58String(g)), ak), ScriptTransfer(k.caller, ae, g), ScriptTransfer(d, fraction(ad, 1, 3), g), ScriptTransfer(e, fraction(ad, 1, 3), g), ScriptTransfer(f, fraction(ad, 1, 3), g)] | |
207 | 207 | } | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | ||
211 | 211 | @Callable(k) | |
212 | 212 | func SwapXTNToAssetPairEntry (l) = { | |
213 | 213 | let C = toBase58String(k.caller.bytes) | |
214 | 214 | let X = if ((size(k.payments) == 1)) | |
215 | 215 | then k.payments[0] | |
216 | 216 | else throw((("Only " + toBase58String(g)) + " XTN Token is required as an Attached payment[1].")) | |
217 | 217 | let Y = getIntegerValue(this, ((("Balance_of_" + l) + "_") + toBase58String(g))) | |
218 | 218 | let G = getIntegerValue(this, ((("Balance_of_" + toBase58String(g)) + "_") + l)) | |
219 | 219 | let an = fraction(Y, G, (Y + X.amount)) | |
220 | 220 | let aa = (G - an) | |
221 | 221 | let D = getString(this, ("Pair_UV_" + l)) | |
222 | 222 | let ab = 5 | |
223 | 223 | let ac = h() | |
224 | 224 | let ad = ((aa * ab) / 1000) | |
225 | 225 | let ae = ((aa - ad) - ad) | |
226 | 226 | let ao = { | |
227 | 227 | let Q = getInteger(this, ("Total_Swap_Fee_Collected_" + l)) | |
228 | 228 | if ($isInstanceOf(Q, "Int")) | |
229 | 229 | then { | |
230 | 230 | let R = Q | |
231 | 231 | R | |
232 | 232 | } | |
233 | 233 | else 0 | |
234 | 234 | } | |
235 | 235 | let ap = ((ao + ad) + ad) | |
236 | 236 | let ah = { | |
237 | 237 | let Q = getInteger(this, ((("Balance_of_" + toBase58String(g)) + "_") + l)) | |
238 | 238 | if ($isInstanceOf(Q, "Int")) | |
239 | 239 | then { | |
240 | 240 | let R = Q | |
241 | 241 | R | |
242 | 242 | } | |
243 | 243 | else 0 | |
244 | 244 | } | |
245 | 245 | let ai = ((G - aa) + ad) | |
246 | 246 | let aj = { | |
247 | 247 | let Q = getInteger(this, ((("Balance_of_" + l) + "_") + toBase58String(g))) | |
248 | 248 | if ($isInstanceOf(Q, "Int")) | |
249 | 249 | then { | |
250 | 250 | let R = Q | |
251 | 251 | R | |
252 | 252 | } | |
253 | 253 | else 0 | |
254 | 254 | } | |
255 | 255 | let ak = (Y + X.amount) | |
256 | 256 | let al = { | |
257 | 257 | let Q = getIntegerValue(this, ("Total_of_Pair_Txns_" + l)) | |
258 | 258 | if ($isInstanceOf(Q, "Int")) | |
259 | 259 | then { | |
260 | 260 | let R = Q | |
261 | 261 | R | |
262 | 262 | } | |
263 | 263 | else 0 | |
264 | 264 | } | |
265 | 265 | let am = (al + 1) | |
266 | 266 | if ((D != l)) | |
267 | 267 | then throw("Pair is not available in Whitelisted Asset.") | |
268 | 268 | else if ((l == toBase58String(g))) | |
269 | 269 | then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input & Attach XTN as an attachment Token in payment[1].") | |
270 | 270 | else if ((X.assetId != g)) | |
271 | 271 | then throw((("You can Attach " + toBase58String(g)) + " as an Attached Payment[1] to Swap XTN To Required Token. Any other asset else than XTN will be rejected.")) | |
272 | 272 | else if ((100000 > X.amount)) | |
273 | 273 | then throw("Your Attached XTN Amount is very low. Attach Atleast 0.1 XTN to Claim the minimum Tokens.") | |
274 | 274 | else if ((Y == 0)) | |
275 | 275 | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
276 | 276 | else if ((G == 0)) | |
277 | 277 | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
278 | 278 | else if ((aa > G)) | |
279 | 279 | then throw((("Pool Only has a Liquidity of " + toString(G)) + " Tokens. Add Liquidity into Pool.")) | |
280 | 280 | else [IntegerEntry(("Total_Swap_Fee_Collected_" + l), ap), IntegerEntry("Current_Day", ac), IntegerEntry(("Total_of_Pair_Txns_" + l), am), IntegerEntry(((("Balance_of_" + toBase58String(g)) + "_") + l), ai), IntegerEntry(((("Balance_of_" + l) + "_") + toBase58String(g)), ak), ScriptTransfer(k.caller, ae, fromBase58String(l)), ScriptTransfer(d, fraction(ad, 1, 3), fromBase58String(l)), ScriptTransfer(e, fraction(ad, 1, 3), fromBase58String(l)), ScriptTransfer(f, fraction(ad, 1, 3), fromBase58String(l))] | |
281 | 281 | } | |
282 | 282 | ||
283 | 283 | ||
284 | 284 | ||
285 | 285 | @Callable(k) | |
286 | 286 | func AddLiquidity (l) = { | |
287 | 287 | let C = toBase58String(k.caller.bytes) | |
288 | 288 | let m = value(k.payments[0]) | |
289 | 289 | let n = value(k.payments[1]) | |
290 | 290 | let D = getString(this, ("Pair_UV_" + l)) | |
291 | 291 | let E = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + l)), "LP Token is Missing or May be not Generated.")) | |
292 | 292 | let Y = getIntegerValue(this, ((("Balance_of_" + l) + "_") + toBase58String(g))) | |
293 | 293 | let G = getIntegerValue(this, ((("Balance_of_" + toBase58String(g)) + "_") + l)) | |
294 | 294 | let H = valueOrErrorMessage(assetInfo(fromBase58String(l)), (("Asset " + l) + " doesn't exist")) | |
295 | 295 | let v = H.decimals | |
296 | 296 | let w = fraction((v + 6), 1, 2) | |
297 | 297 | let x = (1 * pow(10, 0, w, 0, 0, CEILING)) | |
298 | 298 | let y = fraction(m.amount, n.amount, x) | |
299 | 299 | let z = sqrt(y, w, w, CEILING) | |
300 | 300 | let aq = pow(10, 0, v, 0, 0, CEILING) | |
301 | 301 | let ar = pow(10, 0, 6, 0, 0, CEILING) | |
302 | 302 | let as = fraction(Y, aq, G) | |
303 | 303 | let at = fraction(m.amount, as, 1) | |
304 | 304 | let au = fraction(at, 1, aq) | |
305 | 305 | let av = au | |
306 | 306 | let aw = { | |
307 | 307 | let Q = getInteger(this, ((("Balance_of_" + l) + "_") + toBase58String(g))) | |
308 | 308 | if ($isInstanceOf(Q, "Int")) | |
309 | 309 | then { | |
310 | 310 | let R = Q | |
311 | 311 | R | |
312 | 312 | } | |
313 | 313 | else 0 | |
314 | 314 | } | |
315 | 315 | let ax = (aw + n.amount) | |
316 | 316 | let T = { | |
317 | 317 | let Q = getInteger(this, ((("Balance_of_" + toBase58String(g)) + "_") + l)) | |
318 | 318 | if ($isInstanceOf(Q, "Int")) | |
319 | 319 | then { | |
320 | 320 | let R = Q | |
321 | 321 | R | |
322 | 322 | } | |
323 | 323 | else 0 | |
324 | 324 | } | |
325 | 325 | let U = (T + m.amount) | |
326 | 326 | let V = { | |
327 | 327 | let Q = getIntegerValue(this, ("Total_LP_" + l)) | |
328 | 328 | if ($isInstanceOf(Q, "Int")) | |
329 | 329 | then { | |
330 | 330 | let R = Q | |
331 | 331 | R | |
332 | 332 | } | |
333 | 333 | else 0 | |
334 | 334 | } | |
335 | 335 | let W = (V + z) | |
336 | 336 | if ((D != l)) | |
337 | 337 | then throw("Pair is not available in Whitelisted Asset.") | |
338 | 338 | else if ((l == toBase58String(g))) | |
339 | 339 | then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input as well as in payment[1] & Attach XTN as an attachment Token in payment[2].") | |
340 | 340 | else if ((size(k.payments) != 2)) | |
341 | 341 | then throw("Two attached assets are expected in payment. Kindly Attach payment1 = Token you want to add for Liquidity & payment2 = Amount of XTN Token.") | |
342 | 342 | else if ((m.assetId == g)) | |
343 | 343 | then throw("You Attached XTN asset in payment[1], please attach only whitelisted Token in payment[1] along with XTN in payment[2].") | |
344 | 344 | else if ((m.assetId != fromBase58String(l))) | |
345 | 345 | then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.") | |
346 | 346 | else if ((n.assetId != g)) | |
347 | 347 | then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = XTN Token.") | |
348 | 348 | else if ((100000 > n.amount)) | |
349 | 349 | then throw("please attach atleast 0.1 XTN in payment[2] & Equivalent worth of Token in payment[1]") | |
350 | 350 | else if ((n.amount != av)) | |
351 | 351 | then throw((((((("Attached payment[2] qty is not matching as per attached payment[1].payment[2] must be as int [" + toString(av)) + "] or ") + toString(fraction(av, 1, 1000000))) + ".") + takeRight(toString(av), 6)) + " XTN.")) | |
352 | 352 | else if ((1 > z)) | |
353 | 353 | then throw("LP Token Outcome is going below 1 in Fractional. Please Attach more amount.") | |
354 | 354 | else [IntegerEntry(((("Balance_of_" + l) + "_") + toBase58String(g)), ax), IntegerEntry(((("Balance_of_" + toBase58String(g)) + "_") + l), U), IntegerEntry(("Total_LP_" + l), W), IntegerEntry("Token_Price", as), IntegerEntry("User_XTN_Deposit_Amount", av), Reissue(E, z, true), ScriptTransfer(k.caller, z, E)] | |
355 | 355 | } | |
356 | 356 | ||
357 | 357 | ||
358 | 358 | ||
359 | 359 | @Callable(k) | |
360 | 360 | func RemoveLiquidity (l) = { | |
361 | 361 | let C = toBase58String(k.caller.bytes) | |
362 | 362 | let X = if ((size(k.payments) == 1)) | |
363 | 363 | then k.payments[0] | |
364 | 364 | else throw("No payment attached, Please Attach LP Token as payment[1].") | |
365 | 365 | let D = getString(this, ("Pair_UV_" + l)) | |
366 | 366 | let ay = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + l)), "LP Token is Missing or not Generated.")) | |
367 | 367 | let H = valueOrErrorMessage(assetInfo(fromBase58String(l)), (("Asset " + l) + " doesn't exist")) | |
368 | 368 | let v = H.decimals | |
369 | 369 | let L = (6 + v) | |
370 | 370 | let M = (L / 2) | |
371 | 371 | let az = getIntegerValue(this, ("Total_LP_" + l)) | |
372 | 372 | let aA = pow(fraction(X.amount, pow(10, 0, 8, 0, 0, CEILING), az), 6, 1, 0, 6, CEILING) | |
373 | 373 | let Y = getIntegerValue(this, ((("Balance_of_" + l) + "_") + toBase58String(g))) | |
374 | 374 | let G = getIntegerValue(this, ((("Balance_of_" + toBase58String(g)) + "_") + l)) | |
375 | 375 | let aB = fraction(Y, aA, pow(10, 0, 8, 0, 0, CEILING)) | |
376 | 376 | let aC = fraction(G, aA, pow(10, 0, 8, 0, 0, CEILING)) | |
377 | 377 | let aw = { | |
378 | 378 | let Q = getInteger(this, ((("Balance_of_" + l) + "_") + toBase58String(g))) | |
379 | 379 | if ($isInstanceOf(Q, "Int")) | |
380 | 380 | then { | |
381 | 381 | let R = Q | |
382 | 382 | R | |
383 | 383 | } | |
384 | 384 | else 0 | |
385 | 385 | } | |
386 | 386 | let ax = (aw - aB) | |
387 | 387 | let T = { | |
388 | 388 | let Q = getInteger(this, ((("Balance_of_" + toBase58String(g)) + "_") + l)) | |
389 | 389 | if ($isInstanceOf(Q, "Int")) | |
390 | 390 | then { | |
391 | 391 | let R = Q | |
392 | 392 | R | |
393 | 393 | } | |
394 | 394 | else 0 | |
395 | 395 | } | |
396 | 396 | let U = (T - aC) | |
397 | 397 | let V = { | |
398 | 398 | let Q = getIntegerValue(this, ("Total_LP_" + l)) | |
399 | 399 | if ($isInstanceOf(Q, "Int")) | |
400 | 400 | then { | |
401 | 401 | let R = Q | |
402 | 402 | R | |
403 | 403 | } | |
404 | 404 | else 0 | |
405 | 405 | } | |
406 | 406 | let W = (V - X.amount) | |
407 | 407 | if ((D != l)) | |
408 | 408 | then throw("Pair is not available in Whitelist.") | |
409 | 409 | else if ((fromBase58String(l) == g)) | |
410 | 410 | then throw("Don't choose XTN AssetID as Input, Only Whitelisted Asset as Input String & Attach LP Tokens as payment[1]") | |
411 | 411 | else if ((X.assetId != ay)) | |
412 | 412 | then throw("Wrong Asset is attached in payment[1] or LP Token Not Found or Missing.") | |
413 | 413 | else if ((1 > aA)) | |
414 | 414 | then throw("Your LP Token amount % is very low to convert.") | |
415 | 415 | else if ((1 > aB)) | |
416 | 416 | then throw("Your LP Token conversion amount is very low to convert or less than 0.000001 XTN.") | |
417 | 417 | else if ((1 > aC)) | |
418 | 418 | then throw("Your LP Token conversion amount is very low to convert or less than fraction value of Token.") | |
419 | 419 | else [IntegerEntry("Withdraw_LP_Percentage", aA), Burn(ay, X.amount), IntegerEntry(("Total_LP_" + l), W), IntegerEntry(((("Balance_of_" + l) + "_") + toBase58String(g)), ax), IntegerEntry(((("Balance_of_" + toBase58String(g)) + "_") + l), U), ScriptTransfer(k.caller, aB, g), ScriptTransfer(k.caller, aC, fromBase58String(l))] | |
420 | 420 | } | |
421 | 421 | ||
422 | 422 | ||
423 | 423 | @Verifier(aD) | |
424 | 424 | func aE () = sigVerify(aD.bodyBytes, aD.proofs[0], aD.senderPublicKey) | |
425 | 425 |
github/deemru/w8io/169f3d6 61.52 ms ◑