tx · aWfDqxiwEMxkWbhasq43RDEnopkodCRVTEd7yXMcrNS

3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv:  -0.01400000 Waves

2021.08.18 15:15 [1663765] smart account 3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv > SELF 0.00000000 Waves

{ "type": 13, "id": "aWfDqxiwEMxkWbhasq43RDEnopkodCRVTEd7yXMcrNS", "fee": 1400000, "feeAssetId": null, "timestamp": 1629288984515, "version": 2, "chainId": 84, "sender": "3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv", "senderPublicKey": "28sGn7FYnmxceAmnGYiDiKuMK1QyXiqX8zQXfKDnrc8t", "proofs": [ "2Knw6YVZ9tKodxTZ83ZNA64R9bS67bEiEkwd31hw2nCiem3feS7iU7WkPKC181T4YZcsaBMJsmyj5VMqaKMEZS48" ], "script": "base64:AAIEAAAAAAAAABsIAhIECgIIARIAEgASAwoBCBIDCgEIEgMKAQgAAAAAAAAABgAAAAFpAQAAABVSZWdpc3RlclBhaXJGb3JWb3RpbmcAAAACAAAACEFzc2V0SUQxAAAABGRheXMEAAAABHBtdDEJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAABHBtdDIJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAEEAAAACkZlZUFkZHJlc3MBAAAAIHE/Oe1BrsJepSkes1ESh96Qyq2U5VDLF1kF2MXI1ngbBAAAABFtYXhpbXVtdm90aW5nZGF5cwAAAAAAAAAAWgQAAAANQmFsbGV0QXNzZXRJRAEAAAAgLW9bAbmd5UpvGoRop5PuExeWGALv8UR2MHtYdfeTqKAEAAAAC1VTRFRBc3NldElEAQAAACBfV2kYyAongSbxW5ftxOxN+cK7WcsSGIuEYKBfpvf88wQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2F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ckFzc2V0SUQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACAgAAAA5Wb3RpbmdfUGVyaW9kXwUAAAAMRW50ZXJBc3NldElECQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgIAAAAPVm90ZXNfUmVxdWlyZWRfBQAAAAxFbnRlckFzc2V0SUQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACAgAAABNWb3RpbmdfTGlzdGluZ19GZWVfBQAAAAxFbnRlckFzc2V0SUQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACAgAAAA5Wb3RpbmdfU3RhdHVzXwUAAAAMRW50ZXJBc3NldElECQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgIAAAAPVm90ZXNfUmVjZWl2ZWRfBQAAAAxFbnRlckFzc2V0SUQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleeXh7Do=", "height": 1663765, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EUBzcUZ4F2uuC4UA9aZcpnFczzZF6nbDoiMqgSq6hcHZ Next: 2KtCr2fL7xwVkgkdvVFDQcbaHqcwJG3bFKZBk5oHpWmK Diff:
OldNewDifferences
150150 then throw("You don't have any dues of ballet balance in this Voting Pair.")
151151 else if (isDefined(pmt.assetId))
152152 then throw("Don't attach any asset. If you still want to support we accept only TN as payment.")
153- else [IntegerEntry(((("Votes_Received_" + calleraddress) + "_") + EnterAssetID), 0), ScriptTransfer(i.caller, checkuservotingbalance, BalletAssetID)]
153+ else if ((pmt.amount != 10000000))
154+ then throw("Please attach 0.1 TN as a fee to release your token.")
155+ else [IntegerEntry(((("Votes_Received_" + calleraddress) + "_") + EnterAssetID), 0), ScriptTransfer(i.caller, checkuservotingbalance, BalletAssetID)]
154156 }
155157
156158
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func RegisterPairForVoting (AssetID1,days) = {
88 let pmt1 = value(i.payments[0])
99 let pmt2 = value(i.payments[1])
1010 let FeeAddress = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene'
1111 let maximumvotingdays = 90
1212 let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
1313 let USDTAssetID = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4'
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)
2424 if ((43 > size(AssetID1)))
2525 then throw("Wrong AssetID1 is Entered for Voting. Please Enter a Valid AssetID1. Probably you entered an ASSETID1 less than 43 Chars.")
2626 else if ((29 >= days))
2727 then throw("Enter no. of days in between 30 to 90.")
2828 else if ((days > maximumvotingdays))
2929 then throw("You Entered days greater than 90 please Enter no. of days in between 1 to 90.")
3030 else if ((fetchpair == AssetID1))
3131 then throw("Pair Already Exist in Voting List.")
3232 else if ((size(i.payments) != 2))
3333 then throw("Two attached assets expected as payment. Kindly Attach payment1 = Ballet Token and payment2 = Token you want to add to List for Voting.")
3434 else if ((pmt1.assetId != BalletAssetID))
3535 then throw("Incorrect asset attached for Voting in payment[1], please attach 1000 Ballet Token only.")
3636 else if ((40000000 > pmt1.amount))
3737 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."))
3838 else if ((pmt2.assetId != assetinfopmt2))
3939 then throw("Asset String Attached in ASSETID1 is not matching with Payment2 AssetID.")
4040 else if ((TN == true))
4141 then throw("You Attached TN Asset ID for Voting, please attach the Token You want to list in payment[2].")
4242 else if ((pmt2.assetId == BalletAssetID))
4343 then throw("You Attached Ballet asset for Voting in both payments, please attach the Token You want to list in payment[2].")
4444 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), ScriptTransfer(addressFromPublicKey(FeeAddress), pmt1.amount, BalletAssetID)]
4545 }
4646
4747
4848
4949 @Callable(i)
5050 func IssueBallet () = {
5151 let pmt = value(i.payments[0])
5252 let currentKey = toBase58String(i.caller.bytes)
5353 let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
5454 let PricePerBallet = getIntegerValue(this, "BALLET/TN")
5555 let NewBalletToUser = fraction(100000, pmt.amount, PricePerBallet)
5656 let PreviousIssuedBallet = getIntegerValue(this, "Total_Issued_Ballet:")
5757 let TotalIssuedBallet = (PreviousIssuedBallet + NewBalletToUser)
5858 let PreviousBalletReserveValue = getIntegerValue(this, "Total_Ballet_Reserve_In_TN:")
5959 let BalletReserveValue = (PreviousBalletReserveValue + pmt.amount)
6060 let PreviousBalletBackupPrice = getIntegerValue(this, "Ballet_Backup_Value_In_TN:")
6161 let BalletBackupPrice = fraction(100000, BalletReserveValue, TotalIssuedBallet)
6262 let FeeAddress = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene'
6363 if (isDefined(pmt.assetId))
6464 then throw("Incorrect asset attached, please attach TN.")
6565 else if ((5000000 > pmt.amount))
6666 then throw("Please Attach minimum 0.05 TN To Issue Ballet Asset.")
6767 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 * 99) / 100), BalletAssetID), ScriptTransfer(addressFromPublicKey(FeeAddress), ((NewBalletToUser * 1) / 100), BalletAssetID)]
6868 }
6969
7070
7171
7272 @Callable(i)
7373 func Liquidate () = {
7474 let currentKey = toBase58String(i.callerPublicKey)
7575 let pmt = value(i.payments[0])
7676 let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
7777 let PreviousIssuedBallet = getIntegerValue(this, "Total_Issued_Ballet:")
7878 let TotalIssuedBallet = (PreviousIssuedBallet - pmt.amount)
7979 let PreviousBalletReserveValue = getIntegerValue(this, "Total_Ballet_Reserve_In_TN:")
8080 let PreviousBalletBackupPrice = getIntegerValue(this, "Ballet_Backup_Value_In_TN:")
8181 let calculateburnvalue = fraction(PreviousBalletBackupPrice, pmt.amount, 100000)
8282 let BalletReserveValue = (PreviousBalletReserveValue - calculateburnvalue)
8383 let BalletBackupPrice = fraction(100000, BalletReserveValue, TotalIssuedBallet)
8484 if ((pmt.assetId != BalletAssetID))
8585 then throw("Kindly Deposit Only 44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y (Ballet).")
8686 else if ((100000 > pmt.amount))
8787 then throw("Attach Amount must be greater than 0.001 Ballet.")
8888 else [Burn(BalletAssetID, pmt.amount), IntegerEntry("Total_Issued_Ballet:", TotalIssuedBallet), IntegerEntry("Total_Ballet_Reserve_In_TN:", BalletReserveValue), IntegerEntry("Ballet_Backup_Value_In_TN:", BalletBackupPrice), ScriptTransfer(i.caller, calculateburnvalue, unit)]
8989 }
9090
9191
9292
9393 @Callable(i)
9494 func DoVoting (EnterAssetID) = {
9595 let pmt = if ((size(i.payments) == 1))
9696 then i.payments[0]
9797 else throw("Ballet Token is required as Attached payment")
9898 let calleraddress = toBase58String(i.caller.bytes)
9999 let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
100100 let NewVotingStatus = "Pass"
101101 let checkprojectexpireheight = getIntegerValue(this, ("Voting_End_Height_" + EnterAssetID))
102102 let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID))
103103 let checkvotesrequired = getIntegerValue(this, ("Votes_Required_" + EnterAssetID))
104104 let checkvotesreceived = getIntegerValue(this, ("Votes_Received_" + EnterAssetID))
105105 let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID))
106106 let currentvotes = match getInteger(this, ("Votes_Received_" + EnterAssetID)) {
107107 case a: Int =>
108108 a
109109 case _ =>
110110 0
111111 }
112112 let newvotescount = (currentvotes + pmt.amount)
113113 let individualvotes = match getInteger(this, ((("Votes_Received_" + calleraddress) + "_") + EnterAssetID)) {
114114 case b: Int =>
115115 b
116116 case _ =>
117117 0
118118 }
119119 let individualvotescount = (individualvotes + pmt.amount)
120120 let checkwhitelist = (checkvotesreceived >= checkvotesrequired)
121121 if ((checkpairisavailableornot != EnterAssetID))
122122 then throw("Pair is not available in Voting List.")
123123 else if ((height > checkprojectexpireheight))
124124 then throw((("Voting timeline for " + EnterAssetID) + " is expired."))
125125 else if ((pmt.assetId != BalletAssetID))
126126 then throw("Kindly Attach Only 44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y (Ballet).")
127127 else if (checkwhitelist)
128128 then [StringEntry(("Voting_Status_" + EnterAssetID), NewVotingStatus)]
129129 else if ((VotingStatus == NewVotingStatus))
130130 then throw("Voting for XXXXXXXXXXXXXXXXXXX pair is completed and it’s available in whitelist.")
131131 else [IntegerEntry(("Votes_Received_" + EnterAssetID), newvotescount), IntegerEntry(((("Votes_Received_" + calleraddress) + "_") + EnterAssetID), individualvotescount)]
132132 }
133133
134134
135135
136136 @Callable(i)
137137 func WithdrawVotedTokens (EnterAssetID) = {
138138 let pmt = i.payments[0]
139139 let calleraddress = toBase58String(i.caller.bytes)
140140 let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
141141 let checkprojectexpireheight = getIntegerValue(this, ("Voting_End_Height_" + EnterAssetID))
142142 let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID))
143143 let checkuservotingbalance = getIntegerValue(this, ((("Votes_Received_" + calleraddress) + "_") + EnterAssetID))
144144 let pendingblocksforprojectexpire = (checkprojectexpireheight - height)
145145 if ((checkpairisavailableornot != EnterAssetID))
146146 then throw("Pair is not available in Voting List.")
147147 else if ((checkprojectexpireheight > height))
148148 then throw((("Voting Already Running. You can withdraw your Ballet Token only after the expire of " + toString(pendingblocksforprojectexpire)) + " Blocks"))
149149 else if ((0 >= checkuservotingbalance))
150150 then throw("You don't have any dues of ballet balance in this Voting Pair.")
151151 else if (isDefined(pmt.assetId))
152152 then throw("Don't attach any asset. If you still want to support we accept only TN as payment.")
153- else [IntegerEntry(((("Votes_Received_" + calleraddress) + "_") + EnterAssetID), 0), ScriptTransfer(i.caller, checkuservotingbalance, BalletAssetID)]
153+ else if ((pmt.amount != 10000000))
154+ then throw("Please attach 0.1 TN as a fee to release your token.")
155+ else [IntegerEntry(((("Votes_Received_" + calleraddress) + "_") + EnterAssetID), 0), ScriptTransfer(i.caller, checkuservotingbalance, BalletAssetID)]
154156 }
155157
156158
157159
158160 @Callable(i)
159161 func RemovePairEntry (EnterAssetID) = {
160162 let adminrights = getStringValue(this, "Polarity_Admin_Rights")
161163 let checkprojectexpireheight = getIntegerValue(this, ("Voting_End_Height_" + EnterAssetID))
162164 let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID))
163165 let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID))
164166 let NewVotingStatus = "Pass"
165167 let calleraddress = toBase58String(i.caller.bytes)
166168 let currentheight = height
167169 let pendingblocksforprojectexpire = (checkprojectexpireheight - height)
168170 if ((checkpairisavailableornot != EnterAssetID))
169171 then throw("Pair is not available in Voting List.")
170172 else if ((adminrights != calleraddress))
171173 then throw((("I know You are not An Admin. Only " + adminrights) + " has rights to remove the pair."))
172174 else if ((checkprojectexpireheight > height))
173175 then throw((("Voting Already Running. You can remove the pair after " + toString(pendingblocksforprojectexpire)) + " Blocks"))
174176 else if ((VotingStatus == NewVotingStatus))
175177 then throw((EnterAssetID + " is now Whitelisted. So you can't remove it."))
176178 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))]
177179 }
178180
179181
180182 @Verifier(tx)
181183 func verify () = match tx {
182184 case _ =>
183185 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
184186 }
185187

github/deemru/w8io/169f3d6 
41.05 ms