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