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 | |
---|---|---|---|
191 | 191 | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
192 | 192 | else if ((quantityofpriceasset > CheckAssetBalance)) | |
193 | 193 | then throw((("Pool Only has a Liquidity of " + toString(CheckAssetBalance)) + " Tokens. Add Liquidity into Pool.")) | |
194 | - | else [IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), NewSumupofWAVESToAssetSwapFee), IntegerEntry("Current_Day", Currentday), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME), NewSumupofWAVESBalance), ScriptTransfer(i.caller, userbalancetoreceive, fromBase58String(EnterAssetID)), ScriptTransfer(key1owner, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID)), ScriptTransfer(key2owner, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID)), ScriptTransfer(Treasury, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID))] | |
194 | + | else if ((0 > SwapFeetoreceive)) | |
195 | + | then throw("Pool Swap Fee is going into Negative State due to Price/Less Liquidity Please Add Some liquidity into Pool.") | |
196 | + | else [IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), NewSumupofWAVESToAssetSwapFee), IntegerEntry("Current_Day", Currentday), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME), NewSumupofWAVESBalance), ScriptTransfer(i.caller, userbalancetoreceive, fromBase58String(EnterAssetID)), ScriptTransfer(key1owner, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID)), ScriptTransfer(key2owner, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID)), ScriptTransfer(Treasury, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID))] | |
195 | 197 | } | |
196 | 198 | ||
197 | 199 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let Version = "1.0.0" | |
5 | 5 | ||
6 | 6 | let dAppSinceStart = 1694928600000 | |
7 | 7 | ||
8 | 8 | let listing_fee = 14000000 | |
9 | 9 | ||
10 | 10 | let key1owner = addressFromPublicKey(base58'4Dahqn4MYNrieo9AX8qLWNCseBQNc9skQY81h4DFoote') | |
11 | 11 | ||
12 | 12 | let key2owner = addressFromPublicKey(base58'9reuR7oatpieAycZqM1CMtmp15c9r3WPhF5ENMNepNcH') | |
13 | 13 | ||
14 | 14 | let Treasury = addressFromPublicKey(base58'EtFSDsn89XfmXQvuQXPQMbLDbaAZ1YWYZHksptpQH4gp') | |
15 | 15 | ||
16 | 16 | let WAVESAssetID = unit | |
17 | 17 | ||
18 | 18 | let WAVESAssetNAME = "WAVES" | |
19 | 19 | ||
20 | 20 | func countdays () = { | |
21 | 21 | let TS_Diff = (lastBlock.timestamp - dAppSinceStart) | |
22 | 22 | let daynumber = fraction(1, TS_Diff, 86400000) | |
23 | 23 | daynumber | |
24 | 24 | } | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | @Callable(i) | |
28 | 28 | func RegisterPair (EnterAssetID) = { | |
29 | 29 | let pmt1 = value(i.payments[0]) | |
30 | 30 | let pmt2 = value(i.payments[1]) | |
31 | 31 | let pmt3 = value(i.payments[2]) | |
32 | 32 | let currentKey = toBase58String(i.caller.bytes) | |
33 | 33 | let WAVES = !(isDefined(pmt2.assetId)) | |
34 | 34 | let fetchpair = getString(this, ("Pair_UV_" + EnterAssetID)) | |
35 | 35 | let assetinfopmt2 = fromBase58String(EnterAssetID) | |
36 | 36 | let info = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist")) | |
37 | 37 | let name = info.name | |
38 | 38 | let decimals = info.decimals | |
39 | 39 | let get_asset_decimals = pow(10, 0, decimals, 0, 0, CEILING) | |
40 | 40 | let get_WAVES_decimals = pow(10, 0, 8, 0, 0, CEILING) | |
41 | 41 | let unit_token_price = fraction(pmt1.amount, get_asset_decimals, pmt2.amount) | |
42 | 42 | let LPdecimals = fraction((decimals + 8), 1, 2) | |
43 | 43 | let FirstLPQty = (1 * pow(10, 0, LPdecimals, 0, 0, CEILING)) | |
44 | 44 | let multiply_amounts = fraction(pmt1.amount, pmt2.amount, FirstLPQty) | |
45 | 45 | let getSqrt = sqrt(multiply_amounts, LPdecimals, LPdecimals, CEILING) | |
46 | 46 | let LPissue = Issue((("LP-" + take(name, 7)) + "-WAVES"), (((("LP-" + name) + "-WAVES") + " is a Liquidity Provider Token Issued Against ") + EnterAssetID), getSqrt, LPdecimals, true) | |
47 | 47 | let LPid = calculateAssetId(LPissue) | |
48 | 48 | if ((fetchpair == EnterAssetID)) | |
49 | 49 | then throw("Pair Already Exist in List.") | |
50 | 50 | else if ((size(i.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(listing_fee)) + "/10^8] Waves as Listing Fee.")) | |
52 | 52 | else if (isDefined(pmt1.assetId)) | |
53 | 53 | then throw("Incorrect asset attached as payment[1], please attach WAVES only.") | |
54 | 54 | else if ((10000000 > pmt1.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 ((pmt2.assetId != assetinfopmt2)) | |
57 | 57 | then throw("Input String & Attached AssetID in payment2 is not matching.") | |
58 | 58 | else if ((pmt3.amount != listing_fee)) | |
59 | 59 | then throw((("Attached payment[3] amount has to be exact [" + toString(listing_fee)) + "/10^8] WAVES.")) | |
60 | 60 | else if ((WAVES == 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 > unit_token_price)) | |
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 > getSqrt)) | |
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_" + EnterAssetID), EnterAssetID), IntegerEntry(("Listing_Fee_" + EnterAssetID), pmt3.amount), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME), pmt1.amount), IntegerEntry(((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID), pmt2.amount), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), 0), IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + WAVESAssetNAME), 0), IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), 0), LPissue, ScriptTransfer(i.caller, getSqrt, LPid), ScriptTransfer(key1owner, fraction(listing_fee, 1, 2), WAVESAssetID), ScriptTransfer(key2owner, fraction(listing_fee, 1, 2), WAVESAssetID), StringEntry(("LP_" + EnterAssetID), toBase58String(LPid)), IntegerEntry(("Total_LP_" + EnterAssetID), getSqrt)] | |
67 | 67 | } | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | ||
71 | 71 | @Callable(i) | |
72 | 72 | func SwapAssetToWAVESPairEntry (EnterAssetID) = { | |
73 | 73 | let calleraddress = toBase58String(i.caller.bytes) | |
74 | 74 | let pmt = if ((size(i.payments) == 1)) | |
75 | 75 | then i.payments[0] | |
76 | 76 | else throw("Whitelisted Token is required as Attached payment[1].") | |
77 | 77 | let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID)) | |
78 | 78 | let CheckWAVESBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME)) | |
79 | 79 | let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID)) | |
80 | 80 | let newbalanceofWAVES = fraction(CheckWAVESBalance, CheckAssetBalance, (CheckAssetBalance + pmt.amount)) | |
81 | 81 | let quantityofpriceasset = (CheckWAVESBalance - newbalanceofWAVES) | |
82 | 82 | let SwapFee = 5 | |
83 | 83 | let Currentday = countdays() | |
84 | 84 | let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000) | |
85 | 85 | let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive) | |
86 | 86 | let SumupofAssetToWAVESSwapFee = match getInteger(this, ((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + WAVESAssetNAME)) { | |
87 | 87 | case a: Int => | |
88 | 88 | a | |
89 | 89 | case _ => | |
90 | 90 | 0 | |
91 | 91 | } | |
92 | 92 | let NewSumupofAssetToWAVESSwapFee = ((SumupofAssetToWAVESSwapFee + SwapFeetoreceive) + SwapFeetoreceive) | |
93 | 93 | let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID)) { | |
94 | 94 | case a: Int => | |
95 | 95 | a | |
96 | 96 | case _ => | |
97 | 97 | 0 | |
98 | 98 | } | |
99 | 99 | let NewSumupofAssetBalance = (CheckAssetBalance + pmt.amount) | |
100 | 100 | let SumupWAVESBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME)) { | |
101 | 101 | case a: Int => | |
102 | 102 | a | |
103 | 103 | case _ => | |
104 | 104 | 0 | |
105 | 105 | } | |
106 | 106 | let NewSumupofWAVESBalance = ((CheckWAVESBalance - quantityofpriceasset) + SwapFeetoreceive) | |
107 | 107 | let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) { | |
108 | 108 | case a: Int => | |
109 | 109 | a | |
110 | 110 | case _ => | |
111 | 111 | 0 | |
112 | 112 | } | |
113 | 113 | let NewTPT = (TOPT + 1) | |
114 | 114 | if ((EnterAssetID == WAVESAssetNAME)) | |
115 | 115 | then throw("Input can Never be a WAVES AssetID. Enter Whitelisted AssetID in input & Attach Whitelisted Asset as an attachment Token in payment[1].") | |
116 | 116 | else if ((checkpairisavailableornot != EnterAssetID)) | |
117 | 117 | then throw("Pair is not available in Whitelisted Asset.") | |
118 | 118 | else if ((pmt.assetId == WAVESAssetID)) | |
119 | 119 | then throw("You can't Attach WAVES as an Attached Payment. Only Whitelisted Tokens are accepted.") | |
120 | 120 | else if ((pmt.assetId != fromBase58String(EnterAssetID))) | |
121 | 121 | then throw(("Incorrect asset attached, please attach or send " + EnterAssetID)) | |
122 | 122 | else if ((CheckWAVESBalance == 0)) | |
123 | 123 | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
124 | 124 | else if ((CheckAssetBalance == 0)) | |
125 | 125 | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
126 | 126 | else if ((10000000 > quantityofpriceasset)) | |
127 | 127 | then throw((("Your Attached Asset Amount is very low. Attach More " + EnterAssetID) + " Tokens to Claim the minimum Amount of 0.1 dollar atleast.")) | |
128 | 128 | else if ((quantityofpriceasset > CheckWAVESBalance)) | |
129 | 129 | then throw((("Pool Only has a Liquidity of " + toString((CheckWAVESBalance / pow(10, 0, 8, 0, 0, CEILING)))) + " WAVES. Add Liquidity into Pool.")) | |
130 | 130 | else if ((0 > SwapFeetoreceive)) | |
131 | 131 | then throw("Pool Swap Fee is going into Negative State due to Price/Less Liquidity Please Add Some liquidity into Pool.") | |
132 | 132 | else [IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + WAVESAssetNAME), NewSumupofAssetToWAVESSwapFee), IntegerEntry("Current_Day", Currentday), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME), NewSumupofWAVESBalance), ScriptTransfer(i.caller, userbalancetoreceive, WAVESAssetID), ScriptTransfer(key1owner, fraction(SwapFeetoreceive, 1, 3), WAVESAssetID), ScriptTransfer(key2owner, fraction(SwapFeetoreceive, 1, 3), WAVESAssetID), ScriptTransfer(Treasury, fraction(SwapFeetoreceive, 1, 3), WAVESAssetID)] | |
133 | 133 | } | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | ||
137 | 137 | @Callable(i) | |
138 | 138 | func SwapWAVESToAssetPairEntry (EnterAssetID) = { | |
139 | 139 | let calleraddress = toBase58String(i.caller.bytes) | |
140 | 140 | let pmt = if ((size(i.payments) == 1)) | |
141 | 141 | then i.payments[0] | |
142 | 142 | else throw((("Only " + WAVESAssetNAME) + " Token is required as an Attached payment[1].")) | |
143 | 143 | let CheckWAVESBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME)) | |
144 | 144 | let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID)) | |
145 | 145 | let newbalanceofAsset = fraction(CheckWAVESBalance, CheckAssetBalance, (CheckWAVESBalance + pmt.amount)) | |
146 | 146 | let quantityofpriceasset = (CheckAssetBalance - newbalanceofAsset) | |
147 | 147 | let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID)) | |
148 | 148 | let SwapFee = 5 | |
149 | 149 | let Currentday = countdays() | |
150 | 150 | let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000) | |
151 | 151 | let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive) | |
152 | 152 | let SumupofWAVESToAssetSwapFee = match getInteger(this, ("Total_Swap_Fee_Collected_" + EnterAssetID)) { | |
153 | 153 | case a: Int => | |
154 | 154 | a | |
155 | 155 | case _ => | |
156 | 156 | 0 | |
157 | 157 | } | |
158 | 158 | let NewSumupofWAVESToAssetSwapFee = ((SumupofWAVESToAssetSwapFee + SwapFeetoreceive) + SwapFeetoreceive) | |
159 | 159 | let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID)) { | |
160 | 160 | case a: Int => | |
161 | 161 | a | |
162 | 162 | case _ => | |
163 | 163 | 0 | |
164 | 164 | } | |
165 | 165 | let NewSumupofAssetBalance = ((CheckAssetBalance - quantityofpriceasset) + SwapFeetoreceive) | |
166 | 166 | let SumupWAVESBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME)) { | |
167 | 167 | case a: Int => | |
168 | 168 | a | |
169 | 169 | case _ => | |
170 | 170 | 0 | |
171 | 171 | } | |
172 | 172 | let NewSumupofWAVESBalance = (CheckWAVESBalance + pmt.amount) | |
173 | 173 | let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) { | |
174 | 174 | case a: Int => | |
175 | 175 | a | |
176 | 176 | case _ => | |
177 | 177 | 0 | |
178 | 178 | } | |
179 | 179 | let NewTPT = (TOPT + 1) | |
180 | 180 | if ((checkpairisavailableornot != EnterAssetID)) | |
181 | 181 | then throw("Pair is not available in Whitelisted Asset.") | |
182 | 182 | else if ((EnterAssetID == WAVESAssetNAME)) | |
183 | 183 | then throw("Input can Never be a WAVES AssetID. Enter Whitelisted AssetID in input & Attach WAVES as an attachment Token in payment[1].") | |
184 | 184 | else if ((pmt.assetId != WAVESAssetID)) | |
185 | 185 | then throw((("You can Attach " + WAVESAssetNAME) + " as an Attached Payment[1] to Swap WAVES To Required Token. Any other asset else than WAVES will be rejected.")) | |
186 | 186 | else if ((10000000 > pmt.amount)) | |
187 | 187 | then throw("Your Attached WAVES Amount is very low. Attach Atleast 0.1 WAVES to Claim the minimum Tokens.") | |
188 | 188 | else if ((CheckWAVESBalance == 0)) | |
189 | 189 | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
190 | 190 | else if ((CheckAssetBalance == 0)) | |
191 | 191 | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
192 | 192 | else if ((quantityofpriceasset > CheckAssetBalance)) | |
193 | 193 | then throw((("Pool Only has a Liquidity of " + toString(CheckAssetBalance)) + " Tokens. Add Liquidity into Pool.")) | |
194 | - | else [IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), NewSumupofWAVESToAssetSwapFee), IntegerEntry("Current_Day", Currentday), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME), NewSumupofWAVESBalance), ScriptTransfer(i.caller, userbalancetoreceive, fromBase58String(EnterAssetID)), ScriptTransfer(key1owner, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID)), ScriptTransfer(key2owner, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID)), ScriptTransfer(Treasury, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID))] | |
194 | + | else if ((0 > SwapFeetoreceive)) | |
195 | + | then throw("Pool Swap Fee is going into Negative State due to Price/Less Liquidity Please Add Some liquidity into Pool.") | |
196 | + | else [IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), NewSumupofWAVESToAssetSwapFee), IntegerEntry("Current_Day", Currentday), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME), NewSumupofWAVESBalance), ScriptTransfer(i.caller, userbalancetoreceive, fromBase58String(EnterAssetID)), ScriptTransfer(key1owner, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID)), ScriptTransfer(key2owner, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID)), ScriptTransfer(Treasury, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID))] | |
195 | 197 | } | |
196 | 198 | ||
197 | 199 | ||
198 | 200 | ||
199 | 201 | @Callable(i) | |
200 | 202 | func AddLiquidity (EnterAssetID) = { | |
201 | 203 | let calleraddress = toBase58String(i.caller.bytes) | |
202 | 204 | let pmt1 = value(i.payments[0]) | |
203 | 205 | let pmt2 = value(i.payments[1]) | |
204 | 206 | let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID)) | |
205 | 207 | let ReissueassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or May be not Generated.")) | |
206 | 208 | let CheckWAVESBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME)) | |
207 | 209 | let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID)) | |
208 | 210 | let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist")) | |
209 | 211 | let decimals = decimalsinfo.decimals | |
210 | 212 | let LPdecimals = fraction((decimals + 8), 1, 2) | |
211 | 213 | let FirstLPQty = (1 * pow(10, 0, LPdecimals, 0, 0, CEILING)) | |
212 | 214 | let multiply_amounts = fraction(pmt1.amount, pmt2.amount, FirstLPQty) | |
213 | 215 | let getSqrt = sqrt(multiply_amounts, LPdecimals, LPdecimals, CEILING) | |
214 | 216 | let get_asset_decimals = pow(10, 0, decimals, 0, 0, CEILING) | |
215 | 217 | let get_WAVES_decimals = pow(10, 0, 8, 0, 0, CEILING) | |
216 | 218 | let unit_token_price = fraction(CheckWAVESBalance, get_asset_decimals, CheckAssetBalance) | |
217 | 219 | let user_WAVES_deposit_amount = fraction(pmt1.amount, unit_token_price, 1) | |
218 | 220 | let divide_by_asset_decimals = fraction(user_WAVES_deposit_amount, 1, get_asset_decimals) | |
219 | 221 | let actual_WAVES_deposit_amount = divide_by_asset_decimals | |
220 | 222 | let WAVESHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME)) { | |
221 | 223 | case a: Int => | |
222 | 224 | a | |
223 | 225 | case _ => | |
224 | 226 | 0 | |
225 | 227 | } | |
226 | 228 | let NewWAVESHoldingInPair = (WAVESHoldingInPair + pmt2.amount) | |
227 | 229 | let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID)) { | |
228 | 230 | case a: Int => | |
229 | 231 | a | |
230 | 232 | case _ => | |
231 | 233 | 0 | |
232 | 234 | } | |
233 | 235 | let NewAssetHoldingInPair = (AssetHoldingInPair + pmt1.amount) | |
234 | 236 | let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) { | |
235 | 237 | case a: Int => | |
236 | 238 | a | |
237 | 239 | case _ => | |
238 | 240 | 0 | |
239 | 241 | } | |
240 | 242 | let NewLPTokenIssued = (LPTokenIssued + getSqrt) | |
241 | 243 | if ((checkpairisavailableornot != EnterAssetID)) | |
242 | 244 | then throw("Pair is not available in Whitelisted Asset.") | |
243 | 245 | else if ((EnterAssetID == WAVESAssetNAME)) | |
244 | 246 | 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].") | |
245 | 247 | else if ((size(i.payments) != 2)) | |
246 | 248 | then throw("Two attached assets are expected in payment. Kindly Attach payment1 = Token you want to add for Liquidity & payment2 = Amount of WAVES Token.") | |
247 | 249 | else if ((pmt1.assetId == WAVESAssetID)) | |
248 | 250 | then throw("You Attached WAVES asset in payment[1], please attach only whitelisted Token in payment[1] along with WAVES in payment[2].") | |
249 | 251 | else if ((pmt1.assetId != fromBase58String(EnterAssetID))) | |
250 | 252 | then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.") | |
251 | 253 | else if ((pmt2.assetId != WAVESAssetID)) | |
252 | 254 | then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = WAVES Token.") | |
253 | 255 | else if ((10000000 > pmt2.amount)) | |
254 | 256 | then throw("please attach atleast 0.1 WAVES in payment[2] & Equivalent worth of Token in payment[1]") | |
255 | 257 | else if ((pmt2.amount != actual_WAVES_deposit_amount)) | |
256 | 258 | then throw((("Attached payment[2] qty is not matching as per attached payment[1].payment[2] must be as int [" + toString(actual_WAVES_deposit_amount)) + "]/10^8 WAVES.")) | |
257 | 259 | else if ((1 > unit_token_price)) | |
258 | 260 | then throw("Token Price Outcome is going below 1 in Fractional.") | |
259 | 261 | else if ((1 > getSqrt)) | |
260 | 262 | then throw("LP Token Outcome is going below 1 in Fractional. Please Attach more amount.") | |
261 | 263 | else [IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME), NewWAVESHoldingInPair), IntegerEntry(((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID), NewAssetHoldingInPair), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), IntegerEntry("Token_Price", unit_token_price), IntegerEntry("User_WAVES_Deposit_Amount", actual_WAVES_deposit_amount), Reissue(ReissueassetId, getSqrt, true), ScriptTransfer(i.caller, getSqrt, ReissueassetId)] | |
262 | 264 | } | |
263 | 265 | ||
264 | 266 | ||
265 | 267 | ||
266 | 268 | @Callable(i) | |
267 | 269 | func RemoveLiquidity (EnterAssetID) = { | |
268 | 270 | let calleraddress = toBase58String(i.caller.bytes) | |
269 | 271 | let pmt = if ((size(i.payments) == 1)) | |
270 | 272 | then i.payments[0] | |
271 | 273 | else throw("No payment attached, Please Attach LP Token as payment[1].") | |
272 | 274 | let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID)) | |
273 | 275 | let ReissueableassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or not Generated.")) | |
274 | 276 | let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist")) | |
275 | 277 | let decimals = decimalsinfo.decimals | |
276 | 278 | let bothassetsdecimals = (8 + decimals) | |
277 | 279 | let sharedecimals = (bothassetsdecimals / 2) | |
278 | 280 | let CheckTotalLPAmount = getIntegerValue(this, ("Total_LP_" + EnterAssetID)) | |
279 | 281 | let UserLPPercentage = pow(fraction(pmt.amount, pow(10, 0, 8, 0, 0, CEILING), CheckTotalLPAmount), 6, 1, 0, 6, CEILING) | |
280 | 282 | let CheckWAVESBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME)) | |
281 | 283 | let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID)) | |
282 | 284 | let UserLPWorthWAVES = fraction(CheckWAVESBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING)) | |
283 | 285 | let UserLPWorthAsset = fraction(CheckAssetBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING)) | |
284 | 286 | let WAVESHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME)) { | |
285 | 287 | case a: Int => | |
286 | 288 | a | |
287 | 289 | case _ => | |
288 | 290 | 0 | |
289 | 291 | } | |
290 | 292 | let NewWAVESHoldingInPair = (WAVESHoldingInPair - UserLPWorthWAVES) | |
291 | 293 | let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID)) { | |
292 | 294 | case a: Int => | |
293 | 295 | a | |
294 | 296 | case _ => | |
295 | 297 | 0 | |
296 | 298 | } | |
297 | 299 | let NewAssetHoldingInPair = (AssetHoldingInPair - UserLPWorthAsset) | |
298 | 300 | let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) { | |
299 | 301 | case a: Int => | |
300 | 302 | a | |
301 | 303 | case _ => | |
302 | 304 | 0 | |
303 | 305 | } | |
304 | 306 | let NewLPTokenIssued = (LPTokenIssued - pmt.amount) | |
305 | 307 | if ((checkpairisavailableornot != EnterAssetID)) | |
306 | 308 | then throw("Pair is not available in Whitelist.") | |
307 | 309 | else if ((EnterAssetID == WAVESAssetNAME)) | |
308 | 310 | then throw("Don't choose WAVES AssetID as Input, Only Whitelisted Asset as Input String & Attach LP Tokens as payment[1]") | |
309 | 311 | else if ((pmt.assetId != ReissueableassetId)) | |
310 | 312 | then throw("Wrong Asset is attached in payment[1] or LP Token Not Found or Missing.") | |
311 | 313 | else if ((1 > UserLPPercentage)) | |
312 | 314 | then throw("Your LP Token amount % is very low to convert.") | |
313 | 315 | else if ((1 > UserLPWorthWAVES)) | |
314 | 316 | then throw("Your LP Token conversion amount is very low to convert or less than 0.00000001 WAVES.") | |
315 | 317 | else if ((1 > UserLPWorthAsset)) | |
316 | 318 | then throw("Your LP Token conversion amount is very low to convert or less than fraction value of Token.") | |
317 | 319 | else [IntegerEntry("Withdraw_LP_Percentage", UserLPPercentage), Burn(ReissueableassetId, pmt.amount), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME), NewWAVESHoldingInPair), IntegerEntry(((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID), NewAssetHoldingInPair), ScriptTransfer(i.caller, UserLPWorthWAVES, WAVESAssetID), ScriptTransfer(i.caller, UserLPWorthAsset, fromBase58String(EnterAssetID))] | |
318 | 320 | } | |
319 | 321 | ||
320 | 322 | ||
321 | 323 | @Verifier(tx) | |
322 | 324 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
323 | 325 |
github/deemru/w8io/169f3d6 49.80 ms ◑