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+WnHxxBAAAAApjdXJyZW50S2V5CQAC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AAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgIAAAAOVm90aW5nX1N0YXR1c18FAAAADEVudGVyQXNzZXRJRAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAICAAAAD1ZvdGVzX1JlY2VpdmVkXwUAAAAMRW50ZXJBc3NldElECQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAACVByaWNlX09mXwUAAAAMRW50ZXJBc3NldElEAgAAAAFfCQACWAAAAAEFAAAAC1VTRFRBc3NldElEBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXk6uolO", "height": 1671428, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8qcK3WdoqVJuq8HkddKfU3QeCcV2mz3M5R7DYhoojXQf Next: GD45vhBoyo5pX1ckVLACFsCFKLUHxRyjh4ogHjwzFK8F Diff:
OldNewDifferences
1010 let FeeAddress = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr'
1111 let maximumvotingdays = 90
1212 let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
13- let USDTAssetID = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4'
13+ let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU'
1414 let currentKey = toBase58String(i.caller.bytes)
1515 let TN = !(isDefined(pmt2.assetId))
1616 let oneday = 1440
2121 let fetchpair = getString(this, ("Pair_Under_Voting_" + AssetID1))
2222 let votingstatus = "Fail"
2323 let assetinfopmt2 = fromBase58String(AssetID1)
24+ let reverseprice = fraction(1, 1000000000000, ListingPrice)
2425 if ((43 > size(AssetID1)))
2526 then throw("Wrong AssetID1 is Entered for Voting. Please Enter a Valid AssetID1. Probably you entered an ASSETID1 less than 43 Chars.")
2627 else if ((29 >= days))
3334 then throw("Two attached assets expected as payment. Kindly Attach payment1 = Ballet Token and payment2 = Token you want to add to List for Voting.")
3435 else if ((pmt1.assetId != BalletAssetID))
3536 then throw("Incorrect asset attached for Voting in payment[1], please attach 1000 Ballet Token only.")
36- else if ((40000000 > pmt1.amount))
37+ else if ((10000000 > pmt1.amount))
3738 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."))
3839 else if ((pmt2.assetId != assetinfopmt2))
3940 then throw("Asset String Attached in ASSETID1 is not matching with Payment2 AssetID.")
4142 then throw("You Attached TN Asset ID for Voting, please attach the Token You want to list in payment[2].")
4243 else if ((pmt2.assetId == BalletAssetID))
4344 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)]
4750 }
4851
4952
102105 let calleraddress = toBase58String(i.caller.bytes)
103106 let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
104107 let NewVotingStatus = "Pass"
105- let USDTAssetID = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4'
108+ let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU'
106109 let checkprojectexpireheight = getIntegerValue(this, ("Voting_End_Height_" + EnterAssetID))
107110 let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID))
108111 let checkvotesrequired = getIntegerValue(this, ("Votes_Required_" + EnterAssetID))
134137 else if ((VotingStatus == NewVotingStatus))
135138 then throw((("Voting for " + EnterAssetID) + " pair is completed and it’s available in whitelist."))
136139 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)]
138141 else [IntegerEntry(("Votes_Received_" + EnterAssetID), newvotescount), IntegerEntry(((("Votes_Received_" + calleraddress) + "_") + EnterAssetID), individualvotescount)]
139142 }
140143
156159 else if ((0 >= checkuservotingbalance))
157160 then throw("You don't have any dues of ballet balance in this Voting Pair.")
158161 else if (isDefined(pmt.assetId))
159- then throw("Don't attach any asset. If you still want to support we accept only TN as payment.")
162+ then throw("Don't attach any other asset. Please attach 0.1 TN as a fee to release your token")
160163 else if ((pmt.amount != 10000000))
161164 then throw("Please attach 0.1 TN as a fee to release your token.")
162165 else [IntegerEntry(((("Votes_Received_" + calleraddress) + "_") + EnterAssetID), 0), ScriptTransfer(i.caller, checkuservotingbalance, BalletAssetID)]
170173 let pmt = if ((size(i.payments) == 1))
171174 then i.payments[0]
172175 else throw("Whitelisted Swap Token is required as Attached payment[1].")
173- let USDTAssetID = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4'
176+ let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU'
174177 let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID))
175178 let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID))
176179 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))
178182 let CheckAssetDecimals = getIntegerValue(this, ("Decimals_of_" + EnterAssetID))
179183 let CurrentVotingStatus = "Fail"
180184 let SwapFee = 1
182186 let priceAssetDecimals = 6
183187 let decimalsgap = ((6 - amountAssetDecimals) - 8)
184188 let quantityofpriceasset = (((pmt.amount * CheckPairPrice) * pow(10, 0, decimalsgap, 0, 0, UP)) / pow(10, 0, amountAssetDecimals, 0, 0, UP))
185- let getUSDTBalance = assetBalance(this, base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU')
189+ let getUSDTBalance = assetBalance(this, USDTAssetID)
186190 let newUSDTBalance = (getUSDTBalance - quantityofpriceasset)
187191 if ((checkpairisavailableornot != EnterAssetID))
188192 then throw("Pair is not available in Whitelisted Asset.")
189193 else if ((VotingStatus == CurrentVotingStatus))
190194 then throw((EnterAssetID + " is not A Whitelisted Token Yet."))
191195 else if ((pmt.assetId == USDTAssetID))
192- then throw("You can't Attach USDT as an Attached Payment. Only Whitelisted Tokens are Accepted.")
196+ then throw("You can't Attach USDT as an Attached Payment. Only Whitelisted Tokens are accepted.")
193197 else if ((pmt.assetId != fromBase58String(EnterAssetID)))
194198 then throw(("Incorrect asset attached, please attach or send " + EnterAssetID))
195199 else if ((10000 > quantityofpriceasset))
196- then throw((("Your Attached Amount is very low. Attach More " + EnterAssetID) + " Token to Claim the minimum Amount of 1 cent atleast."))
197- else if ((CheckOldBalance == 0))
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))
198202 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)]
200206 }
201207
202208
206212 let calleraddress = toBase58String(i.caller.bytes)
207213 let pmt = if ((size(i.payments) == 1))
208214 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))]
212240 }
213241
214242
219247 let pmt = if ((size(i.payments) == 1))
220248 then i.payments[0]
221249 else throw("Whitelisted Swap Token is required as Attached payment[1].")
222- let USDTAssetID = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4'
250+ let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU'
223251 nil
224252 }
225253
228256 @Callable(i)
229257 func RemovePairEntry (EnterAssetID) = {
230258 let adminrights = getStringValue(this, "Polarity_Admin_Rights")
231- let USDTAssetID = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4'
259+ let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU'
232260 let checkprojectexpireheight = getIntegerValue(this, ("Voting_End_Height_" + EnterAssetID))
233261 let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID))
234262 let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func RegisterPairForVoting (AssetID1,days,ListingPrice) = {
88 let pmt1 = value(i.payments[0])
99 let pmt2 = value(i.payments[1])
1010 let FeeAddress = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr'
1111 let maximumvotingdays = 90
1212 let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
13- let USDTAssetID = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4'
13+ let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU'
1414 let currentKey = toBase58String(i.caller.bytes)
1515 let TN = !(isDefined(pmt2.assetId))
1616 let oneday = 1440
1717 let NoOfDaysBlocks = (oneday * days)
1818 let gap = (NoOfDaysBlocks - 43199)
1919 let votesrequired = ((100000 + ((11574 * gap) / 10000)) * 100000000)
2020 let votingExpire = (height + NoOfDaysBlocks)
2121 let fetchpair = getString(this, ("Pair_Under_Voting_" + AssetID1))
2222 let votingstatus = "Fail"
2323 let assetinfopmt2 = fromBase58String(AssetID1)
24+ let reverseprice = fraction(1, 1000000000000, ListingPrice)
2425 if ((43 > size(AssetID1)))
2526 then throw("Wrong AssetID1 is Entered for Voting. Please Enter a Valid AssetID1. Probably you entered an ASSETID1 less than 43 Chars.")
2627 else if ((29 >= days))
2728 then throw("Enter no. of days in between 30 to 90.")
2829 else if ((days > maximumvotingdays))
2930 then throw("You Entered days greater than 90 please Enter no. of days in between 1 to 90.")
3031 else if ((fetchpair == AssetID1))
3132 then throw("Pair Already Exist in Voting List.")
3233 else if ((size(i.payments) != 2))
3334 then throw("Two attached assets expected as payment. Kindly Attach payment1 = Ballet Token and payment2 = Token you want to add to List for Voting.")
3435 else if ((pmt1.assetId != BalletAssetID))
3536 then throw("Incorrect asset attached for Voting in payment[1], please attach 1000 Ballet Token only.")
36- else if ((40000000 > pmt1.amount))
37+ else if ((10000000 > pmt1.amount))
3738 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."))
3839 else if ((pmt2.assetId != assetinfopmt2))
3940 then throw("Asset String Attached in ASSETID1 is not matching with Payment2 AssetID.")
4041 else if ((TN == true))
4142 then throw("You Attached TN Asset ID for Voting, please attach the Token You want to list in payment[2].")
4243 else if ((pmt2.assetId == BalletAssetID))
4344 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)]
4750 }
4851
4952
5053
5154 @Callable(i)
5255 func IssueBallet () = {
5356 let pmt = value(i.payments[0])
5457 let currentKey = toBase58String(i.caller.bytes)
5558 let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
5659 let PricePerBallet = getIntegerValue(this, "BALLET/TN")
5760 let NewBalletToUser = fraction(100000, pmt.amount, PricePerBallet)
5861 let PreviousIssuedBallet = getIntegerValue(this, "Total_Issued_Ballet:")
5962 let TotalIssuedBallet = (PreviousIssuedBallet + NewBalletToUser)
6063 let PreviousBalletReserveValue = getIntegerValue(this, "Total_Ballet_Reserve_In_TN:")
6164 let BalletReserveValue = (PreviousBalletReserveValue + pmt.amount)
6265 let PreviousBalletBackupPrice = getIntegerValue(this, "Ballet_Backup_Value_In_TN:")
6366 let BalletBackupPrice = fraction(100000, BalletReserveValue, TotalIssuedBallet)
6467 let FeeAddress = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr'
6568 let FeePercentage = 1
6669 let BalanceTokensReturnedToUser = (100 - FeePercentage)
6770 if (isDefined(pmt.assetId))
6871 then throw("Incorrect asset attached, please attach TN.")
6972 else if ((5000000 > pmt.amount))
7073 then throw("Please Attach minimum 0.05 TN To Issue Ballet Asset.")
7174 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)]
7275 }
7376
7477
7578
7679 @Callable(i)
7780 func Liquidate () = {
7881 let currentKey = toBase58String(i.callerPublicKey)
7982 let pmt = value(i.payments[0])
8083 let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
8184 let PreviousIssuedBallet = getIntegerValue(this, "Total_Issued_Ballet:")
8285 let TotalIssuedBallet = (PreviousIssuedBallet - pmt.amount)
8386 let PreviousBalletReserveValue = getIntegerValue(this, "Total_Ballet_Reserve_In_TN:")
8487 let PreviousBalletBackupPrice = getIntegerValue(this, "Ballet_Backup_Value_In_TN:")
8588 let calculateburnvalue = fraction(PreviousBalletBackupPrice, pmt.amount, 100000)
8689 let BalletReserveValue = (PreviousBalletReserveValue - calculateburnvalue)
8790 let BalletBackupPrice = fraction(100000, BalletReserveValue, TotalIssuedBallet)
8891 if ((pmt.assetId != BalletAssetID))
8992 then throw("Kindly Deposit Only 44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y (Ballet).")
9093 else if ((100000 > pmt.amount))
9194 then throw("Attach Amount must be greater than 0.001 Ballet.")
9295 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)]
9396 }
9497
9598
9699
97100 @Callable(i)
98101 func DoVoting (EnterAssetID) = {
99102 let pmt = if ((size(i.payments) == 1))
100103 then i.payments[0]
101104 else throw("Ballet Token is required as Attached payment")
102105 let calleraddress = toBase58String(i.caller.bytes)
103106 let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
104107 let NewVotingStatus = "Pass"
105- let USDTAssetID = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4'
108+ let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU'
106109 let checkprojectexpireheight = getIntegerValue(this, ("Voting_End_Height_" + EnterAssetID))
107110 let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID))
108111 let checkvotesrequired = getIntegerValue(this, ("Votes_Required_" + EnterAssetID))
109112 let checkvotesreceived = getIntegerValue(this, ("Votes_Received_" + EnterAssetID))
110113 let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID))
111114 let currentvotes = match getInteger(this, ("Votes_Received_" + EnterAssetID)) {
112115 case a: Int =>
113116 a
114117 case _ =>
115118 0
116119 }
117120 let newvotescount = (currentvotes + pmt.amount)
118121 let individualvotes = match getInteger(this, ((("Votes_Received_" + calleraddress) + "_") + EnterAssetID)) {
119122 case b: Int =>
120123 b
121124 case _ =>
122125 0
123126 }
124127 let individualvotescount = (individualvotes + pmt.amount)
125128 let checkwhitelist = (checkvotesreceived >= checkvotesrequired)
126129 let info = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
127130 let decimals = info.decimals
128131 if ((checkpairisavailableornot != EnterAssetID))
129132 then throw("Pair is not available in Voting List.")
130133 else if ((height > checkprojectexpireheight))
131134 then throw((("Voting timeline for " + EnterAssetID) + " is expired."))
132135 else if ((pmt.assetId != BalletAssetID))
133136 then throw("Kindly Attach Only 44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y (Ballet).")
134137 else if ((VotingStatus == NewVotingStatus))
135138 then throw((("Voting for " + EnterAssetID) + " pair is completed and it’s available in whitelist."))
136139 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)]
138141 else [IntegerEntry(("Votes_Received_" + EnterAssetID), newvotescount), IntegerEntry(((("Votes_Received_" + calleraddress) + "_") + EnterAssetID), individualvotescount)]
139142 }
140143
141144
142145
143146 @Callable(i)
144147 func WithdrawVotedTokens (EnterAssetID) = {
145148 let pmt = i.payments[0]
146149 let calleraddress = toBase58String(i.caller.bytes)
147150 let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
148151 let checkprojectexpireheight = getIntegerValue(this, ("Voting_End_Height_" + EnterAssetID))
149152 let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID))
150153 let checkuservotingbalance = getIntegerValue(this, ((("Votes_Received_" + calleraddress) + "_") + EnterAssetID))
151154 let pendingblocksforprojectexpire = (checkprojectexpireheight - height)
152155 if ((checkpairisavailableornot != EnterAssetID))
153156 then throw("Pair is not available in Voting List.")
154157 else if ((checkprojectexpireheight > height))
155158 then throw((("Voting Already Running. You can withdraw your Ballet Token only after the expire of " + toString(pendingblocksforprojectexpire)) + " Blocks"))
156159 else if ((0 >= checkuservotingbalance))
157160 then throw("You don't have any dues of ballet balance in this Voting Pair.")
158161 else if (isDefined(pmt.assetId))
159- then throw("Don't attach any asset. If you still want to support we accept only TN as payment.")
162+ then throw("Don't attach any other asset. Please attach 0.1 TN as a fee to release your token")
160163 else if ((pmt.amount != 10000000))
161164 then throw("Please attach 0.1 TN as a fee to release your token.")
162165 else [IntegerEntry(((("Votes_Received_" + calleraddress) + "_") + EnterAssetID), 0), ScriptTransfer(i.caller, checkuservotingbalance, BalletAssetID)]
163166 }
164167
165168
166169
167170 @Callable(i)
168171 func SwapAssetToUSDTPairEntry (EnterAssetID) = {
169172 let calleraddress = toBase58String(i.caller.bytes)
170173 let pmt = if ((size(i.payments) == 1))
171174 then i.payments[0]
172175 else throw("Whitelisted Swap Token is required as Attached payment[1].")
173- let USDTAssetID = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4'
176+ let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU'
174177 let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID))
175178 let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID))
176179 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))
178182 let CheckAssetDecimals = getIntegerValue(this, ("Decimals_of_" + EnterAssetID))
179183 let CurrentVotingStatus = "Fail"
180184 let SwapFee = 1
181185 let amountAssetDecimals = CheckAssetDecimals
182186 let priceAssetDecimals = 6
183187 let decimalsgap = ((6 - amountAssetDecimals) - 8)
184188 let quantityofpriceasset = (((pmt.amount * CheckPairPrice) * pow(10, 0, decimalsgap, 0, 0, UP)) / pow(10, 0, amountAssetDecimals, 0, 0, UP))
185- let getUSDTBalance = assetBalance(this, base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU')
189+ let getUSDTBalance = assetBalance(this, USDTAssetID)
186190 let newUSDTBalance = (getUSDTBalance - quantityofpriceasset)
187191 if ((checkpairisavailableornot != EnterAssetID))
188192 then throw("Pair is not available in Whitelisted Asset.")
189193 else if ((VotingStatus == CurrentVotingStatus))
190194 then throw((EnterAssetID + " is not A Whitelisted Token Yet."))
191195 else if ((pmt.assetId == USDTAssetID))
192- then throw("You can't Attach USDT as an Attached Payment. Only Whitelisted Tokens are Accepted.")
196+ then throw("You can't Attach USDT as an Attached Payment. Only Whitelisted Tokens are accepted.")
193197 else if ((pmt.assetId != fromBase58String(EnterAssetID)))
194198 then throw(("Incorrect asset attached, please attach or send " + EnterAssetID))
195199 else if ((10000 > quantityofpriceasset))
196- then throw((("Your Attached Amount is very low. Attach More " + EnterAssetID) + " Token to Claim the minimum Amount of 1 cent atleast."))
197- else if ((CheckOldBalance == 0))
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))
198202 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)]
200206 }
201207
202208
203209
204210 @Callable(i)
205211 func SwapUSDTToAssetPairEntry (EnterAssetID) = {
206212 let calleraddress = toBase58String(i.caller.bytes)
207213 let pmt = if ((size(i.payments) == 1))
208214 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))]
212240 }
213241
214242
215243
216244 @Callable(i)
217245 func AddLiquidity (EnterAssetID) = {
218246 let calleraddress = toBase58String(i.caller.bytes)
219247 let pmt = if ((size(i.payments) == 1))
220248 then i.payments[0]
221249 else throw("Whitelisted Swap Token is required as Attached payment[1].")
222- let USDTAssetID = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4'
250+ let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU'
223251 nil
224252 }
225253
226254
227255
228256 @Callable(i)
229257 func RemovePairEntry (EnterAssetID) = {
230258 let adminrights = getStringValue(this, "Polarity_Admin_Rights")
231- let USDTAssetID = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4'
259+ let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU'
232260 let checkprojectexpireheight = getIntegerValue(this, ("Voting_End_Height_" + EnterAssetID))
233261 let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID))
234262 let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID))
235263 let NewVotingStatus = "Pass"
236264 let calleraddress = toBase58String(i.caller.bytes)
237265 let currentheight = height
238266 let pendingblocksforprojectexpire = (checkprojectexpireheight - height)
239267 if ((checkpairisavailableornot != EnterAssetID))
240268 then throw("Pair is not available in Voting List.")
241269 else if ((adminrights != calleraddress))
242270 then throw((("I know You are not An Admin. Only " + adminrights) + " has rights to remove the pair."))
243271 else if ((checkprojectexpireheight > height))
244272 then throw((("Voting Already Running. You can remove the pair after " + toString(pendingblocksforprojectexpire)) + " Blocks"))
245273 else if ((VotingStatus == NewVotingStatus))
246274 then throw((EnterAssetID + " is now Whitelisted. So you can't remove it."))
247275 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)))]
248276 }
249277
250278
251279 @Verifier(tx)
252280 func verify () = match tx {
253281 case _ =>
254282 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
255283 }
256284

github/deemru/w8io/169f3d6 
66.84 ms