tx · DWd19sRQVW28nWeR6Vg23m2B7BMqNgYbJZunMhWUzDkS 3MshBTYYGc24JWzE2aYEktiz5KzeNQGA4GV: -0.01400000 Waves 2021.08.23 23:02 [1671428] smart account 3MshBTYYGc24JWzE2aYEktiz5KzeNQGA4GV > SELF 0.00000000 Waves
{ "type": 13, "id": "DWd19sRQVW28nWeR6Vg23m2B7BMqNgYbJZunMhWUzDkS", "fee": 1400000, "feeAssetId": null, "timestamp": 1629749014570, "version": 2, "chainId": 84, "sender": "3MshBTYYGc24JWzE2aYEktiz5KzeNQGA4GV", "senderPublicKey": "GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr", "proofs": [ "6ssFwn4LgSsMuFY3CciHxuXTkHcipifGeXet4gX9UAfYtS8FvVpJ2jAbDinmXUoqhrxPDXQQS4ed1UL6RdrEdiS" ], "script": "base64:AAIEAAAAAAAAACsIAhIFCgMIAQESABIAEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIAAAAAAAAAAkAAAABaQEAAAAVUmVnaXN0ZXJQYWlyRm9yVm90aW5nAAAAAwAAAAhBc3NldElEMQAAAARkYXlzAAAADExpc3RpbmdQcmljZQQAAAAEcG10MQkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAAEcG10MgkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAQQAAAAKRmVlQWRkcmVzcwEAAAAg463XstSKNtaiPAMTm2AWTDVjxzAiveOx6Vx7CmnuvCMEAAAAEW1heGltdW12b3RpbmdkYXlzAAAAAAAAAABaBAAAAA1CYWxsZXRBc3NldElEAQAAACAtb1sBuZ3lSm8ahGink+4TF5YYAu/xRHYwe1h195OooAQAAAALVVNEVEFzc2V0SUQBAAAAIO1uns5hlJz9zuYakh0t3uLmLZDCTZgfB7wEww+WnHxxBAAAAApjdXJyZW50S2V5CQACW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AIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgIAAAAOVm90aW5nX1N0YXR1c18FAAAADEVudGVyQXNzZXRJRAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAICAAAAD1ZvdGVzX1JlY2VpdmVkXwUAAAAMRW50ZXJBc3NldElECQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAACVByaWNlX09mXwUAAAAMRW50ZXJBc3NldElEAgAAAAFfCQACWAAAAAEFAAAAC1VTRFRBc3NldElEBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXk6uolO", "height": 1671428, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8qcK3WdoqVJuq8HkddKfU3QeCcV2mz3M5R7DYhoojXQf Next: GD45vhBoyo5pX1ckVLACFsCFKLUHxRyjh4ogHjwzFK8F Diff:
Old | New | Differences | |
---|---|---|---|
10 | 10 | let FeeAddress = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr' | |
11 | 11 | let maximumvotingdays = 90 | |
12 | 12 | let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y' | |
13 | - | let USDTAssetID = base58' | |
13 | + | let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU' | |
14 | 14 | let currentKey = toBase58String(i.caller.bytes) | |
15 | 15 | let TN = !(isDefined(pmt2.assetId)) | |
16 | 16 | let oneday = 1440 | |
21 | 21 | let fetchpair = getString(this, ("Pair_Under_Voting_" + AssetID1)) | |
22 | 22 | let votingstatus = "Fail" | |
23 | 23 | let assetinfopmt2 = fromBase58String(AssetID1) | |
24 | + | let reverseprice = fraction(1, 1000000000000, ListingPrice) | |
24 | 25 | if ((43 > size(AssetID1))) | |
25 | 26 | then throw("Wrong AssetID1 is Entered for Voting. Please Enter a Valid AssetID1. Probably you entered an ASSETID1 less than 43 Chars.") | |
26 | 27 | else if ((29 >= days)) | |
33 | 34 | then throw("Two attached assets expected as payment. Kindly Attach payment1 = Ballet Token and payment2 = Token you want to add to List for Voting.") | |
34 | 35 | else if ((pmt1.assetId != BalletAssetID)) | |
35 | 36 | then throw("Incorrect asset attached for Voting in payment[1], please attach 1000 Ballet Token only.") | |
36 | - | else if (( | |
37 | + | else if ((10000000 > pmt1.amount)) | |
37 | 38 | then throw((((("You attached only " + toString(fraction(pmt1.amount, 1, 100000000))) + ".") + toString(fraction(pmt1.amount, 1, 10000000))) + " Ballet for Voting in payment[1], please attach 1000 Ballet Token only.")) | |
38 | 39 | else if ((pmt2.assetId != assetinfopmt2)) | |
39 | 40 | then throw("Asset String Attached in ASSETID1 is not matching with Payment2 AssetID.") | |
41 | 42 | then throw("You Attached TN Asset ID for Voting, please attach the Token You want to list in payment[2].") | |
42 | 43 | else if ((pmt2.assetId == BalletAssetID)) | |
43 | 44 | then throw("You Attached Ballet asset for Voting in both payments, please attach the Token You want to list in payment[2].") | |
44 | - | else if ((99 > ListingPrice)) | |
45 | - | then throw("Wrong Listing Price is Entered, please enter as minimum 0.000100 USDT.") | |
46 | - | else [StringEntry(("Pair_Under_Voting_" + AssetID1), AssetID1), StringEntry(("Voting_Status_" + AssetID1), votingstatus), IntegerEntry(("Voting_Start_Height_" + AssetID1), height), IntegerEntry(("Voting_End_Height_" + AssetID1), votingExpire), IntegerEntry(("Voting_Period_" + AssetID1), NoOfDaysBlocks), IntegerEntry(("Voting_Listing_Fee_" + AssetID1), pmt1.amount), IntegerEntry(("Votes_Required_" + AssetID1), votesrequired), IntegerEntry(("Votes_Received_" + AssetID1), 0), IntegerEntry(((("Price_Of_" + AssetID1) + "_") + toBase58String(USDTAssetID)), ListingPrice), ScriptTransfer(addressFromPublicKey(FeeAddress), pmt1.amount, BalletAssetID)] | |
45 | + | else if ((99 >= ListingPrice)) | |
46 | + | then throw("Lower listing Price is Entered per token, please enter as a valid range in between range [0.000100-1M] USDT.") | |
47 | + | else if ((ListingPrice > 999999999999)) | |
48 | + | then throw("Higher listing Price is Entered per token, please enter as a valid range in between range [0.000100-1M] USDT.") | |
49 | + | else [StringEntry(("Pair_Under_Voting_" + AssetID1), AssetID1), StringEntry(("Voting_Status_" + AssetID1), votingstatus), IntegerEntry(("Voting_Start_Height_" + AssetID1), height), IntegerEntry(("Voting_End_Height_" + AssetID1), votingExpire), IntegerEntry(("Voting_Period_" + AssetID1), NoOfDaysBlocks), IntegerEntry(("Voting_Listing_Fee_" + AssetID1), pmt1.amount), IntegerEntry(("Votes_Required_" + AssetID1), votesrequired), IntegerEntry(("Votes_Received_" + AssetID1), 0), IntegerEntry(((("Price_Of_" + AssetID1) + "_") + toBase58String(USDTAssetID)), ListingPrice), IntegerEntry(((("ReversePrice_Of_" + AssetID1) + "_") + toBase58String(USDTAssetID)), reverseprice), ScriptTransfer(addressFromPublicKey(FeeAddress), pmt1.amount, BalletAssetID)] | |
47 | 50 | } | |
48 | 51 | ||
49 | 52 | ||
102 | 105 | let calleraddress = toBase58String(i.caller.bytes) | |
103 | 106 | let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y' | |
104 | 107 | let NewVotingStatus = "Pass" | |
105 | - | let USDTAssetID = base58' | |
108 | + | let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU' | |
106 | 109 | let checkprojectexpireheight = getIntegerValue(this, ("Voting_End_Height_" + EnterAssetID)) | |
107 | 110 | let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID)) | |
108 | 111 | let checkvotesrequired = getIntegerValue(this, ("Votes_Required_" + EnterAssetID)) | |
134 | 137 | else if ((VotingStatus == NewVotingStatus)) | |
135 | 138 | then throw((("Voting for " + EnterAssetID) + " pair is completed and it’s available in whitelist.")) | |
136 | 139 | else if (checkwhitelist) | |
137 | - | then [StringEntry(("Voting_Status_" + EnterAssetID), NewVotingStatus), IntegerEntry(("Decimals_of_" + EnterAssetID), decimals), IntegerEntry(((("Old_Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), 0), IntegerEntry(((("New_Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), 0), IntegerEntry(((("Total_of_pair_Txns_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), 0), IntegerEntry("Total_of_Swaps_Txns", 0), IntegerEntry("Total_Swap_Fee_Collected", 0)] | |
140 | + | then [StringEntry(("Voting_Status_" + EnterAssetID), NewVotingStatus), IntegerEntry(("Decimals_of_" + EnterAssetID), decimals), IntegerEntry(((("Old_Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), 0), IntegerEntry(((("New_Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), 0), IntegerEntry(((("Old_Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID), 0), IntegerEntry(((("New_Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID), 0), IntegerEntry(((("Total_of_pair_Txns_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), 0), IntegerEntry("Total_of_Swaps_Txns", 0), IntegerEntry("Total_Swap_Fee_Collected", 0)] | |
138 | 141 | else [IntegerEntry(("Votes_Received_" + EnterAssetID), newvotescount), IntegerEntry(((("Votes_Received_" + calleraddress) + "_") + EnterAssetID), individualvotescount)] | |
139 | 142 | } | |
140 | 143 | ||
156 | 159 | else if ((0 >= checkuservotingbalance)) | |
157 | 160 | then throw("You don't have any dues of ballet balance in this Voting Pair.") | |
158 | 161 | else if (isDefined(pmt.assetId)) | |
159 | - | then throw("Don't attach any asset. | |
162 | + | then throw("Don't attach any other asset. Please attach 0.1 TN as a fee to release your token") | |
160 | 163 | else if ((pmt.amount != 10000000)) | |
161 | 164 | then throw("Please attach 0.1 TN as a fee to release your token.") | |
162 | 165 | else [IntegerEntry(((("Votes_Received_" + calleraddress) + "_") + EnterAssetID), 0), ScriptTransfer(i.caller, checkuservotingbalance, BalletAssetID)] | |
170 | 173 | let pmt = if ((size(i.payments) == 1)) | |
171 | 174 | then i.payments[0] | |
172 | 175 | else throw("Whitelisted Swap Token is required as Attached payment[1].") | |
173 | - | let USDTAssetID = base58' | |
176 | + | let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU' | |
174 | 177 | let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID)) | |
175 | 178 | let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID)) | |
176 | 179 | let CheckPairPrice = getIntegerValue(this, ((("Price_Of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) | |
177 | - | let CheckOldBalance = getIntegerValue(this, ((("Old_Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) | |
180 | + | let CheckOldBalanceAssettoUSDT = getIntegerValue(this, ((("Old_Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) | |
181 | + | let CheckOldBalanceUSDTtoAsset = getIntegerValue(this, ((("Old_Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID)) | |
178 | 182 | let CheckAssetDecimals = getIntegerValue(this, ("Decimals_of_" + EnterAssetID)) | |
179 | 183 | let CurrentVotingStatus = "Fail" | |
180 | 184 | let SwapFee = 1 | |
182 | 186 | let priceAssetDecimals = 6 | |
183 | 187 | let decimalsgap = ((6 - amountAssetDecimals) - 8) | |
184 | 188 | let quantityofpriceasset = (((pmt.amount * CheckPairPrice) * pow(10, 0, decimalsgap, 0, 0, UP)) / pow(10, 0, amountAssetDecimals, 0, 0, UP)) | |
185 | - | let getUSDTBalance = assetBalance(this, | |
189 | + | let getUSDTBalance = assetBalance(this, USDTAssetID) | |
186 | 190 | let newUSDTBalance = (getUSDTBalance - quantityofpriceasset) | |
187 | 191 | if ((checkpairisavailableornot != EnterAssetID)) | |
188 | 192 | then throw("Pair is not available in Whitelisted Asset.") | |
189 | 193 | else if ((VotingStatus == CurrentVotingStatus)) | |
190 | 194 | then throw((EnterAssetID + " is not A Whitelisted Token Yet.")) | |
191 | 195 | else if ((pmt.assetId == USDTAssetID)) | |
192 | - | then throw("You can't Attach USDT as an Attached Payment. Only Whitelisted Tokens are | |
196 | + | then throw("You can't Attach USDT as an Attached Payment. Only Whitelisted Tokens are accepted.") | |
193 | 197 | else if ((pmt.assetId != fromBase58String(EnterAssetID))) | |
194 | 198 | then throw(("Incorrect asset attached, please attach or send " + EnterAssetID)) | |
195 | 199 | else if ((10000 > quantityofpriceasset)) | |
196 | - | then throw((("Your Attached Amount is very low. Attach More " + EnterAssetID) + " | |
197 | - | else if (( | |
200 | + | then throw((("Your Attached Asset Amount is very low. Attach More " + EnterAssetID) + " Tokens to Claim the minimum Amount of 1 cent atleast.")) | |
201 | + | else if ((CheckOldBalanceAssettoUSDT == 0)) | |
198 | 202 | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
199 | - | else [IntegerEntry(((("Price_Of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), CheckPairPrice), ScriptTransfer(i.caller, ((quantityofpriceasset * 99) / 100), base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU'), ScriptTransfer(i.caller, ((quantityofpriceasset * SwapFee) / 100), base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU')] | |
203 | + | else if ((CheckOldBalanceUSDTtoAsset == 0)) | |
204 | + | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
205 | + | else [IntegerEntry(((("Price_Of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), CheckPairPrice), ScriptTransfer(i.caller, ((quantityofpriceasset * 99) / 100), USDTAssetID), ScriptTransfer(i.caller, ((quantityofpriceasset * SwapFee) / 100), USDTAssetID)] | |
200 | 206 | } | |
201 | 207 | ||
202 | 208 | ||
206 | 212 | let calleraddress = toBase58String(i.caller.bytes) | |
207 | 213 | let pmt = if ((size(i.payments) == 1)) | |
208 | 214 | then i.payments[0] | |
209 | - | else throw("Whitelisted Swap Token is required as Attached payment[1].") | |
210 | - | let USDTAssetID = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4' | |
211 | - | nil | |
215 | + | else throw("Only USDT Token is required as an Attached payment[1].") | |
216 | + | let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU' | |
217 | + | let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID)) | |
218 | + | let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID)) | |
219 | + | let CheckReversePairPrice = getIntegerValue(this, ((("ReversePrice_Of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) | |
220 | + | let CheckAssetDecimals = getIntegerValue(this, ("Decimals_of_" + EnterAssetID)) | |
221 | + | let CurrentVotingStatus = "Fail" | |
222 | + | let ReverseSwapFee = 1 | |
223 | + | let amountAssetDecimals = CheckAssetDecimals | |
224 | + | let priceAssetDecimals = 6 | |
225 | + | let decimalsgap = ((6 - amountAssetDecimals) - 8) | |
226 | + | let quantityofpriceasset = (pmt.amount / pow(10, 0, amountAssetDecimals, 0, 0, UP)) | |
227 | + | let getAssetBalance = assetBalance(this, fromBase58String(EnterAssetID)) | |
228 | + | let newAssetBalance = (getAssetBalance - quantityofpriceasset) | |
229 | + | if ((checkpairisavailableornot != EnterAssetID)) | |
230 | + | then throw("Pair is not available in Whitelisted Asset.") | |
231 | + | else if ((VotingStatus == CurrentVotingStatus)) | |
232 | + | then throw((EnterAssetID + " is not A Whitelisted Token Yet.")) | |
233 | + | else if ((EnterAssetID == toBase58String(USDTAssetID))) | |
234 | + | then throw("Input can Never be a USDT AssetID. Enter AssetID in input and Attach USDT as attachment Token.") | |
235 | + | else if ((pmt.assetId != USDTAssetID)) | |
236 | + | then throw("You can Attach USDT as an Attached Payment to Swap USDT To Required Token. Any other asset else than USDT will be rejected.") | |
237 | + | else if ((1000000 > pmt.amount)) | |
238 | + | then throw("Your Attached USDT Amount is very low. Attach Atleast 1 USDT to Claim the minimum Tokens.") | |
239 | + | else [IntegerEntry(((("ReversePrice_Of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), CheckReversePairPrice), ScriptTransfer(i.caller, ((quantityofpriceasset * 99) / 100), fromBase58String(EnterAssetID)), ScriptTransfer(i.caller, ((quantityofpriceasset * ReverseSwapFee) / 100), fromBase58String(EnterAssetID))] | |
212 | 240 | } | |
213 | 241 | ||
214 | 242 | ||
219 | 247 | let pmt = if ((size(i.payments) == 1)) | |
220 | 248 | then i.payments[0] | |
221 | 249 | else throw("Whitelisted Swap Token is required as Attached payment[1].") | |
222 | - | let USDTAssetID = base58' | |
250 | + | let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU' | |
223 | 251 | nil | |
224 | 252 | } | |
225 | 253 | ||
228 | 256 | @Callable(i) | |
229 | 257 | func RemovePairEntry (EnterAssetID) = { | |
230 | 258 | let adminrights = getStringValue(this, "Polarity_Admin_Rights") | |
231 | - | let USDTAssetID = base58' | |
259 | + | let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU' | |
232 | 260 | let checkprojectexpireheight = getIntegerValue(this, ("Voting_End_Height_" + EnterAssetID)) | |
233 | 261 | let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID)) | |
234 | 262 | let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func RegisterPairForVoting (AssetID1,days,ListingPrice) = { | |
8 | 8 | let pmt1 = value(i.payments[0]) | |
9 | 9 | let pmt2 = value(i.payments[1]) | |
10 | 10 | let FeeAddress = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr' | |
11 | 11 | let maximumvotingdays = 90 | |
12 | 12 | let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y' | |
13 | - | let USDTAssetID = base58' | |
13 | + | let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU' | |
14 | 14 | let currentKey = toBase58String(i.caller.bytes) | |
15 | 15 | let TN = !(isDefined(pmt2.assetId)) | |
16 | 16 | let oneday = 1440 | |
17 | 17 | let NoOfDaysBlocks = (oneday * days) | |
18 | 18 | let gap = (NoOfDaysBlocks - 43199) | |
19 | 19 | let votesrequired = ((100000 + ((11574 * gap) / 10000)) * 100000000) | |
20 | 20 | let votingExpire = (height + NoOfDaysBlocks) | |
21 | 21 | let fetchpair = getString(this, ("Pair_Under_Voting_" + AssetID1)) | |
22 | 22 | let votingstatus = "Fail" | |
23 | 23 | let assetinfopmt2 = fromBase58String(AssetID1) | |
24 | + | let reverseprice = fraction(1, 1000000000000, ListingPrice) | |
24 | 25 | if ((43 > size(AssetID1))) | |
25 | 26 | then throw("Wrong AssetID1 is Entered for Voting. Please Enter a Valid AssetID1. Probably you entered an ASSETID1 less than 43 Chars.") | |
26 | 27 | else if ((29 >= days)) | |
27 | 28 | then throw("Enter no. of days in between 30 to 90.") | |
28 | 29 | else if ((days > maximumvotingdays)) | |
29 | 30 | then throw("You Entered days greater than 90 please Enter no. of days in between 1 to 90.") | |
30 | 31 | else if ((fetchpair == AssetID1)) | |
31 | 32 | then throw("Pair Already Exist in Voting List.") | |
32 | 33 | else if ((size(i.payments) != 2)) | |
33 | 34 | then throw("Two attached assets expected as payment. Kindly Attach payment1 = Ballet Token and payment2 = Token you want to add to List for Voting.") | |
34 | 35 | else if ((pmt1.assetId != BalletAssetID)) | |
35 | 36 | then throw("Incorrect asset attached for Voting in payment[1], please attach 1000 Ballet Token only.") | |
36 | - | else if (( | |
37 | + | else if ((10000000 > pmt1.amount)) | |
37 | 38 | then throw((((("You attached only " + toString(fraction(pmt1.amount, 1, 100000000))) + ".") + toString(fraction(pmt1.amount, 1, 10000000))) + " Ballet for Voting in payment[1], please attach 1000 Ballet Token only.")) | |
38 | 39 | else if ((pmt2.assetId != assetinfopmt2)) | |
39 | 40 | then throw("Asset String Attached in ASSETID1 is not matching with Payment2 AssetID.") | |
40 | 41 | else if ((TN == true)) | |
41 | 42 | then throw("You Attached TN Asset ID for Voting, please attach the Token You want to list in payment[2].") | |
42 | 43 | else if ((pmt2.assetId == BalletAssetID)) | |
43 | 44 | then throw("You Attached Ballet asset for Voting in both payments, please attach the Token You want to list in payment[2].") | |
44 | - | else if ((99 > ListingPrice)) | |
45 | - | then throw("Wrong Listing Price is Entered, please enter as minimum 0.000100 USDT.") | |
46 | - | else [StringEntry(("Pair_Under_Voting_" + AssetID1), AssetID1), StringEntry(("Voting_Status_" + AssetID1), votingstatus), IntegerEntry(("Voting_Start_Height_" + AssetID1), height), IntegerEntry(("Voting_End_Height_" + AssetID1), votingExpire), IntegerEntry(("Voting_Period_" + AssetID1), NoOfDaysBlocks), IntegerEntry(("Voting_Listing_Fee_" + AssetID1), pmt1.amount), IntegerEntry(("Votes_Required_" + AssetID1), votesrequired), IntegerEntry(("Votes_Received_" + AssetID1), 0), IntegerEntry(((("Price_Of_" + AssetID1) + "_") + toBase58String(USDTAssetID)), ListingPrice), ScriptTransfer(addressFromPublicKey(FeeAddress), pmt1.amount, BalletAssetID)] | |
45 | + | else if ((99 >= ListingPrice)) | |
46 | + | then throw("Lower listing Price is Entered per token, please enter as a valid range in between range [0.000100-1M] USDT.") | |
47 | + | else if ((ListingPrice > 999999999999)) | |
48 | + | then throw("Higher listing Price is Entered per token, please enter as a valid range in between range [0.000100-1M] USDT.") | |
49 | + | else [StringEntry(("Pair_Under_Voting_" + AssetID1), AssetID1), StringEntry(("Voting_Status_" + AssetID1), votingstatus), IntegerEntry(("Voting_Start_Height_" + AssetID1), height), IntegerEntry(("Voting_End_Height_" + AssetID1), votingExpire), IntegerEntry(("Voting_Period_" + AssetID1), NoOfDaysBlocks), IntegerEntry(("Voting_Listing_Fee_" + AssetID1), pmt1.amount), IntegerEntry(("Votes_Required_" + AssetID1), votesrequired), IntegerEntry(("Votes_Received_" + AssetID1), 0), IntegerEntry(((("Price_Of_" + AssetID1) + "_") + toBase58String(USDTAssetID)), ListingPrice), IntegerEntry(((("ReversePrice_Of_" + AssetID1) + "_") + toBase58String(USDTAssetID)), reverseprice), ScriptTransfer(addressFromPublicKey(FeeAddress), pmt1.amount, BalletAssetID)] | |
47 | 50 | } | |
48 | 51 | ||
49 | 52 | ||
50 | 53 | ||
51 | 54 | @Callable(i) | |
52 | 55 | func IssueBallet () = { | |
53 | 56 | let pmt = value(i.payments[0]) | |
54 | 57 | let currentKey = toBase58String(i.caller.bytes) | |
55 | 58 | let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y' | |
56 | 59 | let PricePerBallet = getIntegerValue(this, "BALLET/TN") | |
57 | 60 | let NewBalletToUser = fraction(100000, pmt.amount, PricePerBallet) | |
58 | 61 | let PreviousIssuedBallet = getIntegerValue(this, "Total_Issued_Ballet:") | |
59 | 62 | let TotalIssuedBallet = (PreviousIssuedBallet + NewBalletToUser) | |
60 | 63 | let PreviousBalletReserveValue = getIntegerValue(this, "Total_Ballet_Reserve_In_TN:") | |
61 | 64 | let BalletReserveValue = (PreviousBalletReserveValue + pmt.amount) | |
62 | 65 | let PreviousBalletBackupPrice = getIntegerValue(this, "Ballet_Backup_Value_In_TN:") | |
63 | 66 | let BalletBackupPrice = fraction(100000, BalletReserveValue, TotalIssuedBallet) | |
64 | 67 | let FeeAddress = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr' | |
65 | 68 | let FeePercentage = 1 | |
66 | 69 | let BalanceTokensReturnedToUser = (100 - FeePercentage) | |
67 | 70 | if (isDefined(pmt.assetId)) | |
68 | 71 | then throw("Incorrect asset attached, please attach TN.") | |
69 | 72 | else if ((5000000 > pmt.amount)) | |
70 | 73 | then throw("Please Attach minimum 0.05 TN To Issue Ballet Asset.") | |
71 | 74 | else [IntegerEntry("Total_Issued_Ballet:", TotalIssuedBallet), IntegerEntry("Total_Ballet_Reserve_In_TN:", BalletReserveValue), IntegerEntry("Ballet_Backup_Value_In_TN:", BalletBackupPrice), StringEntry("message", "<h1>Ballet Issued Successfully!</h1><br>"), Reissue(BalletAssetID, NewBalletToUser, true), ScriptTransfer(i.caller, ((NewBalletToUser * BalanceTokensReturnedToUser) / 100), BalletAssetID), ScriptTransfer(addressFromPublicKey(FeeAddress), ((NewBalletToUser * FeePercentage) / 100), BalletAssetID)] | |
72 | 75 | } | |
73 | 76 | ||
74 | 77 | ||
75 | 78 | ||
76 | 79 | @Callable(i) | |
77 | 80 | func Liquidate () = { | |
78 | 81 | let currentKey = toBase58String(i.callerPublicKey) | |
79 | 82 | let pmt = value(i.payments[0]) | |
80 | 83 | let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y' | |
81 | 84 | let PreviousIssuedBallet = getIntegerValue(this, "Total_Issued_Ballet:") | |
82 | 85 | let TotalIssuedBallet = (PreviousIssuedBallet - pmt.amount) | |
83 | 86 | let PreviousBalletReserveValue = getIntegerValue(this, "Total_Ballet_Reserve_In_TN:") | |
84 | 87 | let PreviousBalletBackupPrice = getIntegerValue(this, "Ballet_Backup_Value_In_TN:") | |
85 | 88 | let calculateburnvalue = fraction(PreviousBalletBackupPrice, pmt.amount, 100000) | |
86 | 89 | let BalletReserveValue = (PreviousBalletReserveValue - calculateburnvalue) | |
87 | 90 | let BalletBackupPrice = fraction(100000, BalletReserveValue, TotalIssuedBallet) | |
88 | 91 | if ((pmt.assetId != BalletAssetID)) | |
89 | 92 | then throw("Kindly Deposit Only 44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y (Ballet).") | |
90 | 93 | else if ((100000 > pmt.amount)) | |
91 | 94 | then throw("Attach Amount must be greater than 0.001 Ballet.") | |
92 | 95 | else [Burn(BalletAssetID, pmt.amount), IntegerEntry("Total_Issued_Ballet:", TotalIssuedBallet), IntegerEntry("Total_Ballet_Reserve_In_TN:", BalletReserveValue), IntegerEntry("Ballet_Backup_Value_In_TN:", BalletBackupPrice), StringEntry("message", "<h1>Ballet Liquidated Successfully!</h1><br>"), ScriptTransfer(i.caller, calculateburnvalue, unit)] | |
93 | 96 | } | |
94 | 97 | ||
95 | 98 | ||
96 | 99 | ||
97 | 100 | @Callable(i) | |
98 | 101 | func DoVoting (EnterAssetID) = { | |
99 | 102 | let pmt = if ((size(i.payments) == 1)) | |
100 | 103 | then i.payments[0] | |
101 | 104 | else throw("Ballet Token is required as Attached payment") | |
102 | 105 | let calleraddress = toBase58String(i.caller.bytes) | |
103 | 106 | let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y' | |
104 | 107 | let NewVotingStatus = "Pass" | |
105 | - | let USDTAssetID = base58' | |
108 | + | let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU' | |
106 | 109 | let checkprojectexpireheight = getIntegerValue(this, ("Voting_End_Height_" + EnterAssetID)) | |
107 | 110 | let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID)) | |
108 | 111 | let checkvotesrequired = getIntegerValue(this, ("Votes_Required_" + EnterAssetID)) | |
109 | 112 | let checkvotesreceived = getIntegerValue(this, ("Votes_Received_" + EnterAssetID)) | |
110 | 113 | let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID)) | |
111 | 114 | let currentvotes = match getInteger(this, ("Votes_Received_" + EnterAssetID)) { | |
112 | 115 | case a: Int => | |
113 | 116 | a | |
114 | 117 | case _ => | |
115 | 118 | 0 | |
116 | 119 | } | |
117 | 120 | let newvotescount = (currentvotes + pmt.amount) | |
118 | 121 | let individualvotes = match getInteger(this, ((("Votes_Received_" + calleraddress) + "_") + EnterAssetID)) { | |
119 | 122 | case b: Int => | |
120 | 123 | b | |
121 | 124 | case _ => | |
122 | 125 | 0 | |
123 | 126 | } | |
124 | 127 | let individualvotescount = (individualvotes + pmt.amount) | |
125 | 128 | let checkwhitelist = (checkvotesreceived >= checkvotesrequired) | |
126 | 129 | let info = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist")) | |
127 | 130 | let decimals = info.decimals | |
128 | 131 | if ((checkpairisavailableornot != EnterAssetID)) | |
129 | 132 | then throw("Pair is not available in Voting List.") | |
130 | 133 | else if ((height > checkprojectexpireheight)) | |
131 | 134 | then throw((("Voting timeline for " + EnterAssetID) + " is expired.")) | |
132 | 135 | else if ((pmt.assetId != BalletAssetID)) | |
133 | 136 | then throw("Kindly Attach Only 44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y (Ballet).") | |
134 | 137 | else if ((VotingStatus == NewVotingStatus)) | |
135 | 138 | then throw((("Voting for " + EnterAssetID) + " pair is completed and it’s available in whitelist.")) | |
136 | 139 | else if (checkwhitelist) | |
137 | - | then [StringEntry(("Voting_Status_" + EnterAssetID), NewVotingStatus), IntegerEntry(("Decimals_of_" + EnterAssetID), decimals), IntegerEntry(((("Old_Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), 0), IntegerEntry(((("New_Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), 0), IntegerEntry(((("Total_of_pair_Txns_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), 0), IntegerEntry("Total_of_Swaps_Txns", 0), IntegerEntry("Total_Swap_Fee_Collected", 0)] | |
140 | + | then [StringEntry(("Voting_Status_" + EnterAssetID), NewVotingStatus), IntegerEntry(("Decimals_of_" + EnterAssetID), decimals), IntegerEntry(((("Old_Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), 0), IntegerEntry(((("New_Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), 0), IntegerEntry(((("Old_Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID), 0), IntegerEntry(((("New_Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID), 0), IntegerEntry(((("Total_of_pair_Txns_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), 0), IntegerEntry("Total_of_Swaps_Txns", 0), IntegerEntry("Total_Swap_Fee_Collected", 0)] | |
138 | 141 | else [IntegerEntry(("Votes_Received_" + EnterAssetID), newvotescount), IntegerEntry(((("Votes_Received_" + calleraddress) + "_") + EnterAssetID), individualvotescount)] | |
139 | 142 | } | |
140 | 143 | ||
141 | 144 | ||
142 | 145 | ||
143 | 146 | @Callable(i) | |
144 | 147 | func WithdrawVotedTokens (EnterAssetID) = { | |
145 | 148 | let pmt = i.payments[0] | |
146 | 149 | let calleraddress = toBase58String(i.caller.bytes) | |
147 | 150 | let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y' | |
148 | 151 | let checkprojectexpireheight = getIntegerValue(this, ("Voting_End_Height_" + EnterAssetID)) | |
149 | 152 | let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID)) | |
150 | 153 | let checkuservotingbalance = getIntegerValue(this, ((("Votes_Received_" + calleraddress) + "_") + EnterAssetID)) | |
151 | 154 | let pendingblocksforprojectexpire = (checkprojectexpireheight - height) | |
152 | 155 | if ((checkpairisavailableornot != EnterAssetID)) | |
153 | 156 | then throw("Pair is not available in Voting List.") | |
154 | 157 | else if ((checkprojectexpireheight > height)) | |
155 | 158 | then throw((("Voting Already Running. You can withdraw your Ballet Token only after the expire of " + toString(pendingblocksforprojectexpire)) + " Blocks")) | |
156 | 159 | else if ((0 >= checkuservotingbalance)) | |
157 | 160 | then throw("You don't have any dues of ballet balance in this Voting Pair.") | |
158 | 161 | else if (isDefined(pmt.assetId)) | |
159 | - | then throw("Don't attach any asset. | |
162 | + | then throw("Don't attach any other asset. Please attach 0.1 TN as a fee to release your token") | |
160 | 163 | else if ((pmt.amount != 10000000)) | |
161 | 164 | then throw("Please attach 0.1 TN as a fee to release your token.") | |
162 | 165 | else [IntegerEntry(((("Votes_Received_" + calleraddress) + "_") + EnterAssetID), 0), ScriptTransfer(i.caller, checkuservotingbalance, BalletAssetID)] | |
163 | 166 | } | |
164 | 167 | ||
165 | 168 | ||
166 | 169 | ||
167 | 170 | @Callable(i) | |
168 | 171 | func SwapAssetToUSDTPairEntry (EnterAssetID) = { | |
169 | 172 | let calleraddress = toBase58String(i.caller.bytes) | |
170 | 173 | let pmt = if ((size(i.payments) == 1)) | |
171 | 174 | then i.payments[0] | |
172 | 175 | else throw("Whitelisted Swap Token is required as Attached payment[1].") | |
173 | - | let USDTAssetID = base58' | |
176 | + | let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU' | |
174 | 177 | let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID)) | |
175 | 178 | let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID)) | |
176 | 179 | let CheckPairPrice = getIntegerValue(this, ((("Price_Of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) | |
177 | - | let CheckOldBalance = getIntegerValue(this, ((("Old_Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) | |
180 | + | let CheckOldBalanceAssettoUSDT = getIntegerValue(this, ((("Old_Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) | |
181 | + | let CheckOldBalanceUSDTtoAsset = getIntegerValue(this, ((("Old_Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID)) | |
178 | 182 | let CheckAssetDecimals = getIntegerValue(this, ("Decimals_of_" + EnterAssetID)) | |
179 | 183 | let CurrentVotingStatus = "Fail" | |
180 | 184 | let SwapFee = 1 | |
181 | 185 | let amountAssetDecimals = CheckAssetDecimals | |
182 | 186 | let priceAssetDecimals = 6 | |
183 | 187 | let decimalsgap = ((6 - amountAssetDecimals) - 8) | |
184 | 188 | let quantityofpriceasset = (((pmt.amount * CheckPairPrice) * pow(10, 0, decimalsgap, 0, 0, UP)) / pow(10, 0, amountAssetDecimals, 0, 0, UP)) | |
185 | - | let getUSDTBalance = assetBalance(this, | |
189 | + | let getUSDTBalance = assetBalance(this, USDTAssetID) | |
186 | 190 | let newUSDTBalance = (getUSDTBalance - quantityofpriceasset) | |
187 | 191 | if ((checkpairisavailableornot != EnterAssetID)) | |
188 | 192 | then throw("Pair is not available in Whitelisted Asset.") | |
189 | 193 | else if ((VotingStatus == CurrentVotingStatus)) | |
190 | 194 | then throw((EnterAssetID + " is not A Whitelisted Token Yet.")) | |
191 | 195 | else if ((pmt.assetId == USDTAssetID)) | |
192 | - | then throw("You can't Attach USDT as an Attached Payment. Only Whitelisted Tokens are | |
196 | + | then throw("You can't Attach USDT as an Attached Payment. Only Whitelisted Tokens are accepted.") | |
193 | 197 | else if ((pmt.assetId != fromBase58String(EnterAssetID))) | |
194 | 198 | then throw(("Incorrect asset attached, please attach or send " + EnterAssetID)) | |
195 | 199 | else if ((10000 > quantityofpriceasset)) | |
196 | - | then throw((("Your Attached Amount is very low. Attach More " + EnterAssetID) + " | |
197 | - | else if (( | |
200 | + | then throw((("Your Attached Asset Amount is very low. Attach More " + EnterAssetID) + " Tokens to Claim the minimum Amount of 1 cent atleast.")) | |
201 | + | else if ((CheckOldBalanceAssettoUSDT == 0)) | |
198 | 202 | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
199 | - | else [IntegerEntry(((("Price_Of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), CheckPairPrice), ScriptTransfer(i.caller, ((quantityofpriceasset * 99) / 100), base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU'), ScriptTransfer(i.caller, ((quantityofpriceasset * SwapFee) / 100), base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU')] | |
203 | + | else if ((CheckOldBalanceUSDTtoAsset == 0)) | |
204 | + | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
205 | + | else [IntegerEntry(((("Price_Of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), CheckPairPrice), ScriptTransfer(i.caller, ((quantityofpriceasset * 99) / 100), USDTAssetID), ScriptTransfer(i.caller, ((quantityofpriceasset * SwapFee) / 100), USDTAssetID)] | |
200 | 206 | } | |
201 | 207 | ||
202 | 208 | ||
203 | 209 | ||
204 | 210 | @Callable(i) | |
205 | 211 | func SwapUSDTToAssetPairEntry (EnterAssetID) = { | |
206 | 212 | let calleraddress = toBase58String(i.caller.bytes) | |
207 | 213 | let pmt = if ((size(i.payments) == 1)) | |
208 | 214 | then i.payments[0] | |
209 | - | else throw("Whitelisted Swap Token is required as Attached payment[1].") | |
210 | - | let USDTAssetID = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4' | |
211 | - | nil | |
215 | + | else throw("Only USDT Token is required as an Attached payment[1].") | |
216 | + | let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU' | |
217 | + | let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID)) | |
218 | + | let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID)) | |
219 | + | let CheckReversePairPrice = getIntegerValue(this, ((("ReversePrice_Of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) | |
220 | + | let CheckAssetDecimals = getIntegerValue(this, ("Decimals_of_" + EnterAssetID)) | |
221 | + | let CurrentVotingStatus = "Fail" | |
222 | + | let ReverseSwapFee = 1 | |
223 | + | let amountAssetDecimals = CheckAssetDecimals | |
224 | + | let priceAssetDecimals = 6 | |
225 | + | let decimalsgap = ((6 - amountAssetDecimals) - 8) | |
226 | + | let quantityofpriceasset = (pmt.amount / pow(10, 0, amountAssetDecimals, 0, 0, UP)) | |
227 | + | let getAssetBalance = assetBalance(this, fromBase58String(EnterAssetID)) | |
228 | + | let newAssetBalance = (getAssetBalance - quantityofpriceasset) | |
229 | + | if ((checkpairisavailableornot != EnterAssetID)) | |
230 | + | then throw("Pair is not available in Whitelisted Asset.") | |
231 | + | else if ((VotingStatus == CurrentVotingStatus)) | |
232 | + | then throw((EnterAssetID + " is not A Whitelisted Token Yet.")) | |
233 | + | else if ((EnterAssetID == toBase58String(USDTAssetID))) | |
234 | + | then throw("Input can Never be a USDT AssetID. Enter AssetID in input and Attach USDT as attachment Token.") | |
235 | + | else if ((pmt.assetId != USDTAssetID)) | |
236 | + | then throw("You can Attach USDT as an Attached Payment to Swap USDT To Required Token. Any other asset else than USDT will be rejected.") | |
237 | + | else if ((1000000 > pmt.amount)) | |
238 | + | then throw("Your Attached USDT Amount is very low. Attach Atleast 1 USDT to Claim the minimum Tokens.") | |
239 | + | else [IntegerEntry(((("ReversePrice_Of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), CheckReversePairPrice), ScriptTransfer(i.caller, ((quantityofpriceasset * 99) / 100), fromBase58String(EnterAssetID)), ScriptTransfer(i.caller, ((quantityofpriceasset * ReverseSwapFee) / 100), fromBase58String(EnterAssetID))] | |
212 | 240 | } | |
213 | 241 | ||
214 | 242 | ||
215 | 243 | ||
216 | 244 | @Callable(i) | |
217 | 245 | func AddLiquidity (EnterAssetID) = { | |
218 | 246 | let calleraddress = toBase58String(i.caller.bytes) | |
219 | 247 | let pmt = if ((size(i.payments) == 1)) | |
220 | 248 | then i.payments[0] | |
221 | 249 | else throw("Whitelisted Swap Token is required as Attached payment[1].") | |
222 | - | let USDTAssetID = base58' | |
250 | + | let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU' | |
223 | 251 | nil | |
224 | 252 | } | |
225 | 253 | ||
226 | 254 | ||
227 | 255 | ||
228 | 256 | @Callable(i) | |
229 | 257 | func RemovePairEntry (EnterAssetID) = { | |
230 | 258 | let adminrights = getStringValue(this, "Polarity_Admin_Rights") | |
231 | - | let USDTAssetID = base58' | |
259 | + | let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU' | |
232 | 260 | let checkprojectexpireheight = getIntegerValue(this, ("Voting_End_Height_" + EnterAssetID)) | |
233 | 261 | let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID)) | |
234 | 262 | let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID)) | |
235 | 263 | let NewVotingStatus = "Pass" | |
236 | 264 | let calleraddress = toBase58String(i.caller.bytes) | |
237 | 265 | let currentheight = height | |
238 | 266 | let pendingblocksforprojectexpire = (checkprojectexpireheight - height) | |
239 | 267 | if ((checkpairisavailableornot != EnterAssetID)) | |
240 | 268 | then throw("Pair is not available in Voting List.") | |
241 | 269 | else if ((adminrights != calleraddress)) | |
242 | 270 | then throw((("I know You are not An Admin. Only " + adminrights) + " has rights to remove the pair.")) | |
243 | 271 | else if ((checkprojectexpireheight > height)) | |
244 | 272 | then throw((("Voting Already Running. You can remove the pair after " + toString(pendingblocksforprojectexpire)) + " Blocks")) | |
245 | 273 | else if ((VotingStatus == NewVotingStatus)) | |
246 | 274 | then throw((EnterAssetID + " is now Whitelisted. So you can't remove it.")) | |
247 | 275 | else [DeleteEntry(("Pair_Under_Voting_" + EnterAssetID)), DeleteEntry(("Voting_Start_Height_" + EnterAssetID)), DeleteEntry(("Voting_End_Height_" + EnterAssetID)), DeleteEntry(("Voting_Period_" + EnterAssetID)), DeleteEntry(("Votes_Required_" + EnterAssetID)), DeleteEntry(("Voting_Listing_Fee_" + EnterAssetID)), DeleteEntry(("Voting_Status_" + EnterAssetID)), DeleteEntry(("Votes_Received_" + EnterAssetID)), DeleteEntry(((("Price_Of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)))] | |
248 | 276 | } | |
249 | 277 | ||
250 | 278 | ||
251 | 279 | @Verifier(tx) | |
252 | 280 | func verify () = match tx { | |
253 | 281 | case _ => | |
254 | 282 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
255 | 283 | } | |
256 | 284 |
github/deemru/w8io/169f3d6 63.40 ms ◑