tx · DJLQUZmxW5euCFAzN8GcLzAxKMWqgAAMBRL5n7X7qfhD 3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv: -0.01400000 Waves 2021.08.21 01:40 [1667265] smart account 3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv > SELF 0.00000000 Waves
{ "type": 13, "id": "DJLQUZmxW5euCFAzN8GcLzAxKMWqgAAMBRL5n7X7qfhD", "fee": 1400000, "feeAssetId": null, "timestamp": 1629499194577, "version": 2, "chainId": 84, "sender": "3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv", "senderPublicKey": "28sGn7FYnmxceAmnGYiDiKuMK1QyXiqX8zQXfKDnrc8t", "proofs": [ "PRPkmxERYHBE5thJRLbKDfWNdJVJkrhECXJqNwocoXCy56ZnuWZSv1Dz15ZQ1yQKhCFPBNePbxdXsoEXZvJE2Po" ], "script": "base64:AAIEAAAAAAAAACEIAhIFCgMIAQESABIAEgMKAQgSAwoBCBIDCgEIEgMKAQgAAAAAAAAABwAAAAFpAQAAABVSZWdpc3RlclBhaXJGb3JWb3RpbmcAAAADAAAACEFzc2V0SUQxAAAABGRheXMAAAAMTGlzdGluZ1ByaWNlBAAAAARwbXQxCQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAARwbXQyCQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABBAAAAApGZWVBZGRyZXNzAQAAACDjrdey1Io21qI8AxObYBZMNWPHMCK947HpXHsKae68IwQAAAARbWF4aW11bXZvdGluZ2RheXMAAAAAAAAAAFoEAAAADUJhbGxldEFzc2V0SUQBAAAAIC1vWwG5neVKbxqEaKeT7hMXlhgC7/FEdjB7WHX3k6igBAAAAAtVU0RUQXNzZXRJRAEAAAAgX1dpGMgKJ4Em8VuX7cTsTfnCu1nLEhiLhGCgX6b3/PMEAAAACmN1cnJlbn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0ZUVudHJ5AAAAAQkAASwAAAACAgAAAA9Wb3Rlc19SZXF1aXJlZF8FAAAADEVudGVyQXNzZXRJRAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAICAAAAE1ZvdGluZ19MaXN0aW5nX0ZlZV8FAAAADEVudGVyQXNzZXRJRAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAICAAAADlZvdGluZ19TdGF0dXNfBQAAAAxFbnRlckFzc2V0SUQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACAgAAAA9Wb3Rlc19SZWNlaXZlZF8FAAAADEVudGVyQXNzZXRJRAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAlQcmljZV9PZl8FAAAADEVudGVyQXNzZXRJRAIAAAABXwkAAlgAAAABBQAAAAtVU0RUQXNzZXRJRAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V58qD5bw==", "height": 1667265, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8fC3WuzjNiYv1u1nse6zk9jXhZXWsn8Lev9CJ8LxBc4E Next: J2YhpzGt7wnBASQEANDdTpW93U8UN877bqomGsn9ns4E Diff:
Old | New | Differences | |
---|---|---|---|
174 | 174 | let CheckAssetDecimals = getIntegerValue(this, ("Decimals_of_" + EnterAssetID)) | |
175 | 175 | let CurrentVotingStatus = "Fail" | |
176 | 176 | let SwapFee = 1 | |
177 | - | let reverseprice = fraction(1, | |
177 | + | let reverseprice = fraction(1, CheckAssetDecimals, CheckPairPrice) | |
178 | 178 | if ((checkpairisavailableornot != EnterAssetID)) | |
179 | 179 | then throw("Pair is not available in Whitelisted Asset.") | |
180 | 180 | else if ((VotingStatus == CurrentVotingStatus)) |
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 | 13 | let USDTAssetID = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4' | |
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 | 24 | if ((43 > size(AssetID1))) | |
25 | 25 | then throw("Wrong AssetID1 is Entered for Voting. Please Enter a Valid AssetID1. Probably you entered an ASSETID1 less than 43 Chars.") | |
26 | 26 | else if ((29 >= days)) | |
27 | 27 | then throw("Enter no. of days in between 30 to 90.") | |
28 | 28 | else if ((days > maximumvotingdays)) | |
29 | 29 | then throw("You Entered days greater than 90 please Enter no. of days in between 1 to 90.") | |
30 | 30 | else if ((fetchpair == AssetID1)) | |
31 | 31 | then throw("Pair Already Exist in Voting List.") | |
32 | 32 | else if ((size(i.payments) != 2)) | |
33 | 33 | 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 | 34 | else if ((pmt1.assetId != BalletAssetID)) | |
35 | 35 | then throw("Incorrect asset attached for Voting in payment[1], please attach 1000 Ballet Token only.") | |
36 | 36 | else if ((40000000 > pmt1.amount)) | |
37 | 37 | 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 | 38 | else if ((pmt2.assetId != assetinfopmt2)) | |
39 | 39 | then throw("Asset String Attached in ASSETID1 is not matching with Payment2 AssetID.") | |
40 | 40 | else if ((TN == true)) | |
41 | 41 | then throw("You Attached TN Asset ID for Voting, please attach the Token You want to list in payment[2].") | |
42 | 42 | else if ((pmt2.assetId == BalletAssetID)) | |
43 | 43 | then throw("You Attached Ballet asset for Voting in both payments, please attach the Token You want to list in payment[2].") | |
44 | 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)] | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | ||
49 | 49 | @Callable(i) | |
50 | 50 | func IssueBallet () = { | |
51 | 51 | let pmt = value(i.payments[0]) | |
52 | 52 | let currentKey = toBase58String(i.caller.bytes) | |
53 | 53 | let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y' | |
54 | 54 | let PricePerBallet = getIntegerValue(this, "BALLET/TN") | |
55 | 55 | let NewBalletToUser = fraction(100000, pmt.amount, PricePerBallet) | |
56 | 56 | let PreviousIssuedBallet = getIntegerValue(this, "Total_Issued_Ballet:") | |
57 | 57 | let TotalIssuedBallet = (PreviousIssuedBallet + NewBalletToUser) | |
58 | 58 | let PreviousBalletReserveValue = getIntegerValue(this, "Total_Ballet_Reserve_In_TN:") | |
59 | 59 | let BalletReserveValue = (PreviousBalletReserveValue + pmt.amount) | |
60 | 60 | let PreviousBalletBackupPrice = getIntegerValue(this, "Ballet_Backup_Value_In_TN:") | |
61 | 61 | let BalletBackupPrice = fraction(100000, BalletReserveValue, TotalIssuedBallet) | |
62 | 62 | let FeeAddress = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr' | |
63 | 63 | let FeePercentage = 1 | |
64 | 64 | let BalanceTokensReturnedToUser = (100 - FeePercentage) | |
65 | 65 | if (isDefined(pmt.assetId)) | |
66 | 66 | then throw("Incorrect asset attached, please attach TN.") | |
67 | 67 | else if ((5000000 > pmt.amount)) | |
68 | 68 | then throw("Please Attach minimum 0.05 TN To Issue Ballet Asset.") | |
69 | 69 | 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)] | |
70 | 70 | } | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | ||
74 | 74 | @Callable(i) | |
75 | 75 | func Liquidate () = { | |
76 | 76 | let currentKey = toBase58String(i.callerPublicKey) | |
77 | 77 | let pmt = value(i.payments[0]) | |
78 | 78 | let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y' | |
79 | 79 | let PreviousIssuedBallet = getIntegerValue(this, "Total_Issued_Ballet:") | |
80 | 80 | let TotalIssuedBallet = (PreviousIssuedBallet - pmt.amount) | |
81 | 81 | let PreviousBalletReserveValue = getIntegerValue(this, "Total_Ballet_Reserve_In_TN:") | |
82 | 82 | let PreviousBalletBackupPrice = getIntegerValue(this, "Ballet_Backup_Value_In_TN:") | |
83 | 83 | let calculateburnvalue = fraction(PreviousBalletBackupPrice, pmt.amount, 100000) | |
84 | 84 | let BalletReserveValue = (PreviousBalletReserveValue - calculateburnvalue) | |
85 | 85 | let BalletBackupPrice = fraction(100000, BalletReserveValue, TotalIssuedBallet) | |
86 | 86 | if ((pmt.assetId != BalletAssetID)) | |
87 | 87 | then throw("Kindly Deposit Only 44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y (Ballet).") | |
88 | 88 | else if ((100000 > pmt.amount)) | |
89 | 89 | then throw("Attach Amount must be greater than 0.001 Ballet.") | |
90 | 90 | 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)] | |
91 | 91 | } | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | ||
95 | 95 | @Callable(i) | |
96 | 96 | func DoVoting (EnterAssetID) = { | |
97 | 97 | let pmt = if ((size(i.payments) == 1)) | |
98 | 98 | then i.payments[0] | |
99 | 99 | else throw("Ballet Token is required as Attached payment") | |
100 | 100 | let calleraddress = toBase58String(i.caller.bytes) | |
101 | 101 | let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y' | |
102 | 102 | let NewVotingStatus = "Pass" | |
103 | 103 | let checkprojectexpireheight = getIntegerValue(this, ("Voting_End_Height_" + EnterAssetID)) | |
104 | 104 | let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID)) | |
105 | 105 | let checkvotesrequired = getIntegerValue(this, ("Votes_Required_" + EnterAssetID)) | |
106 | 106 | let checkvotesreceived = getIntegerValue(this, ("Votes_Received_" + EnterAssetID)) | |
107 | 107 | let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID)) | |
108 | 108 | let currentvotes = match getInteger(this, ("Votes_Received_" + EnterAssetID)) { | |
109 | 109 | case a: Int => | |
110 | 110 | a | |
111 | 111 | case _ => | |
112 | 112 | 0 | |
113 | 113 | } | |
114 | 114 | let newvotescount = (currentvotes + pmt.amount) | |
115 | 115 | let individualvotes = match getInteger(this, ((("Votes_Received_" + calleraddress) + "_") + EnterAssetID)) { | |
116 | 116 | case b: Int => | |
117 | 117 | b | |
118 | 118 | case _ => | |
119 | 119 | 0 | |
120 | 120 | } | |
121 | 121 | let individualvotescount = (individualvotes + pmt.amount) | |
122 | 122 | let checkwhitelist = (checkvotesreceived >= checkvotesrequired) | |
123 | 123 | let info = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist")) | |
124 | 124 | let decimals = info.decimals | |
125 | 125 | if ((checkpairisavailableornot != EnterAssetID)) | |
126 | 126 | then throw("Pair is not available in Voting List.") | |
127 | 127 | else if ((height > checkprojectexpireheight)) | |
128 | 128 | then throw((("Voting timeline for " + EnterAssetID) + " is expired.")) | |
129 | 129 | else if ((pmt.assetId != BalletAssetID)) | |
130 | 130 | then throw("Kindly Attach Only 44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y (Ballet).") | |
131 | 131 | else if ((VotingStatus == NewVotingStatus)) | |
132 | 132 | then throw((("Voting for " + EnterAssetID) + " pair is completed and it’s available in whitelist.")) | |
133 | 133 | else if (checkwhitelist) | |
134 | 134 | then [StringEntry(("Voting_Status_" + EnterAssetID), NewVotingStatus), IntegerEntry(("Decimals_of_" + EnterAssetID), decimals)] | |
135 | 135 | else [IntegerEntry(("Votes_Received_" + EnterAssetID), newvotescount), IntegerEntry(((("Votes_Received_" + calleraddress) + "_") + EnterAssetID), individualvotescount)] | |
136 | 136 | } | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | ||
140 | 140 | @Callable(i) | |
141 | 141 | func WithdrawVotedTokens (EnterAssetID) = { | |
142 | 142 | let pmt = i.payments[0] | |
143 | 143 | let calleraddress = toBase58String(i.caller.bytes) | |
144 | 144 | let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y' | |
145 | 145 | let checkprojectexpireheight = getIntegerValue(this, ("Voting_End_Height_" + EnterAssetID)) | |
146 | 146 | let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID)) | |
147 | 147 | let checkuservotingbalance = getIntegerValue(this, ((("Votes_Received_" + calleraddress) + "_") + EnterAssetID)) | |
148 | 148 | let pendingblocksforprojectexpire = (checkprojectexpireheight - height) | |
149 | 149 | if ((checkpairisavailableornot != EnterAssetID)) | |
150 | 150 | then throw("Pair is not available in Voting List.") | |
151 | 151 | else if ((checkprojectexpireheight > height)) | |
152 | 152 | then throw((("Voting Already Running. You can withdraw your Ballet Token only after the expire of " + toString(pendingblocksforprojectexpire)) + " Blocks")) | |
153 | 153 | else if ((0 >= checkuservotingbalance)) | |
154 | 154 | then throw("You don't have any dues of ballet balance in this Voting Pair.") | |
155 | 155 | else if (isDefined(pmt.assetId)) | |
156 | 156 | then throw("Don't attach any asset. If you still want to support we accept only TN as payment.") | |
157 | 157 | else if ((pmt.amount != 10000000)) | |
158 | 158 | then throw("Please attach 0.1 TN as a fee to release your token.") | |
159 | 159 | else [IntegerEntry(((("Votes_Received_" + calleraddress) + "_") + EnterAssetID), 0), ScriptTransfer(i.caller, checkuservotingbalance, BalletAssetID)] | |
160 | 160 | } | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | ||
164 | 164 | @Callable(i) | |
165 | 165 | func SwapPairEntry (EnterAssetID) = { | |
166 | 166 | let calleraddress = toBase58String(i.caller.bytes) | |
167 | 167 | let pmt = if ((size(i.payments) == 1)) | |
168 | 168 | then i.payments[0] | |
169 | 169 | else throw("Swap Token is required as Attached payment.") | |
170 | 170 | let USDTAssetID = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4' | |
171 | 171 | let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID)) | |
172 | 172 | let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID)) | |
173 | 173 | let CheckPairPrice = getIntegerValue(this, ((("Price_Of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) | |
174 | 174 | let CheckAssetDecimals = getIntegerValue(this, ("Decimals_of_" + EnterAssetID)) | |
175 | 175 | let CurrentVotingStatus = "Fail" | |
176 | 176 | let SwapFee = 1 | |
177 | - | let reverseprice = fraction(1, | |
177 | + | let reverseprice = fraction(1, CheckAssetDecimals, CheckPairPrice) | |
178 | 178 | if ((checkpairisavailableornot != EnterAssetID)) | |
179 | 179 | then throw("Pair is not available in Whitelisted Asset.") | |
180 | 180 | else if ((VotingStatus == CurrentVotingStatus)) | |
181 | 181 | then throw((EnterAssetID + " is not A Whitelisted Token Yet.")) | |
182 | 182 | else if ((pmt.assetId == USDTAssetID)) | |
183 | 183 | then throw("You can't Attach USDT as an Attached Payment. Only Whitelisted Tokens are Accepted.") | |
184 | 184 | else if ((pmt.assetId != fromBase58String(EnterAssetID))) | |
185 | 185 | then throw(("Incorrect asset attached, please attach or send " + EnterAssetID)) | |
186 | 186 | else [IntegerEntry(((("Price_Of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), CheckPairPrice), ScriptTransfer(i.caller, (pmt.amount / reverseprice), base58'4noTADz7TX4HmjkCMpJAzkfuR6BKxDsSCzp3XJNZAcgy')] | |
187 | 187 | } | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | ||
191 | 191 | @Callable(i) | |
192 | 192 | func RemovePairEntry (EnterAssetID) = { | |
193 | 193 | let adminrights = getStringValue(this, "Polarity_Admin_Rights") | |
194 | 194 | let USDTAssetID = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4' | |
195 | 195 | let checkprojectexpireheight = getIntegerValue(this, ("Voting_End_Height_" + EnterAssetID)) | |
196 | 196 | let checkpairisavailableornot = getString(this, ("Pair_Under_Voting_" + EnterAssetID)) | |
197 | 197 | let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID)) | |
198 | 198 | let NewVotingStatus = "Pass" | |
199 | 199 | let calleraddress = toBase58String(i.caller.bytes) | |
200 | 200 | let currentheight = height | |
201 | 201 | let pendingblocksforprojectexpire = (checkprojectexpireheight - height) | |
202 | 202 | if ((checkpairisavailableornot != EnterAssetID)) | |
203 | 203 | then throw("Pair is not available in Voting List.") | |
204 | 204 | else if ((adminrights != calleraddress)) | |
205 | 205 | then throw((("I know You are not An Admin. Only " + adminrights) + " has rights to remove the pair.")) | |
206 | 206 | else if ((checkprojectexpireheight > height)) | |
207 | 207 | then throw((("Voting Already Running. You can remove the pair after " + toString(pendingblocksforprojectexpire)) + " Blocks")) | |
208 | 208 | else if ((VotingStatus == NewVotingStatus)) | |
209 | 209 | then throw((EnterAssetID + " is now Whitelisted. So you can't remove it.")) | |
210 | 210 | 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)))] | |
211 | 211 | } | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | @Verifier(tx) | |
215 | 215 | func verify () = match tx { | |
216 | 216 | case _ => | |
217 | 217 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
218 | 218 | } | |
219 | 219 |
github/deemru/w8io/026f985 60.03 ms ◑