tx · FwnPwB138LCiBcoDzXQyLdooWreJjjoXGzr8A1ooz7fy

3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv:  -0.01400000 Waves

2021.08.20 10:42 [1666386] smart account 3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv > SELF 0.00000000 Waves

{ "type": 13, "id": "FwnPwB138LCiBcoDzXQyLdooWreJjjoXGzr8A1ooz7fy", "fee": 1400000, "feeAssetId": null, "timestamp": 1629445402006, "version": 2, "chainId": 84, "sender": "3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv", "senderPublicKey": "28sGn7FYnmxceAmnGYiDiKuMK1QyXiqX8zQXfKDnrc8t", "proofs": [ "4LHJnujJknhoFin2JxUgMTcwnsk2T1nTsENYsjYPRsTkmbwN8Kgdmf5sgTrvkrDPs8skVZhEN2ZaJfv1RzgmeuPM" ], "script": "base64:AAIEAAAAAAAAABwIAhIFCgMIAQESABIAEgMKAQgSAwoBCBIDCgEIAAAAAAAAAAYAAAABaQEAAAAVUmVnaXN0ZXJQYWlyRm9yVm90aW5nAAAAAwAAAAhBc3NldElEMQAAAARkYXlzAAAADExpc3RpbmdQcmljZQQAAAAEcG10MQkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAAEcG10MgkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAQQAAAAKRmVlQWRkcmVzcwEAAAAgcT857UGuwl6lKR6zURKH3pDKrZTlUMsXWQXYxcjWeBsEAAAAEW1heGltdW12b3RpbmdkYXlzAAAAAAAAAABaBAAAAA1CYWxsZXRBc3NldElEAQAAACAtb1sBuZ3lSm8ahGink+4TF5YYAu/xRHYwe1h195OooAQAAAALVVNEVEFzc2V0SUQBAAAAIF9XaRjICieBJvFbl+3E7E35wrtZyxIYi4RgoF+m9/zzBAAAAApjdXJyZW50S2V5CQACWAAAAAE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EJAAEsAAAAAgIAAAAPVm90ZXNfUmVjZWl2ZWRfBQAAAAxFbnRlckFzc2V0SUQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAJUHJpY2VfT2ZfBQAAAAxFbnRlckFzc2V0SUQCAAAAAV8JAAJYAAAAAQUAAAALVVNEVEFzc2V0SUQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleSJPI+0=", "height": 1666386, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7xR5bA1iUyKumhV4EKY6me5VJ3JGAJF85fSuuGfq1qJX Next: DtrBggEtLXzNGhU4T7fabBGNjdcJn5VhKm5j5dzjPDXv Diff:
OldNewDifferences
44
55
66 @Callable(i)
7-func RegisterPairForVoting (AssetID1,days) = {
7+func RegisterPairForVoting (AssetID1,days,ListingPrice) = {
88 let pmt1 = value(i.payments[0])
99 let pmt2 = value(i.payments[1])
1010 let FeeAddress = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene'
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.")
32- else if ((size(i.payments) != 3))
32+ 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.")
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].")
44- 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)]
44+ 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)]
4545 }
4646
4747
162162 @Callable(i)
163163 func RemovePairEntry (EnterAssetID) = {
164164 let adminrights = getStringValue(this, "Polarity_Admin_Rights")
165+ let USDTAssetID = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4'
165166 let checkprojectexpireheight = getIntegerValue(this, ("Voting_End_Height_" + EnterAssetID))
166167 let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID))
167168 let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID))
177178 then throw((("Voting Already Running. You can remove the pair after " + toString(pendingblocksforprojectexpire)) + " Blocks"))
178179 else if ((VotingStatus == NewVotingStatus))
179180 then throw((EnterAssetID + " is now Whitelisted. So you can't remove it."))
180- 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))]
181+ 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)))]
181182 }
182183
183184
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
7-func RegisterPairForVoting (AssetID1,days) = {
7+func RegisterPairForVoting (AssetID1,days,ListingPrice) = {
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.")
32- else if ((size(i.payments) != 3))
32+ 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].")
44- 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)]
44+ 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)]
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 let info = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
122122 let decimals = info.decimals
123123 if ((checkpairisavailableornot != EnterAssetID))
124124 then throw("Pair is not available in Voting List.")
125125 else if ((height > checkprojectexpireheight))
126126 then throw((("Voting timeline for " + EnterAssetID) + " is expired."))
127127 else if ((pmt.assetId != BalletAssetID))
128128 then throw("Kindly Attach Only 44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y (Ballet).")
129129 else if ((VotingStatus == NewVotingStatus))
130130 then throw((("Voting for " + EnterAssetID) + " pair is completed and it’s available in whitelist."))
131131 else if (checkwhitelist)
132132 then [StringEntry(("Voting_Status_" + EnterAssetID), NewVotingStatus), IntegerEntry(("Decimals_of_" + EnterAssetID), decimals)]
133133 else [IntegerEntry(("Votes_Received_" + EnterAssetID), newvotescount), IntegerEntry(((("Votes_Received_" + calleraddress) + "_") + EnterAssetID), individualvotescount)]
134134 }
135135
136136
137137
138138 @Callable(i)
139139 func WithdrawVotedTokens (EnterAssetID) = {
140140 let pmt = i.payments[0]
141141 let calleraddress = toBase58String(i.caller.bytes)
142142 let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
143143 let checkprojectexpireheight = getIntegerValue(this, ("Voting_End_Height_" + EnterAssetID))
144144 let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID))
145145 let checkuservotingbalance = getIntegerValue(this, ((("Votes_Received_" + calleraddress) + "_") + EnterAssetID))
146146 let pendingblocksforprojectexpire = (checkprojectexpireheight - height)
147147 if ((checkpairisavailableornot != EnterAssetID))
148148 then throw("Pair is not available in Voting List.")
149149 else if ((checkprojectexpireheight > height))
150150 then throw((("Voting Already Running. You can withdraw your Ballet Token only after the expire of " + toString(pendingblocksforprojectexpire)) + " Blocks"))
151151 else if ((0 >= checkuservotingbalance))
152152 then throw("You don't have any dues of ballet balance in this Voting Pair.")
153153 else if (isDefined(pmt.assetId))
154154 then throw("Don't attach any asset. If you still want to support we accept only TN as payment.")
155155 else if ((pmt.amount != 10000000))
156156 then throw("Please attach 0.1 TN as a fee to release your token.")
157157 else [IntegerEntry(((("Votes_Received_" + calleraddress) + "_") + EnterAssetID), 0), ScriptTransfer(i.caller, checkuservotingbalance, BalletAssetID)]
158158 }
159159
160160
161161
162162 @Callable(i)
163163 func RemovePairEntry (EnterAssetID) = {
164164 let adminrights = getStringValue(this, "Polarity_Admin_Rights")
165+ let USDTAssetID = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4'
165166 let checkprojectexpireheight = getIntegerValue(this, ("Voting_End_Height_" + EnterAssetID))
166167 let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID))
167168 let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID))
168169 let NewVotingStatus = "Pass"
169170 let calleraddress = toBase58String(i.caller.bytes)
170171 let currentheight = height
171172 let pendingblocksforprojectexpire = (checkprojectexpireheight - height)
172173 if ((checkpairisavailableornot != EnterAssetID))
173174 then throw("Pair is not available in Voting List.")
174175 else if ((adminrights != calleraddress))
175176 then throw((("I know You are not An Admin. Only " + adminrights) + " has rights to remove the pair."))
176177 else if ((checkprojectexpireheight > height))
177178 then throw((("Voting Already Running. You can remove the pair after " + toString(pendingblocksforprojectexpire)) + " Blocks"))
178179 else if ((VotingStatus == NewVotingStatus))
179180 then throw((EnterAssetID + " is now Whitelisted. So you can't remove it."))
180- 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))]
181+ 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)))]
181182 }
182183
183184
184185 @Verifier(tx)
185186 func verify () = match tx {
186187 case _ =>
187188 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
188189 }
189190

github/deemru/w8io/026f985 
46.03 ms