tx · 7tMnrYKQVUQZRMhPaqDLPVohDd7jK1hasg4D6PQcgQ77 3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5: -0.01900000 Waves 2023.09.23 12:34 [2767847] smart account 3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5 > SELF 0.00000000 Waves
{ "type": 13, "id": "7tMnrYKQVUQZRMhPaqDLPVohDd7jK1hasg4D6PQcgQ77", "fee": 1900000, "feeAssetId": null, "timestamp": 1695461635883, "version": 2, "chainId": 84, "sender": "3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5", "senderPublicKey": "2LmNyaN5YAXdg9C5vsXcTLU66hsW2KUNPsN7KcHBYhUo", "proofs": [ "2XhJwRTgBFXsf92NKZ72D833zgAMACthB6U4ZCsvFBPPvKS5nC2pAfj8aucPejVQwVG7uoDHn1xdapk9MHvUMKes" ], "script": "base64:BgIgCAISAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgEAA5kQXBwU2luY2VTdGFydADA9/eMqjEAClhUTkFzc2V0SUQBIAhlhLcP8IpqGvPiaOguCJAkw9MnWAPNLPYuXgvf2hWkABFDb2xsZWN0RmVlQWRkcmVzcwkApwgBASBSg9mgi9eQkjsz5eBARHIbc7Hg/F4fmB0sxZ6ySMfiIAEJY291bnRkYXlzAAQHVFNfRGlmZgkAZQIIBQlsYXN0QmxvY2sJdGltZXN0YW1wBQ5kQXBwU2luY2VTdGFydAQJZGF5bnVtYmVyCQBrAwABBQdUU19EaWZmAIC4mSkFCWRheW51bWJlcgYBaQEMUmVnaXN0ZXJQYWlyAQxFbnRlckFzc2V0SUQEBHBtdDEJAQV2YWx1ZQEJAJEDAggFAWkIcGF5bWVudHMAAAQEcG10MgkBBXZhbHVlAQkAkQMCCAUBaQhwYXltZW50cwABBApjdXJyZW50S2V5CQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMEBVdBVkVTCQEBIQEJAQlpc0RlZmluZWQBCAUEcG10Mgdhc3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bv3NBjnUEABuVAmG2GsqSUigivLj8HTLJa92 Next: Dz9D7jaAeq8q4rjcV8Ki4YmD6sPSKvhoghAGibB48anp Diff:
Old | New | Differences | |
---|---|---|---|
224 | 224 | else if ((pmt2.assetId != XTNAssetID)) | |
225 | 225 | then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = XTN Token.") | |
226 | 226 | else if ((100000 > pmt2.amount)) | |
227 | - | then throw("please attach atleast | |
227 | + | then throw("please attach atleast 0.1 XTN in payment[2] & Equivalent worth of Token in payment[1]") | |
228 | 228 | else if ((1 > getSqrt)) | |
229 | 229 | then throw("LP Token Outcome is going below 1 in Fractional. Please Attach more amount.") | |
230 | 230 | else [IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewXTNHoldingInPair), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewAssetHoldingInPair), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), Reissue(ReissueassetId, getSqrt, true), ScriptTransfer(i.caller, getSqrt, ReissueassetId)] |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let dAppSinceStart = 1694928600000 | |
5 | 5 | ||
6 | 6 | let XTNAssetID = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H' | |
7 | 7 | ||
8 | 8 | let CollectFeeAddress = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR') | |
9 | 9 | ||
10 | 10 | func countdays () = { | |
11 | 11 | let TS_Diff = (lastBlock.timestamp - dAppSinceStart) | |
12 | 12 | let daynumber = fraction(1, TS_Diff, 86400000) | |
13 | 13 | daynumber | |
14 | 14 | } | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | @Callable(i) | |
18 | 18 | func RegisterPair (EnterAssetID) = { | |
19 | 19 | let pmt1 = value(i.payments[0]) | |
20 | 20 | let pmt2 = value(i.payments[1]) | |
21 | 21 | let currentKey = toBase58String(i.caller.bytes) | |
22 | 22 | let WAVES = !(isDefined(pmt2.assetId)) | |
23 | 23 | let fetchpair = getString(this, ("Pair_UV_" + EnterAssetID)) | |
24 | 24 | let assetinfopmt2 = fromBase58String(EnterAssetID) | |
25 | 25 | let Currentday = countdays() | |
26 | 26 | let info = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist")) | |
27 | 27 | let name = info.name | |
28 | 28 | let decimals = info.decimals | |
29 | 29 | let LPdecimals = fraction((decimals + 6), 1, 2) | |
30 | 30 | let FirstLPQty = (1 * pow(10, 0, LPdecimals, 0, 0, CEILING)) | |
31 | 31 | let multiply_amounts = fraction(pmt1.amount, pmt2.amount, FirstLPQty) | |
32 | 32 | let getSqrt = sqrt(multiply_amounts, LPdecimals, LPdecimals, CEILING) | |
33 | 33 | let LPissue = Issue((("LP-" + take(name, 8)) + "-XTN"), (((("LP-" + name) + "-XTN") + " is a Liquidity Provider Token Issued Against ") + EnterAssetID), getSqrt, LPdecimals, true) | |
34 | 34 | let LPid = calculateAssetId(LPissue) | |
35 | 35 | if ((fetchpair == EnterAssetID)) | |
36 | 36 | then throw("Pair Already Exist in List.") | |
37 | 37 | else if ((size(i.payments) != 2)) | |
38 | 38 | then throw("Two attached assets expected as payment. Kindly Attach payment1 = WAVES Token & payment2 = Token you want to List.") | |
39 | 39 | else if ((pmt1.assetId != XTNAssetID)) | |
40 | 40 | then throw("Incorrect asset attached as payment[1], please attach XTN only.") | |
41 | 41 | else if ((100000 > pmt1.amount)) | |
42 | 42 | then throw((((("You attached only " + toString(fraction(pmt1.amount, 1, 100000000))) + ".") + toString(fraction(pmt1.amount, 1, 10000000))) + " WAVES for Listing in payment[1], please attach 10 WAVES.")) | |
43 | 43 | else if ((pmt2.assetId != assetinfopmt2)) | |
44 | 44 | then throw("Input String & Attached AssetID in payment2 is not matching.") | |
45 | 45 | else if ((WAVES == true)) | |
46 | 46 | then throw("You Attached WAVES Asset ID for Listing, please attach Tokens You want to list in payment[2].") | |
47 | 47 | else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID), IntegerEntry(("Listing_Fee_" + EnterAssetID), pmt1.amount), ScriptTransfer(i.caller, getSqrt, XTNAssetID), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), pmt1.amount), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), pmt2.amount), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), 0), IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), 0), IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), 0), IntegerEntry(((((toString(Currentday) + "_Day_Volume_") + EnterAssetID) + "_") + toBase58String(XTNAssetID)), 0), IntegerEntry(((((toString(Currentday) + "_Day_Volume_") + toBase58String(XTNAssetID)) + "_") + EnterAssetID), 0), LPissue, StringEntry(("LP_" + EnterAssetID), toBase58String(LPid)), IntegerEntry(("Total_LP_" + EnterAssetID), getSqrt)] | |
48 | 48 | } | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | ||
52 | 52 | @Callable(i) | |
53 | 53 | func SwapAssetToXTNPairEntry (EnterAssetID) = { | |
54 | 54 | let calleraddress = toBase58String(i.caller.bytes) | |
55 | 55 | let pmt = if ((size(i.payments) == 1)) | |
56 | 56 | then i.payments[0] | |
57 | 57 | else throw("Whitelisted Token is required as Attached payment[1].") | |
58 | 58 | let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID)) | |
59 | 59 | let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) | |
60 | 60 | let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) | |
61 | 61 | let newbalanceofXTN = fraction(CheckXTNBalance, CheckAssetBalance, (CheckAssetBalance + pmt.amount)) | |
62 | 62 | let quantityofpriceasset = (CheckXTNBalance - newbalanceofXTN) | |
63 | 63 | let SwapFee = 3 | |
64 | 64 | let Currentday = countdays() | |
65 | 65 | let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000) | |
66 | 66 | let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive) | |
67 | 67 | let SumupofAssetToXTNSwapFee = match getInteger(this, ((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) { | |
68 | 68 | case a: Int => | |
69 | 69 | a | |
70 | 70 | case _ => | |
71 | 71 | 0 | |
72 | 72 | } | |
73 | 73 | let NewSumupofAssetToXTNSwapFee = ((SumupofAssetToXTNSwapFee + SwapFeetoreceive) + SwapFeetoreceive) | |
74 | 74 | let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) { | |
75 | 75 | case a: Int => | |
76 | 76 | a | |
77 | 77 | case _ => | |
78 | 78 | 0 | |
79 | 79 | } | |
80 | 80 | let NewSumupofAssetBalance = (CheckAssetBalance + pmt.amount) | |
81 | 81 | let SumupXTNBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) { | |
82 | 82 | case a: Int => | |
83 | 83 | a | |
84 | 84 | case _ => | |
85 | 85 | 0 | |
86 | 86 | } | |
87 | 87 | let NewSumupofXTNBalance = ((CheckXTNBalance - quantityofpriceasset) + SwapFeetoreceive) | |
88 | 88 | let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) { | |
89 | 89 | case a: Int => | |
90 | 90 | a | |
91 | 91 | case _ => | |
92 | 92 | 0 | |
93 | 93 | } | |
94 | 94 | let NewTPT = (TOPT + 1) | |
95 | 95 | if ((EnterAssetID == toBase58String(XTNAssetID))) | |
96 | 96 | then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input & Attach Whitelisted Asset as an attachment Token in payment[1].") | |
97 | 97 | else if ((checkpairisavailableornot != EnterAssetID)) | |
98 | 98 | then throw("Pair is not available in Whitelisted Asset.") | |
99 | 99 | else if ((pmt.assetId == XTNAssetID)) | |
100 | 100 | then throw("You can't Attach XTN as an Attached Payment. Only Whitelisted Tokens are accepted.") | |
101 | 101 | else if ((pmt.assetId != fromBase58String(EnterAssetID))) | |
102 | 102 | then throw(("Incorrect asset attached, please attach or send " + EnterAssetID)) | |
103 | 103 | else if ((CheckXTNBalance == 0)) | |
104 | 104 | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
105 | 105 | else if ((CheckAssetBalance == 0)) | |
106 | 106 | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
107 | 107 | else if ((100000 > quantityofpriceasset)) | |
108 | 108 | then throw((("Your Attached Asset Amount is very low. Attach More " + EnterAssetID) + " Tokens to Claim the minimum Amount of 0.1 dollar atleast.")) | |
109 | 109 | else if ((quantityofpriceasset > CheckXTNBalance)) | |
110 | 110 | then throw((("Pool Only has a Liquidity of " + toString((CheckXTNBalance / pow(10, 0, 6, 0, 0, CEILING)))) + " XTN. Add Liquidity into Pool.")) | |
111 | 111 | else [IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofAssetToXTNSwapFee), IntegerEntry("Current_Day", Currentday), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofXTNBalance), ScriptTransfer(i.caller, userbalancetoreceive, XTNAssetID), ScriptTransfer(CollectFeeAddress, SwapFeetoreceive, XTNAssetID)] | |
112 | 112 | } | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | ||
116 | 116 | @Callable(i) | |
117 | 117 | func SwapXTNToAssetPairEntry (EnterAssetID) = { | |
118 | 118 | let calleraddress = toBase58String(i.caller.bytes) | |
119 | 119 | let pmt = if ((size(i.payments) == 1)) | |
120 | 120 | then i.payments[0] | |
121 | 121 | else throw((("Only " + toBase58String(XTNAssetID)) + " XTN Token is required as an Attached payment[1].")) | |
122 | 122 | let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) | |
123 | 123 | let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) | |
124 | 124 | let newbalanceofAsset = fraction(CheckXTNBalance, CheckAssetBalance, (CheckXTNBalance + pmt.amount)) | |
125 | 125 | let quantityofpriceasset = (CheckAssetBalance - newbalanceofAsset) | |
126 | 126 | let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID)) | |
127 | 127 | let SwapFee = 3 | |
128 | 128 | let Currentday = countdays() | |
129 | 129 | let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000) | |
130 | 130 | let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive) | |
131 | 131 | let SumupofXTNToAssetSwapFee = match getInteger(this, ("Total_Swap_Fee_Collected_" + EnterAssetID)) { | |
132 | 132 | case a: Int => | |
133 | 133 | a | |
134 | 134 | case _ => | |
135 | 135 | 0 | |
136 | 136 | } | |
137 | 137 | let NewSumupofXTNToAssetSwapFee = ((SumupofXTNToAssetSwapFee + SwapFeetoreceive) + SwapFeetoreceive) | |
138 | 138 | let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) { | |
139 | 139 | case a: Int => | |
140 | 140 | a | |
141 | 141 | case _ => | |
142 | 142 | 0 | |
143 | 143 | } | |
144 | 144 | let NewSumupofAssetBalance = ((CheckAssetBalance - quantityofpriceasset) + SwapFeetoreceive) | |
145 | 145 | let SumupXTNBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) { | |
146 | 146 | case a: Int => | |
147 | 147 | a | |
148 | 148 | case _ => | |
149 | 149 | 0 | |
150 | 150 | } | |
151 | 151 | let NewSumupofXTNBalance = (CheckXTNBalance + pmt.amount) | |
152 | 152 | let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) { | |
153 | 153 | case a: Int => | |
154 | 154 | a | |
155 | 155 | case _ => | |
156 | 156 | 0 | |
157 | 157 | } | |
158 | 158 | let NewTPT = (TOPT + 1) | |
159 | 159 | if ((checkpairisavailableornot != EnterAssetID)) | |
160 | 160 | then throw("Pair is not available in Whitelisted Asset.") | |
161 | 161 | else if ((EnterAssetID == toBase58String(XTNAssetID))) | |
162 | 162 | then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input & Attach XTN as an attachment Token in payment[1].") | |
163 | 163 | else if ((pmt.assetId != XTNAssetID)) | |
164 | 164 | then throw("You can Attach XTN as an Attached Payment[1] to Swap XTN To Required Token. Any other asset else than XTN will be rejected.") | |
165 | 165 | else if ((100000 > pmt.amount)) | |
166 | 166 | then throw("Your Attached XTN Amount is very low. Attach Atleast 0.1 XTN to Claim the minimum Tokens.") | |
167 | 167 | else if ((CheckXTNBalance == 0)) | |
168 | 168 | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
169 | 169 | else if ((CheckAssetBalance == 0)) | |
170 | 170 | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
171 | 171 | else if ((quantityofpriceasset > CheckAssetBalance)) | |
172 | 172 | then throw((("Pool Only has a Liquidity of " + toString(CheckAssetBalance)) + " Tokens. Add Liquidity into Pool.")) | |
173 | 173 | else [IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), NewSumupofXTNToAssetSwapFee), IntegerEntry("Current_Day", Currentday), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofXTNBalance), ScriptTransfer(i.caller, userbalancetoreceive, fromBase58String(EnterAssetID)), ScriptTransfer(CollectFeeAddress, SwapFeetoreceive, fromBase58String(EnterAssetID))] | |
174 | 174 | } | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | ||
178 | 178 | @Callable(i) | |
179 | 179 | func LatestAddLiquidity (EnterAssetID) = { | |
180 | 180 | let calleraddress = toBase58String(i.caller.bytes) | |
181 | 181 | let pmt1 = value(i.payments[0]) | |
182 | 182 | let pmt2 = value(i.payments[1]) | |
183 | 183 | let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID)) | |
184 | 184 | let ReissueassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or May be not Generated.")) | |
185 | 185 | let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) | |
186 | 186 | let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) | |
187 | 187 | let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist")) | |
188 | 188 | let decimals = decimalsinfo.decimals | |
189 | 189 | let LPdecimals = fraction((decimals + 6), 1, 2) | |
190 | 190 | let FirstLPQty = (1 * pow(10, 0, LPdecimals, 0, 0, CEILING)) | |
191 | 191 | let multiply_amounts = fraction(pmt1.amount, pmt2.amount, FirstLPQty) | |
192 | 192 | let getSqrt = sqrt(multiply_amounts, LPdecimals, LPdecimals, CEILING) | |
193 | 193 | let XTNHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) { | |
194 | 194 | case a: Int => | |
195 | 195 | a | |
196 | 196 | case _ => | |
197 | 197 | 0 | |
198 | 198 | } | |
199 | 199 | let NewXTNHoldingInPair = (XTNHoldingInPair + pmt2.amount) | |
200 | 200 | let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) { | |
201 | 201 | case a: Int => | |
202 | 202 | a | |
203 | 203 | case _ => | |
204 | 204 | 0 | |
205 | 205 | } | |
206 | 206 | let NewAssetHoldingInPair = (AssetHoldingInPair + pmt1.amount) | |
207 | 207 | let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) { | |
208 | 208 | case a: Int => | |
209 | 209 | a | |
210 | 210 | case _ => | |
211 | 211 | 0 | |
212 | 212 | } | |
213 | 213 | let NewLPTokenIssued = (LPTokenIssued + getSqrt) | |
214 | 214 | if ((checkpairisavailableornot != EnterAssetID)) | |
215 | 215 | then throw("Pair is not available in Whitelisted Asset.") | |
216 | 216 | else if ((EnterAssetID == toBase58String(XTNAssetID))) | |
217 | 217 | 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].") | |
218 | 218 | else if ((size(i.payments) != 2)) | |
219 | 219 | then throw("Two attached assets are expected in payment. Kindly Attach payment1 = Token you want to add for Liquidity & payment2 = Amount of XTN Token.") | |
220 | 220 | else if ((pmt1.assetId == XTNAssetID)) | |
221 | 221 | then throw("You Attached XTN asset in payment[1], please attach only whitelisted Token in payment[1] along with XTN in payment[2].") | |
222 | 222 | else if ((pmt1.assetId != fromBase58String(EnterAssetID))) | |
223 | 223 | then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.") | |
224 | 224 | else if ((pmt2.assetId != XTNAssetID)) | |
225 | 225 | then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = XTN Token.") | |
226 | 226 | else if ((100000 > pmt2.amount)) | |
227 | - | then throw("please attach atleast | |
227 | + | then throw("please attach atleast 0.1 XTN in payment[2] & Equivalent worth of Token in payment[1]") | |
228 | 228 | else if ((1 > getSqrt)) | |
229 | 229 | then throw("LP Token Outcome is going below 1 in Fractional. Please Attach more amount.") | |
230 | 230 | else [IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewXTNHoldingInPair), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewAssetHoldingInPair), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), Reissue(ReissueassetId, getSqrt, true), ScriptTransfer(i.caller, getSqrt, ReissueassetId)] | |
231 | 231 | } | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | ||
235 | 235 | @Callable(i) | |
236 | 236 | func AddLiquidity (EnterAssetID) = { | |
237 | 237 | let calleraddress = toBase58String(i.caller.bytes) | |
238 | 238 | let pmt1 = value(i.payments[0]) | |
239 | 239 | let pmt2 = value(i.payments[1]) | |
240 | 240 | let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID)) | |
241 | 241 | let ReissueassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or May be not Generated.")) | |
242 | 242 | let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) | |
243 | 243 | let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) | |
244 | 244 | let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist")) | |
245 | 245 | let decimals = decimalsinfo.decimals | |
246 | 246 | let arg1 = CheckXTNBalance | |
247 | 247 | let arg2 = CheckAssetBalance | |
248 | 248 | let args3 = pow((((arg1 * 1000000) / arg2) * pow(10, 0, decimals, 0, 0, CEILING)), 0, 1, 0, 0, CEILING) | |
249 | 249 | let bothassetsdecimals = (6 + decimals) | |
250 | 250 | let sharedecimals = (bothassetsdecimals / 2) | |
251 | 251 | let quantityofEnterAssetID = fraction(args3, pmt1.amount, pow(10, 0, bothassetsdecimals, 0, 0, CEILING)) | |
252 | 252 | let quantityofLPToken1 = pow((fraction(pmt1.amount, 1, pow(10, 0, decimals, 0, 0, CEILING)) * fraction(pmt2.amount, 1, pow(10, 0, 6, 0, 0, CEILING))), 0, 5, 1, sharedecimals, DOWN) | |
253 | 253 | let XTNHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) { | |
254 | 254 | case a: Int => | |
255 | 255 | a | |
256 | 256 | case _ => | |
257 | 257 | 0 | |
258 | 258 | } | |
259 | 259 | let NewXTNHoldingInPair = (XTNHoldingInPair + pmt2.amount) | |
260 | 260 | let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) { | |
261 | 261 | case a: Int => | |
262 | 262 | a | |
263 | 263 | case _ => | |
264 | 264 | 0 | |
265 | 265 | } | |
266 | 266 | let NewAssetHoldingInPair = (AssetHoldingInPair + pmt1.amount) | |
267 | 267 | let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) { | |
268 | 268 | case a: Int => | |
269 | 269 | a | |
270 | 270 | case _ => | |
271 | 271 | 0 | |
272 | 272 | } | |
273 | 273 | let NewLPTokenIssued = (LPTokenIssued + quantityofLPToken1) | |
274 | 274 | if ((checkpairisavailableornot != EnterAssetID)) | |
275 | 275 | then throw("Pair is not available in Whitelisted Asset.") | |
276 | 276 | else if ((EnterAssetID == toBase58String(XTNAssetID))) | |
277 | 277 | 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].") | |
278 | 278 | else if ((size(i.payments) != 2)) | |
279 | 279 | 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 XTN Token.") | |
280 | 280 | else if ((pmt1.assetId == XTNAssetID)) | |
281 | 281 | then throw("You Attached XTN asset in payment[1], please attach only whitelisted Token in payment[1] along with XTN in payment[2].") | |
282 | 282 | else if ((pmt1.assetId != fromBase58String(EnterAssetID))) | |
283 | 283 | then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.") | |
284 | 284 | else if ((pmt2.assetId != XTNAssetID)) | |
285 | 285 | then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = XTN Token.") | |
286 | 286 | else if ((5000000 > pmt2.amount)) | |
287 | 287 | then throw("please attach atleast 5 XTN in payment[2] & Equivalent worth of Token in payment[1]") | |
288 | 288 | else if ((pmt2.amount != quantityofEnterAssetID)) | |
289 | 289 | then throw((((((("Attached payment[2] qty is not matching as per attached payment[1].payment[2] must be as int [" + toString(quantityofEnterAssetID)) + "] or ") + toString(fraction(quantityofEnterAssetID, 1, 1000000))) + ".") + takeRight(toString(quantityofEnterAssetID), 6)) + " XTN.")) | |
290 | 290 | else if ((1 > quantityofLPToken1)) | |
291 | 291 | then throw((("LP Token Outcome is going below " + toString(sharedecimals)) + " Decimals. Please Attach min. 1 LP token or 5 XTN Atleast.")) | |
292 | 292 | else [IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewXTNHoldingInPair), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewAssetHoldingInPair), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), Reissue(ReissueassetId, quantityofLPToken1, true), ScriptTransfer(i.caller, quantityofLPToken1, ReissueassetId)] | |
293 | 293 | } | |
294 | 294 | ||
295 | 295 | ||
296 | 296 | ||
297 | 297 | @Callable(i) | |
298 | 298 | func RemoveLiquidity (EnterAssetID) = { | |
299 | 299 | let calleraddress = toBase58String(i.caller.bytes) | |
300 | 300 | let pmt = if ((size(i.payments) == 1)) | |
301 | 301 | then i.payments[0] | |
302 | 302 | else throw("No payment attached, Please Attach LP Token as payment[1].") | |
303 | 303 | let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID)) | |
304 | 304 | let ReissueableassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or not Generated.")) | |
305 | 305 | let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist")) | |
306 | 306 | let decimals = decimalsinfo.decimals | |
307 | 307 | let bothassetsdecimals = (6 + decimals) | |
308 | 308 | let sharedecimals = (bothassetsdecimals / 2) | |
309 | 309 | let CheckTotalLPAmount = getIntegerValue(this, ("Total_LP_" + EnterAssetID)) | |
310 | 310 | let UserLPPercentage = pow(fraction(pmt.amount, pow(10, 0, 8, 0, 0, CEILING), CheckTotalLPAmount), 6, 1, 0, 6, CEILING) | |
311 | 311 | let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) | |
312 | 312 | let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) | |
313 | 313 | let UserLPWorthXTN = fraction(CheckXTNBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING)) | |
314 | 314 | let UserLPWorthAsset = fraction(CheckAssetBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING)) | |
315 | 315 | let XTNHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) { | |
316 | 316 | case a: Int => | |
317 | 317 | a | |
318 | 318 | case _ => | |
319 | 319 | 0 | |
320 | 320 | } | |
321 | 321 | let NewXTNHoldingInPair = (XTNHoldingInPair - UserLPWorthXTN) | |
322 | 322 | let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) { | |
323 | 323 | case a: Int => | |
324 | 324 | a | |
325 | 325 | case _ => | |
326 | 326 | 0 | |
327 | 327 | } | |
328 | 328 | let NewAssetHoldingInPair = (AssetHoldingInPair - UserLPWorthAsset) | |
329 | 329 | let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) { | |
330 | 330 | case a: Int => | |
331 | 331 | a | |
332 | 332 | case _ => | |
333 | 333 | 0 | |
334 | 334 | } | |
335 | 335 | let NewLPTokenIssued = (LPTokenIssued - pmt.amount) | |
336 | 336 | if ((checkpairisavailableornot != EnterAssetID)) | |
337 | 337 | then throw("Pair is not available in Whitelist.") | |
338 | 338 | else if ((fromBase58String(EnterAssetID) == XTNAssetID)) | |
339 | 339 | then throw("Don't choose XTN AssetID as Input, Only Whitelisted Asset as Input String & Attach LP Tokens as payment[1]") | |
340 | 340 | else if ((pmt.assetId != ReissueableassetId)) | |
341 | 341 | then throw("Wrong Asset is attached in payment[1] or LP Token Not Found or Missing.") | |
342 | 342 | else if ((1 > UserLPPercentage)) | |
343 | 343 | then throw("Your LP Token amount % is very low to convert.") | |
344 | 344 | else if ((1 > UserLPWorthXTN)) | |
345 | 345 | then throw("Your LP Token conversion amount is very low to convert or less than 0.000001 XTN.") | |
346 | 346 | else if ((1 > UserLPWorthAsset)) | |
347 | 347 | then throw("Your LP Token conversion amount is very low to convert or less than fraction value of Token.") | |
348 | 348 | else [IntegerEntry("Withdraw_LP_Percentage", UserLPPercentage), Burn(ReissueableassetId, pmt.amount), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewXTNHoldingInPair), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewAssetHoldingInPair), ScriptTransfer(i.caller, UserLPWorthXTN, XTNAssetID), ScriptTransfer(i.caller, UserLPWorthAsset, fromBase58String(EnterAssetID))] | |
349 | 349 | } | |
350 | 350 | ||
351 | 351 | ||
352 | 352 | @Verifier(tx) | |
353 | 353 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
354 | 354 |
github/deemru/w8io/169f3d6 65.56 ms ◑