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