tx · 78kWBX8jx6FtoNYamJsuef3tB8AD8Hs44bsu8sXKyU6s 3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy: -0.14000000 Waves 2021.11.09 12:00 [1783260] smart account 3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy > SELF 0.00000000 Waves
{ "type": 13, "id": "78kWBX8jx6FtoNYamJsuef3tB8AD8Hs44bsu8sXKyU6s", "fee": 14000000, "feeAssetId": null, "timestamp": 1636448471025, "version": 2, "chainId": 84, "sender": "3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy", "senderPublicKey": "9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq", "proofs": [ "5ZNgpi2n7rcPS54s5PXPE8bUwetCTZTUdJNWpagoZqv2KfJkRkWuJYiAmoC8ZvQyT1s2VvJSuh3FTGFnisQS5v9s", "3fFPamMRf3YLESmyMYkYKvLnv7YsSxPQovv21bM13pVTpGi2YWZawCutFobyd1LRhck15X82wFacG28o9915DR7f" ], "script": "base64:AAIFAAAAAAAAAB4IAhIAEgQKAgEBEgMKAQESABIDCgEBEgASABIAEgAAAAAfAAAAAAxhZG1pblB1YktleTEBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAAAxhZG1pblB1YktleTIBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAAAxhZG1pblB1YktleTMBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAABRhZG1pblB1YktleVN0YXJ0U3RvcAEAAAAgfFhre1LFpY1nHGv0qWq0IqeZxOUsuXuODcQ0QWjNUHgAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAADGtleVZvdGVTdGFydAIAAAARdm90ZV9zdGFydF9oZWlnaHQAAAAACmtleVZvdGVFbmQCAAAAD3ZvdGVfZW5kX2h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", "spentComplexity": 0 } View: original | compacted Prev: 5Pr1BmBhTsQdA7JAYoMNFChWYyErv53DDnvmnBZ6XNg6 Next: 3HnUh8ntpaoWexXQJ6Df9NTGZSBHmph5usMR3R3p2peJ Diff:
Old | New | Differences | |
---|---|---|---|
107 | 107 | @Callable(i) | |
108 | 108 | func initVote (start,end) = if (!(isActive)) | |
109 | 109 | then throw("DApp is inactive at this moment") | |
110 | - | else if ( | |
110 | + | else if ((adminPubKeyStartStop == i.callerPublicKey)) | |
111 | 111 | then throw("Only admin can call this function") | |
112 | 112 | else [IntegerEntry(keyVoteStart, start), IntegerEntry(keyVoteEnd, end), IntegerEntry(keyTotalVoted, 0), IntegerEntry(keyTotalYesVoted, 0)] | |
113 | 113 | ||
149 | 149 | func lockENNO () = if (!(isActive)) | |
150 | 150 | then throw("DApp is inactive at this moment") | |
151 | 151 | else { | |
152 | - | let $ | |
153 | - | let pmtAmount = $ | |
154 | - | let pmtAssetId = $ | |
152 | + | let $t050785153 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
153 | + | let pmtAmount = $t050785153._1 | |
154 | + | let pmtAssetId = $t050785153._2 | |
155 | 155 | if ((pmtAssetId != ENNO)) | |
156 | 156 | then throw("Incorrect payment assetId only Enno Cash is allowed.") | |
157 | 157 | else { |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let adminPubKey1 = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq' | |
5 | 5 | ||
6 | 6 | let adminPubKey2 = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq' | |
7 | 7 | ||
8 | 8 | let adminPubKey3 = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq' | |
9 | 9 | ||
10 | 10 | let adminPubKeyStartStop = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq' | |
11 | 11 | ||
12 | 12 | let keyActive = "active" | |
13 | 13 | ||
14 | 14 | let keyCause = "shutdown_cause" | |
15 | 15 | ||
16 | 16 | let keyVoteStart = "vote_start_height" | |
17 | 17 | ||
18 | 18 | let keyVoteEnd = "vote_end_height" | |
19 | 19 | ||
20 | 20 | let keyVoteYes = "yes_amount" | |
21 | 21 | ||
22 | 22 | let keyUserENNOVoted = "_ENNO_vote" | |
23 | 23 | ||
24 | 24 | let keyUserENNOVotedHeight = "_ENNO_vote_height" | |
25 | 25 | ||
26 | 26 | let keyUserENNOVotedValue = "_ENNO_vote_value" | |
27 | 27 | ||
28 | 28 | let keyUserENNOVotedYESValue = "_ENNO_vote_yes_share" | |
29 | 29 | ||
30 | 30 | let keyTotalYesVoted = "total_ENNO_vote_yes" | |
31 | 31 | ||
32 | 32 | let keyUserENNOLocked = "_ENNO_amount" | |
33 | 33 | ||
34 | 34 | let keyTotalENNOLocked = "total_ENNO_amount" | |
35 | 35 | ||
36 | 36 | let keyTotalVoted = "total_ENNO_vote" | |
37 | 37 | ||
38 | 38 | let keyUserENNOClaimedAmount = "_ENNO_claimed_amount" | |
39 | 39 | ||
40 | 40 | let keyUserENNOLastClaimedAmount = "_ENNO_last_claimed_amount" | |
41 | 41 | ||
42 | 42 | let keyUserENNOLockedTag = "share_" | |
43 | 43 | ||
44 | 44 | let isActive = valueOrElse(getBoolean(this, keyActive), true) | |
45 | 45 | ||
46 | 46 | let shareData = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq' | |
47 | 47 | ||
48 | 48 | let ENNO = base58'6TmLfry3GRQoVSaesGSnp6NtZKveYgEopTLsjaGgXoso' | |
49 | 49 | ||
50 | 50 | func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)] | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func getUserENNOLocked (user) = valueOrElse(getInteger(this, (toString(user) + keyUserENNOLocked)), 0) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func getTotalENNOLocked () = valueOrElse(getInteger(this, keyTotalENNOLocked), 0) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func getUserVoteData (user,key) = valueOrElse(getInteger(this, (toString(user) + key)), 0) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func getVal (key) = valueOrElse(getInteger(this, key), 0) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func getCallerShare (caller) = { | |
66 | 66 | let callerShare = getInteger(addressFromPublicKey(shareData), (keyUserENNOLockedTag + toString(caller))) | |
67 | 67 | let callerShareAmount = match callerShare { | |
68 | 68 | case share: Int => | |
69 | 69 | share | |
70 | 70 | case share: Unit => | |
71 | 71 | throw("Only governance qualifiers can call this function.") | |
72 | 72 | case _ => | |
73 | 73 | throw("Match error") | |
74 | 74 | } | |
75 | 75 | callerShareAmount | |
76 | 76 | } | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func getClaimedAmount (caller) = { | |
80 | 80 | let callerWithdrawn = getInteger(this, (toString(caller) + keyUserENNOClaimedAmount)) | |
81 | 81 | let callerWithdrawnAmount = match callerWithdrawn { | |
82 | 82 | case share: Int => | |
83 | 83 | share | |
84 | 84 | case share: Unit => | |
85 | 85 | 0 | |
86 | 86 | case _ => | |
87 | 87 | throw("Match error") | |
88 | 88 | } | |
89 | 89 | callerWithdrawnAmount | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func setShare (amount) = { | |
94 | 94 | let deltaHeight = (getVal(keyVoteEnd) - height) | |
95 | 95 | let share = fraction(amount, deltaHeight, 100000000) | |
96 | 96 | share | |
97 | 97 | } | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | @Callable(i) | |
101 | 101 | func claimAirdrop () = if (!(isActive)) | |
102 | 102 | then throw("DApp is inactive at this moment") | |
103 | 103 | else [DeleteEntry((toString(i.caller) + keyUserENNOVotedYESValue)), DeleteEntry((toString(i.caller) + keyUserENNOVoted))] | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | ||
107 | 107 | @Callable(i) | |
108 | 108 | func initVote (start,end) = if (!(isActive)) | |
109 | 109 | then throw("DApp is inactive at this moment") | |
110 | - | else if ( | |
110 | + | else if ((adminPubKeyStartStop == i.callerPublicKey)) | |
111 | 111 | then throw("Only admin can call this function") | |
112 | 112 | else [IntegerEntry(keyVoteStart, start), IntegerEntry(keyVoteEnd, end), IntegerEntry(keyTotalVoted, 0), IntegerEntry(keyTotalYesVoted, 0)] | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | ||
116 | 116 | @Callable(i) | |
117 | 117 | func vote (voteAmount) = if (!(isActive)) | |
118 | 118 | then throw("DApp is inactive at this moment") | |
119 | 119 | else if ((getVal(keyVoteStart) > height)) | |
120 | 120 | then throw("Voting has not started yet.") | |
121 | 121 | else if ((height > getVal(keyVoteEnd))) | |
122 | 122 | then throw("Voting has already ended.") | |
123 | 123 | else { | |
124 | 124 | let totalYes = getVal(keyTotalYesVoted) | |
125 | 125 | let userVotedYes = getUserVoteData(i.caller, keyUserENNOVotedYESValue) | |
126 | 126 | let userENNOVoted = getUserVoteData(i.caller, keyUserENNOVoted) | |
127 | 127 | let userENNOLocked = getUserVoteData(i.caller, keyUserENNOLocked) | |
128 | 128 | let userENNOVotedNew = (userENNOVoted + voteAmount) | |
129 | 129 | if ((0 > userENNOVotedNew)) | |
130 | 130 | then throw("Vote amount is more than available.") | |
131 | 131 | else { | |
132 | 132 | let availableVote = (userENNOLocked - userENNOVoted) | |
133 | 133 | let userVoteValue = setShare(voteAmount) | |
134 | 134 | if ((voteAmount > availableVote)) | |
135 | 135 | then throw("Vote amount is more than available.") | |
136 | 136 | else { | |
137 | 137 | let userENNOVotedNewShare = (userVotedYes + userVoteValue) | |
138 | 138 | let newTotalYesVoted = (totalYes + userENNOVotedNewShare) | |
139 | 139 | let totalENNOVoted = getVal(keyTotalVoted) | |
140 | 140 | let totalENNOVotedNew = (totalENNOVoted + userVoteValue) | |
141 | 141 | [IntegerEntry((toString(i.caller) + keyUserENNOVotedYESValue), userENNOVotedNewShare), IntegerEntry((toString(i.caller) + keyUserENNOVoted), userENNOVotedNew), IntegerEntry(keyTotalVoted, totalENNOVotedNew), IntegerEntry(keyTotalYesVoted, newTotalYesVoted)] | |
142 | 142 | } | |
143 | 143 | } | |
144 | 144 | } | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | ||
148 | 148 | @Callable(i) | |
149 | 149 | func lockENNO () = if (!(isActive)) | |
150 | 150 | then throw("DApp is inactive at this moment") | |
151 | 151 | else { | |
152 | - | let $ | |
153 | - | let pmtAmount = $ | |
154 | - | let pmtAssetId = $ | |
152 | + | let $t050785153 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
153 | + | let pmtAmount = $t050785153._1 | |
154 | + | let pmtAssetId = $t050785153._2 | |
155 | 155 | if ((pmtAssetId != ENNO)) | |
156 | 156 | then throw("Incorrect payment assetId only Enno Cash is allowed.") | |
157 | 157 | else { | |
158 | 158 | let userENNOLocked = getUserENNOLocked(i.caller) | |
159 | 159 | let userENNOLockedNew = (userENNOLocked + pmtAmount) | |
160 | 160 | let totalENNOLocked = getTotalENNOLocked() | |
161 | 161 | let totalENNOLockedNew = (totalENNOLocked + pmtAmount) | |
162 | 162 | [IntegerEntry((toString(i.caller) + keyUserENNOLocked), userENNOLockedNew), IntegerEntry(keyTotalENNOLocked, totalENNOLockedNew)] | |
163 | 163 | } | |
164 | 164 | } | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | ||
168 | 168 | @Callable(i) | |
169 | 169 | func withdrawENNO (withdrawAmount) = if (!(isActive)) | |
170 | 170 | then throw("DApp is inactive at this moment") | |
171 | 171 | else if ((0 >= withdrawAmount)) | |
172 | 172 | then throw("withdrawAmount <= 0") | |
173 | 173 | else { | |
174 | 174 | let totalENNOLocked = getTotalENNOLocked() | |
175 | 175 | let userENNOLocked = getUserENNOLocked(i.caller) | |
176 | 176 | if ((withdrawAmount > totalENNOLocked)) | |
177 | 177 | then throw("withdrawAmount is more than available to withdraw") | |
178 | 178 | else if ((withdrawAmount > userENNOLocked)) | |
179 | 179 | then throw("You are trying to unstake more than you have staked.") | |
180 | 180 | else { | |
181 | 181 | let totalENNOLockedNew = (totalENNOLocked - withdrawAmount) | |
182 | 182 | let userENNOamountNew = (userENNOLocked - withdrawAmount) | |
183 | 183 | [IntegerEntry((toString(i.caller) + keyUserENNOLocked), userENNOamountNew), IntegerEntry(keyTotalENNOLocked, totalENNOLockedNew), ScriptTransfer(i.caller, withdrawAmount, ENNO)] | |
184 | 184 | } | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | ||
189 | 189 | @Callable(i) | |
190 | 190 | func claimAndWithdrawENNO () = if (!(isActive)) | |
191 | 191 | then throw("DApp is inactive at this moment") | |
192 | 192 | else { | |
193 | 193 | let userShare = getCallerShare(i.originCaller) | |
194 | 194 | let userClaimedAmount = getClaimedAmount(i.originCaller) | |
195 | 195 | let claimAmount = (userShare - userClaimedAmount) | |
196 | 196 | let totalENNOLocked = getTotalENNOLocked() | |
197 | 197 | if ((claimAmount > totalENNOLocked)) | |
198 | 198 | then throw("claimAmount is more than available to withdraw") | |
199 | 199 | else if ((0 >= claimAmount)) | |
200 | 200 | then throw("Claim amount must be bigger than 0") | |
201 | 201 | else { | |
202 | 202 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
203 | 203 | [IntegerEntry((toString(i.originCaller) + keyUserENNOClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.originCaller) + keyUserENNOLastClaimedAmount), claimAmount), ScriptTransfer(i.originCaller, claimAmount, ENNO)] | |
204 | 204 | } | |
205 | 205 | } | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | ||
209 | 209 | @Callable(i) | |
210 | 210 | func claimAndStakeENNO () = if (!(isActive)) | |
211 | 211 | then throw("DApp is inactive at this moment") | |
212 | 212 | else { | |
213 | 213 | let userShare = getCallerShare(i.originCaller) | |
214 | 214 | let userClaimedAmount = getClaimedAmount(i.originCaller) | |
215 | 215 | let claimAmount = (userShare - userClaimedAmount) | |
216 | 216 | if ((0 >= claimAmount)) | |
217 | 217 | then throw("Claim amount must be bigger than 0") | |
218 | 218 | else { | |
219 | 219 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
220 | 220 | let userENNOLocked = getUserENNOLocked(i.originCaller) | |
221 | 221 | let userENNOLockedNew = (userENNOLocked + claimAmount) | |
222 | 222 | let totalENNOLocked = getTotalENNOLocked() | |
223 | 223 | let totalENNOLockedNew = (totalENNOLocked + claimAmount) | |
224 | 224 | [IntegerEntry((toString(i.originCaller) + keyUserENNOLocked), userENNOLockedNew), IntegerEntry((toString(i.originCaller) + keyUserENNOClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.originCaller) + keyUserENNOLastClaimedAmount), claimAmount), IntegerEntry(keyTotalENNOLocked, totalENNOLockedNew)] | |
225 | 225 | } | |
226 | 226 | } | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | ||
230 | 230 | @Callable(i) | |
231 | 231 | func shutdown () = if (!(isActive)) | |
232 | 232 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
233 | 233 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
234 | 234 | then throw("Only admin can call this function") | |
235 | 235 | else suspend("Paused by admin") | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | ||
239 | 239 | @Callable(i) | |
240 | 240 | func activate () = if (isActive) | |
241 | 241 | then throw("DApp is already active") | |
242 | 242 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
243 | 243 | then throw("Only admin can call this function") | |
244 | 244 | else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)] | |
245 | 245 | ||
246 | 246 | ||
247 | 247 | @Verifier(tx) | |
248 | 248 | func verify () = { | |
249 | 249 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
250 | 250 | then 1 | |
251 | 251 | else 0 | |
252 | 252 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
253 | 253 | then 1 | |
254 | 254 | else 0 | |
255 | 255 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
256 | 256 | then 1 | |
257 | 257 | else 0 | |
258 | 258 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
259 | 259 | } | |
260 | 260 |
github/deemru/w8io/026f985 62.39 ms ◑