tx · 3Rjhexgm1NwkDMDrDi2xFGfs6CJhzN7SLSjneLnG1onL 3N8DijjUMpYq512vvE9GHnCTUBUd4AZwhH6: -0.01400000 Waves 2021.05.12 14:09 [1522377] smart account 3N8DijjUMpYq512vvE9GHnCTUBUd4AZwhH6 > SELF 0.00000000 Waves
{ "type": 13, "id": "3Rjhexgm1NwkDMDrDi2xFGfs6CJhzN7SLSjneLnG1onL", "fee": 1400000, "feeAssetId": null, "timestamp": 1620817740692, "version": 2, "chainId": 84, "sender": "3N8DijjUMpYq512vvE9GHnCTUBUd4AZwhH6", "senderPublicKey": "75SuvmjmHX6J7smVGHvWY6acr5mqyRQCYpFxeFQh8Cy3", "proofs": [ "3jYMqfHQN3whZ7Qzo2z3UpzZJ1zAyubimz29iDBKRrATyTQ57AfcsBjgZNPNbF6Y8Lvwc2AUReKbXgk8nq1WJQry" ], "script": "base64:AAIEAAAAAAAAABsIAhIAEgQKAggIEgUKAwEEARIECgIBCBIAEgAAAAA7AAAAAAd2ZXJzaW9uAgAAAAUxLjAuMAAAAAAKa2V5VmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAAEWtleU51bWJlck9mVm90aW5nAgAAAA1udW1iZXJfdm90aW5nAAAAAA9rZXlIZWlnaHRPZlBvb2wCAAAAB19oZWlnaHQAAAAABWtleU5vAgAAAANfbm8AAAAABmtleVllcwIAAAAEX3llcwAAAAARa2V5U3RhdHVzT2ZWb3RpbmcCAAAAB19zdGF0dXMAAAAAEWtleUFtb3VudE9mVm90aW5nAgAAAA1hbW91bnRfdm90aW5nAAAAABRrZXlNYXhBbW91bnRPZlZvdGluZwIAAAARbWF4X2Ftb3VudF92b3RpbmcAAAAAEWtleU1heERheU9mVm90aW5nAgAAAA5tYXhfZGF5X3ZvdGluZwAAAAANa2V5Q29tbWlzc2lvbgIAAAAKY29tbWlzc2lvbgAAAAAba2V5Q29tbWlzc2lvblNjYWxlRGVsaW1pdGVyAg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AAAAAIFAAAADGFkbWluUHViS2V5MQkABEwAAAACBQAAAAxhZG1pblB1YktleTIJAARMAAAAAgUAAAAMYWRtaW5QdWJLZXkzCQAETAAAAAIFAAAAFGFkbWluUHViS2V5U3RhcnRTdG9wBQAAAANuaWwIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQkAAAIAAAABAgAAACFPbmx5IGFkbWluIGNhbiBjYWxsIHRoaXMgZnVuY3Rpb24JAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIFAAAACWtleUFjdGl2ZQYJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAIa2V5Q2F1c2UFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5pMdNWQ==", "height": 1522377, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HKnrX5DE1iPcn7idEPm7dE1NPKUWvhaNtqEL1T75qzBN Next: Dox8HpadeCRzmZhVpFTTiXe35b4AVJKVmPA6jTWNVF54 Diff:
Old | New | Differences | |
---|---|---|---|
257 | 257 | else if (if (((newNumberOfVoting + 1) > maxAmountOfVoting)) | |
258 | 258 | then true | |
259 | 259 | else (unactiveVote == "")) | |
260 | - | then throw(("Too many votes. Maximum quantity | |
260 | + | then throw(("Too many votes. Maximum quantity -" + toString(maxAmountOfVoting))) | |
261 | 261 | else if ((size(i.payments) != 1)) | |
262 | 262 | then throw("One attached assets expected") | |
263 | 263 | else if ((pmtAssetId != SWOP)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let version = "1.0.0" | |
5 | 5 | ||
6 | 6 | let keyVersion = "version" | |
7 | 7 | ||
8 | 8 | let keyActive = "active" | |
9 | 9 | ||
10 | 10 | let keyNumberOfVoting = "number_voting" | |
11 | 11 | ||
12 | 12 | let keyHeightOfPool = "_height" | |
13 | 13 | ||
14 | 14 | let keyNo = "_no" | |
15 | 15 | ||
16 | 16 | let keyYes = "_yes" | |
17 | 17 | ||
18 | 18 | let keyStatusOfVoting = "_status" | |
19 | 19 | ||
20 | 20 | let keyAmountOfVoting = "amount_voting" | |
21 | 21 | ||
22 | 22 | let keyMaxAmountOfVoting = "max_amount_voting" | |
23 | 23 | ||
24 | 24 | let keyMaxDayOfVoting = "max_day_voting" | |
25 | 25 | ||
26 | 26 | let keyCommission = "commission" | |
27 | 27 | ||
28 | 28 | let keyCommissionScaleDelimiter = "commission_scale_delimiter" | |
29 | 29 | ||
30 | 30 | let keyCause = "shutdown_cause" | |
31 | 31 | ||
32 | 32 | let keyCancelCause = "_cancel_cause" | |
33 | 33 | ||
34 | 34 | let kUserTotalSWOP = "_SWOP_amount" | |
35 | 35 | ||
36 | 36 | let kName = "_name" | |
37 | 37 | ||
38 | 38 | let votingId = "_votingId" | |
39 | 39 | ||
40 | 40 | let periodOfVoting = "period_voting" | |
41 | 41 | ||
42 | 42 | let activeVoteFirst = "active_vote_first" | |
43 | 43 | ||
44 | 44 | let activeVoteSecond = "active_vote_second" | |
45 | 45 | ||
46 | 46 | let activeVoteThird = "active_vote_third" | |
47 | 47 | ||
48 | 48 | let activeVoteFourth = "active_vote_fourth" | |
49 | 49 | ||
50 | 50 | let activeVoteFifth = "active_vote_fifth" | |
51 | 51 | ||
52 | 52 | let adminPubKey1 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
53 | 53 | ||
54 | 54 | let adminPubKey2 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
55 | 55 | ||
56 | 56 | let adminPubKey3 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
57 | 57 | ||
58 | 58 | let adminPubKeyStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
59 | 59 | ||
60 | 60 | let walletAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
61 | 61 | ||
62 | 62 | let govAddr = Address(base58'3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS') | |
63 | 63 | ||
64 | 64 | let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
65 | 65 | ||
66 | 66 | let SWOP = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ' | |
67 | 67 | ||
68 | 68 | let isActive = getBooleanValue(this, keyActive) | |
69 | 69 | ||
70 | 70 | let numberOfVoting = getIntegerValue(this, keyNumberOfVoting) | |
71 | 71 | ||
72 | 72 | let amountOfVoting = getIntegerValue(this, keyAmountOfVoting) | |
73 | 73 | ||
74 | 74 | let firstActiveVote = valueOrElse(getString(this, activeVoteFirst), "") | |
75 | 75 | ||
76 | 76 | let secondActiveVote = valueOrElse(getString(this, activeVoteSecond), "") | |
77 | 77 | ||
78 | 78 | let thirdActiveVote = valueOrElse(getString(this, activeVoteThird), "") | |
79 | 79 | ||
80 | 80 | let fourthActiveVote = valueOrElse(getString(this, activeVoteFourth), "") | |
81 | 81 | ||
82 | 82 | let fifthActiveVote = valueOrElse(getString(this, activeVoteFifth), "") | |
83 | 83 | ||
84 | 84 | let comissionForInitalizationOfVoting = 1000000000 | |
85 | 85 | ||
86 | 86 | let scaleValue3 = 1000 | |
87 | 87 | ||
88 | 88 | let scaleValue8 = 100000000 | |
89 | 89 | ||
90 | 90 | let slippageToleranceDelimiter = 1000 | |
91 | 91 | ||
92 | 92 | let scaleValue8Digits = 8 | |
93 | 93 | ||
94 | 94 | let maxAmountOfVoting = 5 | |
95 | 95 | ||
96 | 96 | let maxDayOfVoting = 5 | |
97 | 97 | ||
98 | 98 | let fiveDays = (1440 * maxDayOfVoting) | |
99 | 99 | ||
100 | 100 | func getAssetInfo (assetId) = match assetId { | |
101 | 101 | case id: ByteVector => | |
102 | 102 | if (isDefined(assetInfo(id))) | |
103 | 103 | then { | |
104 | 104 | let stringId = toBase58String(id) | |
105 | 105 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
106 | 106 | $Tuple3(stringId, info.name, info.decimals) | |
107 | 107 | } | |
108 | 108 | else throw("Asset is not define") | |
109 | 109 | case waves: Unit => | |
110 | 110 | $Tuple3("WAVES", "WAVES", 8) | |
111 | 111 | case _ => | |
112 | 112 | throw("Match error") | |
113 | 113 | } | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func isActivePoolExists (pools,assetA,assetB) = { | |
117 | 117 | let isPoolDefine = isDefined(getInteger(this, pools)) | |
118 | 118 | if (if (isPoolDefine) | |
119 | 119 | then (pools != "") | |
120 | 120 | else false) | |
121 | 121 | then { | |
122 | 122 | let poolsData = split(pools, "_") | |
123 | 123 | let voting = poolsData[2] | |
124 | 124 | let newPools = (((((assetA + "_") + assetB) + "_") + voting) + votingId) | |
125 | 125 | let isNewPoolDefine = isDefined(getInteger(this, newPools)) | |
126 | 126 | let heightOfVoting = valueOrElse(getInteger(this, (voting + keyHeightOfPool)), 0) | |
127 | 127 | let statusOfVoting = valueOrElse(getBoolean(this, (voting + keyStatusOfVoting)), true) | |
128 | 128 | if (isNewPoolDefine) | |
129 | 129 | then if ((heightOfVoting > height)) | |
130 | 130 | then if (statusOfVoting) | |
131 | 131 | then true | |
132 | 132 | else false | |
133 | 133 | else false | |
134 | 134 | else false | |
135 | 135 | } | |
136 | 136 | else false | |
137 | 137 | } | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func isUnactivePoolExists (pools) = { | |
141 | 141 | let isPoolDefine = isDefined(getInteger(this, pools)) | |
142 | 142 | if (if (isPoolDefine) | |
143 | 143 | then (pools != "") | |
144 | 144 | else false) | |
145 | 145 | then { | |
146 | 146 | let poolsData = split(pools, "_") | |
147 | 147 | let voting = poolsData[2] | |
148 | 148 | let heightOfVoting = valueOrElse(getInteger(this, (voting + keyHeightOfPool)), 0) | |
149 | 149 | let statusOfVoting = valueOrElse(getBoolean(this, (voting + keyStatusOfVoting)), true) | |
150 | 150 | if ((heightOfVoting > height)) | |
151 | 151 | then if (statusOfVoting) | |
152 | 152 | then "" | |
153 | 153 | else pools | |
154 | 154 | else pools | |
155 | 155 | } | |
156 | 156 | else pools | |
157 | 157 | } | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func isLastFiveActivePoolExists (assetA,assetB) = if (if (if (if (isActivePoolExists(firstActiveVote, assetA, assetB)) | |
161 | 161 | then true | |
162 | 162 | else isActivePoolExists(secondActiveVote, assetA, assetB)) | |
163 | 163 | then true | |
164 | 164 | else isActivePoolExists(thirdActiveVote, assetA, assetB)) | |
165 | 165 | then true | |
166 | 166 | else isActivePoolExists(fourthActiveVote, assetA, assetB)) | |
167 | 167 | then true | |
168 | 168 | else isActivePoolExists(fifthActiveVote, assetA, assetB) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func getActivePool (voting) = { | |
172 | 172 | let heightOfVoting = valueOrElse(getInteger(this, (toString(voting) + keyHeightOfPool)), 0) | |
173 | 173 | let statusOfVoting = valueOrElse(getBoolean(this, (toString(voting) + keyStatusOfVoting)), true) | |
174 | 174 | let currentHeight = height | |
175 | 175 | if ((0 > voting)) | |
176 | 176 | then 0 | |
177 | 177 | else if (!(statusOfVoting)) | |
178 | 178 | then 0 | |
179 | 179 | else if ((heightOfVoting > currentHeight)) | |
180 | 180 | then 1 | |
181 | 181 | else 0 | |
182 | 182 | } | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func getActiveVotingPoolAmount () = ((((getActivePool(valueOrElse(getInteger(this, firstActiveVote), -1)) + getActivePool(valueOrElse(getInteger(this, secondActiveVote), -1))) + getActivePool(valueOrElse(getInteger(this, thirdActiveVote), -1))) + getActivePool(valueOrElse(getInteger(this, fourthActiveVote), -1))) + getActivePool(valueOrElse(getInteger(this, fifthActiveVote), -1))) | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func getUnactiveVotingPool () = if ((isUnactivePoolExists(firstActiveVote) != "")) | |
189 | 189 | then firstActiveVote | |
190 | 190 | else if ((isUnactivePoolExists(secondActiveVote) != "")) | |
191 | 191 | then secondActiveVote | |
192 | 192 | else if ((isUnactivePoolExists(thirdActiveVote) != "")) | |
193 | 193 | then thirdActiveVote | |
194 | 194 | else if ((isUnactivePoolExists(fourthActiveVote) != "")) | |
195 | 195 | then fourthActiveVote | |
196 | 196 | else if ((isUnactivePoolExists(fifthActiveVote) != "")) | |
197 | 197 | then fifthActiveVote | |
198 | 198 | else "" | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func getAssetInfoFromString (assetStr) = if ((assetStr == "WAVES")) | |
202 | 202 | then unit | |
203 | 203 | else fromBase58String(assetStr) | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | func isCallerInGovernance (user) = if ((valueOrElse(getInteger(govAddr, (toString(user) + kUserTotalSWOP)), 0) > 0)) | |
207 | 207 | then true | |
208 | 208 | else false | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)] | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | func throwInsufficientAvailableBalance (amount,assetName) = throw(((((("Insufficient DApp balance to pay " + toString(amount)) + " ") + assetName) + " due to staking.") + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | @Callable(i) | |
218 | 218 | func init () = if ((i.caller != this)) | |
219 | 219 | then throw("Only the DApp itself can call this function") | |
220 | 220 | else if (isDefined(getBoolean(this, keyActive))) | |
221 | 221 | then throw("DApp is already active") | |
222 | 222 | else { | |
223 | 223 | let initNumberOfVoting = 0 | |
224 | 224 | let initAmountOfVoting = 0 | |
225 | 225 | let initKeyActive = true | |
226 | 226 | let activeInit = "" | |
227 | 227 | [StringEntry(keyVersion, version), BooleanEntry(keyActive, initKeyActive), IntegerEntry(keyNumberOfVoting, initNumberOfVoting), IntegerEntry(keyAmountOfVoting, initAmountOfVoting), IntegerEntry(keyMaxAmountOfVoting, maxAmountOfVoting), IntegerEntry(keyMaxDayOfVoting, maxDayOfVoting), StringEntry(activeVoteFirst, activeInit), StringEntry(activeVoteSecond, activeInit), StringEntry(activeVoteThird, activeInit), StringEntry(activeVoteFourth, activeInit), StringEntry(activeVoteFifth, activeInit)] | |
228 | 228 | } | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | ||
232 | 232 | @Callable(i) | |
233 | 233 | func initVotingForNewPool (assetA,assetB) = { | |
234 | 234 | let $t074747549 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
235 | 235 | let pmtAmount = $t074747549._1 | |
236 | 236 | let pmtAssetId = $t074747549._2 | |
237 | 237 | let $t075547653 = $Tuple2(getAssetInfoFromString(assetA), getAssetInfoFromString(assetB)) | |
238 | 238 | let poolAssetIdA = $t075547653._1 | |
239 | 239 | let poolAssetIdB = $t075547653._2 | |
240 | 240 | let unactiveVote = getUnactiveVotingPool() | |
241 | 241 | let newNumberOfVoting = getActiveVotingPoolAmount() | |
242 | 242 | let isPoolExists = isLastFiveActivePoolExists(assetA, assetB) | |
243 | 243 | let $t078277905 = getAssetInfo(poolAssetIdA) | |
244 | 244 | let pmtStrAssetIdA = $t078277905._1 | |
245 | 245 | let pmtAssetNameA = $t078277905._2 | |
246 | 246 | let pmtDecimalsA = $t078277905._3 | |
247 | 247 | let $t079107988 = getAssetInfo(poolAssetIdB) | |
248 | 248 | let pmtStrAssetIdB = $t079107988._1 | |
249 | 249 | let pmtAssetNameB = $t079107988._2 | |
250 | 250 | let pmtDecimalsB = $t079107988._3 | |
251 | 251 | if (!(isActive)) | |
252 | 252 | then throw("DApp is inactive at this moment") | |
253 | 253 | else if ((poolAssetIdA == poolAssetIdB)) | |
254 | 254 | then throw("Assets must be different") | |
255 | 255 | else if (isPoolExists) | |
256 | 256 | then throw("This pool already exists") | |
257 | 257 | else if (if (((newNumberOfVoting + 1) > maxAmountOfVoting)) | |
258 | 258 | then true | |
259 | 259 | else (unactiveVote == "")) | |
260 | - | then throw(("Too many votes. Maximum quantity | |
260 | + | then throw(("Too many votes. Maximum quantity -" + toString(maxAmountOfVoting))) | |
261 | 261 | else if ((size(i.payments) != 1)) | |
262 | 262 | then throw("One attached assets expected") | |
263 | 263 | else if ((pmtAssetId != SWOP)) | |
264 | 264 | then throw("You must use a SWOP token") | |
265 | 265 | else if (if ((assetA == "")) | |
266 | 266 | then true | |
267 | 267 | else (assetB == "")) | |
268 | 268 | then throw("Assets can't be empty") | |
269 | 269 | else if ((pmtAmount != comissionForInitalizationOfVoting)) | |
270 | 270 | then throw("You need to attach 10 SWOP tokens") | |
271 | 271 | else if (!(if (if ((poolAssetIdB == USDN)) | |
272 | 272 | then true | |
273 | 273 | else (poolAssetIdB == unit)) | |
274 | 274 | then true | |
275 | 275 | else (poolAssetIdB == SWOP))) | |
276 | 276 | then throw("One of the assets must be USDN, WAVES, SWOP") | |
277 | 277 | else [IntegerEntry((((((assetA + "_") + assetB) + "_") + toString(amountOfVoting)) + votingId), amountOfVoting), IntegerEntry((toString(amountOfVoting) + keyHeightOfPool), (height + fiveDays)), BooleanEntry((toString(amountOfVoting) + keyStatusOfVoting), true), IntegerEntry(keyAmountOfVoting, (amountOfVoting + 1)), IntegerEntry(keyNumberOfVoting, (newNumberOfVoting + 1)), StringEntry((assetA + kName), pmtAssetNameA), StringEntry((assetB + kName), pmtAssetNameB), StringEntry(unactiveVote, (((((assetA + "_") + assetB) + "_") + toString(amountOfVoting)) + votingId)), ScriptTransfer(walletAddress, pmtAmount, pmtAssetId)] | |
278 | 278 | } | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | ||
282 | 282 | @Callable(i) | |
283 | 283 | func voteForPool (voting,yesOrNo,voteAmt) = { | |
284 | 284 | let currentHeight = height | |
285 | 285 | let poolInitHeight = valueOrErrorMessage(getIntegerValue(this, (toString(voting) + keyHeightOfPool)), "Empty pool height") | |
286 | 286 | let statusOfVoting = valueOrElse(getBoolean(this, (toString(voting) + keyStatusOfVoting)), true) | |
287 | 287 | let userSWOPinGovernance = valueOrElse(getInteger(govAddr, (toString(i.caller) + kUserTotalSWOP)), 0) | |
288 | 288 | let totalVoteUser = ((valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(voting)) + keyYes)), 0) + valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(voting)) + keyNo)), 0)) + voteAmt) | |
289 | 289 | if (!(isCallerInGovernance(i.caller))) | |
290 | 290 | then throw("This address has 0 SWOP in Governance dApp") | |
291 | 291 | else if (!(statusOfVoting)) | |
292 | 292 | then throw("This voting was canceled") | |
293 | 293 | else if ((currentHeight > poolInitHeight)) | |
294 | 294 | then throw("This voting was expired") | |
295 | 295 | else if ((0 > voteAmt)) | |
296 | 296 | then throw("The number of votes must be positive") | |
297 | 297 | else if ((totalVoteUser > userSWOPinGovernance)) | |
298 | 298 | then throw((((toString(this) + " has ") + toString(userSWOPinGovernance)) + " SWOP in governance.")) | |
299 | 299 | else if (yesOrNo) | |
300 | 300 | then { | |
301 | 301 | let oldVoteUser = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(voting)) + keyYes)), 0) | |
302 | 302 | let newVote = ((valueOrElse(getInteger(this, (toString(voting) + keyYes)), 0) - oldVoteUser) + voteAmt) | |
303 | 303 | [IntegerEntry((toString(voting) + keyYes), newVote), IntegerEntry((((toString(i.caller) + "_") + toString(voting)) + keyYes), voteAmt)] | |
304 | 304 | } | |
305 | 305 | else { | |
306 | 306 | let oldVoteUser = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(voting)) + keyNo)), 0) | |
307 | 307 | let newVote = ((valueOrElse(getInteger(this, (toString(voting) + keyNo)), 0) - oldVoteUser) + voteAmt) | |
308 | 308 | [IntegerEntry((toString(voting) + keyNo), newVote), IntegerEntry((((toString(i.caller) + "_") + toString(voting)) + keyNo), voteAmt)] | |
309 | 309 | } | |
310 | 310 | } | |
311 | 311 | ||
312 | 312 | ||
313 | 313 | ||
314 | 314 | @Callable(i) | |
315 | 315 | func cancellationVoting (voting,cause) = { | |
316 | 316 | let statusOfVoting = valueOrElse(getBoolean(this, (toString(voting) + keyStatusOfVoting)), true) | |
317 | 317 | if (!(isActive)) | |
318 | 318 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
319 | 319 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
320 | 320 | then throw("Only admin can call this function") | |
321 | 321 | else if (!(statusOfVoting)) | |
322 | 322 | then throw((("Voting " + toString(voting)) + " has already been stopped")) | |
323 | 323 | else [IntegerEntry(keyNumberOfVoting, (numberOfVoting - 1)), BooleanEntry((toString(voting) + keyStatusOfVoting), false), StringEntry((toString(voting) + keyCancelCause), cause)] | |
324 | 324 | } | |
325 | 325 | ||
326 | 326 | ||
327 | 327 | ||
328 | 328 | @Callable(i) | |
329 | 329 | func shutdown () = if (!(isActive)) | |
330 | 330 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
331 | 331 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
332 | 332 | then throw("Only admin can call this function") | |
333 | 333 | else suspend("Paused by admin") | |
334 | 334 | ||
335 | 335 | ||
336 | 336 | ||
337 | 337 | @Callable(i) | |
338 | 338 | func activate () = if (isActive) | |
339 | 339 | then throw("DApp is already active") | |
340 | 340 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
341 | 341 | then throw("Only admin can call this function") | |
342 | 342 | else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)] | |
343 | 343 | ||
344 | 344 | ||
345 | 345 | @Verifier(tx) | |
346 | 346 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
347 | 347 |
github/deemru/w8io/026f985 58.85 ms ◑