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:AAIEAAAAAAAAABsIAhIAEgQKAggIEgUKAwEEARIECgIBCBIAEgAAAAA7AAAAAAd2ZXJzaW9uAgAAAAUxLjAuMAAAAAAKa2V5VmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAAEWtleU51bWJlck9mVm90aW5nAgAAAA1udW1iZXJfdm90aW5nAAAAAA9rZXlIZWlnaHRPZlBvb2wCAAAAB19oZWlnaHQAAAAABWtleU5vAgAAAANfbm8AAAAABmtleVllcwIAAAAEX3llcwAAAAARa2V5U3RhdHVzT2ZWb3RpbmcCAAAAB19zdGF0dXMAAAAAEWtleUFtb3VudE9mVm90aW5nAgAAAA1hbW91bnRfdm90aW5nAAAAABRrZXlNYXhBbW91bnRPZlZvdGluZwIAAAARbWF4X2Ftb3VudF92b3RpbmcAAAAAEWtleU1heERheU9mVm90aW5nAgAAAA5tYXhfZGF5X3ZvdGluZwAAAAANa2V5Q29tbWlzc2lvbgIAAAAKY29tbWlzc2lvbgAAAAAba2V5Q29tbWlzc2lvblNjYWxlRGVsaW1pdGVyA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ETAAAAAIFAAAADGFkbWluUHViS2V5MQkABEwAAAACBQAAAAxhZG1pblB1YktleTIJAARMAAAAAgUAAAAMYWRtaW5QdWJLZXkzCQAETAAAAAIFAAAAFGFkbWluUHViS2V5U3RhcnRTdG9wBQAAAANuaWwIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQkAAAIAAAABAgAAACFPbmx5IGFkbWluIGNhbiBjYWxsIHRoaXMgZnVuY3Rpb24JAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIFAAAACWtleUFjdGl2ZQYJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAIa2V5Q2F1c2UFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5pMdNWQ==", "height": 1522377, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HKnrX5DE1iPcn7idEPm7dE1NPKUWvhaNtqEL1T75qzBN Next: Dox8HpadeCRzmZhVpFTTiXe35b4AVJKVmPA6jTWNVF54 Diff:
OldNewDifferences
257257 else if (if (((newNumberOfVoting + 1) > maxAmountOfVoting))
258258 then true
259259 else (unactiveVote == ""))
260- then throw(("Too many votes. Maximum quantity: " + toString(maxAmountOfVoting)))
260+ then throw(("Too many votes. Maximum quantity -" + toString(maxAmountOfVoting)))
261261 else if ((size(i.payments) != 1))
262262 then throw("One attached assets expected")
263263 else if ((pmtAssetId != SWOP))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let version = "1.0.0"
55
66 let keyVersion = "version"
77
88 let keyActive = "active"
99
1010 let keyNumberOfVoting = "number_voting"
1111
1212 let keyHeightOfPool = "_height"
1313
1414 let keyNo = "_no"
1515
1616 let keyYes = "_yes"
1717
1818 let keyStatusOfVoting = "_status"
1919
2020 let keyAmountOfVoting = "amount_voting"
2121
2222 let keyMaxAmountOfVoting = "max_amount_voting"
2323
2424 let keyMaxDayOfVoting = "max_day_voting"
2525
2626 let keyCommission = "commission"
2727
2828 let keyCommissionScaleDelimiter = "commission_scale_delimiter"
2929
3030 let keyCause = "shutdown_cause"
3131
3232 let keyCancelCause = "_cancel_cause"
3333
3434 let kUserTotalSWOP = "_SWOP_amount"
3535
3636 let kName = "_name"
3737
3838 let votingId = "_votingId"
3939
4040 let periodOfVoting = "period_voting"
4141
4242 let activeVoteFirst = "active_vote_first"
4343
4444 let activeVoteSecond = "active_vote_second"
4545
4646 let activeVoteThird = "active_vote_third"
4747
4848 let activeVoteFourth = "active_vote_fourth"
4949
5050 let activeVoteFifth = "active_vote_fifth"
5151
5252 let adminPubKey1 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
5353
5454 let adminPubKey2 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
5555
5656 let adminPubKey3 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
5757
5858 let adminPubKeyStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
5959
6060 let walletAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
6161
6262 let govAddr = Address(base58'3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS')
6363
6464 let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
6565
6666 let SWOP = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ'
6767
6868 let isActive = getBooleanValue(this, keyActive)
6969
7070 let numberOfVoting = getIntegerValue(this, keyNumberOfVoting)
7171
7272 let amountOfVoting = getIntegerValue(this, keyAmountOfVoting)
7373
7474 let firstActiveVote = valueOrElse(getString(this, activeVoteFirst), "")
7575
7676 let secondActiveVote = valueOrElse(getString(this, activeVoteSecond), "")
7777
7878 let thirdActiveVote = valueOrElse(getString(this, activeVoteThird), "")
7979
8080 let fourthActiveVote = valueOrElse(getString(this, activeVoteFourth), "")
8181
8282 let fifthActiveVote = valueOrElse(getString(this, activeVoteFifth), "")
8383
8484 let comissionForInitalizationOfVoting = 1000000000
8585
8686 let scaleValue3 = 1000
8787
8888 let scaleValue8 = 100000000
8989
9090 let slippageToleranceDelimiter = 1000
9191
9292 let scaleValue8Digits = 8
9393
9494 let maxAmountOfVoting = 5
9595
9696 let maxDayOfVoting = 5
9797
9898 let fiveDays = (1440 * maxDayOfVoting)
9999
100100 func getAssetInfo (assetId) = match assetId {
101101 case id: ByteVector =>
102102 if (isDefined(assetInfo(id)))
103103 then {
104104 let stringId = toBase58String(id)
105105 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
106106 $Tuple3(stringId, info.name, info.decimals)
107107 }
108108 else throw("Asset is not define")
109109 case waves: Unit =>
110110 $Tuple3("WAVES", "WAVES", 8)
111111 case _ =>
112112 throw("Match error")
113113 }
114114
115115
116116 func isActivePoolExists (pools,assetA,assetB) = {
117117 let isPoolDefine = isDefined(getInteger(this, pools))
118118 if (if (isPoolDefine)
119119 then (pools != "")
120120 else false)
121121 then {
122122 let poolsData = split(pools, "_")
123123 let voting = poolsData[2]
124124 let newPools = (((((assetA + "_") + assetB) + "_") + voting) + votingId)
125125 let isNewPoolDefine = isDefined(getInteger(this, newPools))
126126 let heightOfVoting = valueOrElse(getInteger(this, (voting + keyHeightOfPool)), 0)
127127 let statusOfVoting = valueOrElse(getBoolean(this, (voting + keyStatusOfVoting)), true)
128128 if (isNewPoolDefine)
129129 then if ((heightOfVoting > height))
130130 then if (statusOfVoting)
131131 then true
132132 else false
133133 else false
134134 else false
135135 }
136136 else false
137137 }
138138
139139
140140 func isUnactivePoolExists (pools) = {
141141 let isPoolDefine = isDefined(getInteger(this, pools))
142142 if (if (isPoolDefine)
143143 then (pools != "")
144144 else false)
145145 then {
146146 let poolsData = split(pools, "_")
147147 let voting = poolsData[2]
148148 let heightOfVoting = valueOrElse(getInteger(this, (voting + keyHeightOfPool)), 0)
149149 let statusOfVoting = valueOrElse(getBoolean(this, (voting + keyStatusOfVoting)), true)
150150 if ((heightOfVoting > height))
151151 then if (statusOfVoting)
152152 then ""
153153 else pools
154154 else pools
155155 }
156156 else pools
157157 }
158158
159159
160160 func isLastFiveActivePoolExists (assetA,assetB) = if (if (if (if (isActivePoolExists(firstActiveVote, assetA, assetB))
161161 then true
162162 else isActivePoolExists(secondActiveVote, assetA, assetB))
163163 then true
164164 else isActivePoolExists(thirdActiveVote, assetA, assetB))
165165 then true
166166 else isActivePoolExists(fourthActiveVote, assetA, assetB))
167167 then true
168168 else isActivePoolExists(fifthActiveVote, assetA, assetB)
169169
170170
171171 func getActivePool (voting) = {
172172 let heightOfVoting = valueOrElse(getInteger(this, (toString(voting) + keyHeightOfPool)), 0)
173173 let statusOfVoting = valueOrElse(getBoolean(this, (toString(voting) + keyStatusOfVoting)), true)
174174 let currentHeight = height
175175 if ((0 > voting))
176176 then 0
177177 else if (!(statusOfVoting))
178178 then 0
179179 else if ((heightOfVoting > currentHeight))
180180 then 1
181181 else 0
182182 }
183183
184184
185185 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)))
186186
187187
188188 func getUnactiveVotingPool () = if ((isUnactivePoolExists(firstActiveVote) != ""))
189189 then firstActiveVote
190190 else if ((isUnactivePoolExists(secondActiveVote) != ""))
191191 then secondActiveVote
192192 else if ((isUnactivePoolExists(thirdActiveVote) != ""))
193193 then thirdActiveVote
194194 else if ((isUnactivePoolExists(fourthActiveVote) != ""))
195195 then fourthActiveVote
196196 else if ((isUnactivePoolExists(fifthActiveVote) != ""))
197197 then fifthActiveVote
198198 else ""
199199
200200
201201 func getAssetInfoFromString (assetStr) = if ((assetStr == "WAVES"))
202202 then unit
203203 else fromBase58String(assetStr)
204204
205205
206206 func isCallerInGovernance (user) = if ((valueOrElse(getInteger(govAddr, (toString(user) + kUserTotalSWOP)), 0) > 0))
207207 then true
208208 else false
209209
210210
211211 func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)]
212212
213213
214214 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"))
215215
216216
217217 @Callable(i)
218218 func init () = if ((i.caller != this))
219219 then throw("Only the DApp itself can call this function")
220220 else if (isDefined(getBoolean(this, keyActive)))
221221 then throw("DApp is already active")
222222 else {
223223 let initNumberOfVoting = 0
224224 let initAmountOfVoting = 0
225225 let initKeyActive = true
226226 let activeInit = ""
227227 [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)]
228228 }
229229
230230
231231
232232 @Callable(i)
233233 func initVotingForNewPool (assetA,assetB) = {
234234 let $t074747549 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
235235 let pmtAmount = $t074747549._1
236236 let pmtAssetId = $t074747549._2
237237 let $t075547653 = $Tuple2(getAssetInfoFromString(assetA), getAssetInfoFromString(assetB))
238238 let poolAssetIdA = $t075547653._1
239239 let poolAssetIdB = $t075547653._2
240240 let unactiveVote = getUnactiveVotingPool()
241241 let newNumberOfVoting = getActiveVotingPoolAmount()
242242 let isPoolExists = isLastFiveActivePoolExists(assetA, assetB)
243243 let $t078277905 = getAssetInfo(poolAssetIdA)
244244 let pmtStrAssetIdA = $t078277905._1
245245 let pmtAssetNameA = $t078277905._2
246246 let pmtDecimalsA = $t078277905._3
247247 let $t079107988 = getAssetInfo(poolAssetIdB)
248248 let pmtStrAssetIdB = $t079107988._1
249249 let pmtAssetNameB = $t079107988._2
250250 let pmtDecimalsB = $t079107988._3
251251 if (!(isActive))
252252 then throw("DApp is inactive at this moment")
253253 else if ((poolAssetIdA == poolAssetIdB))
254254 then throw("Assets must be different")
255255 else if (isPoolExists)
256256 then throw("This pool already exists")
257257 else if (if (((newNumberOfVoting + 1) > maxAmountOfVoting))
258258 then true
259259 else (unactiveVote == ""))
260- then throw(("Too many votes. Maximum quantity: " + toString(maxAmountOfVoting)))
260+ then throw(("Too many votes. Maximum quantity -" + toString(maxAmountOfVoting)))
261261 else if ((size(i.payments) != 1))
262262 then throw("One attached assets expected")
263263 else if ((pmtAssetId != SWOP))
264264 then throw("You must use a SWOP token")
265265 else if (if ((assetA == ""))
266266 then true
267267 else (assetB == ""))
268268 then throw("Assets can't be empty")
269269 else if ((pmtAmount != comissionForInitalizationOfVoting))
270270 then throw("You need to attach 10 SWOP tokens")
271271 else if (!(if (if ((poolAssetIdB == USDN))
272272 then true
273273 else (poolAssetIdB == unit))
274274 then true
275275 else (poolAssetIdB == SWOP)))
276276 then throw("One of the assets must be USDN, WAVES, SWOP")
277277 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)]
278278 }
279279
280280
281281
282282 @Callable(i)
283283 func voteForPool (voting,yesOrNo,voteAmt) = {
284284 let currentHeight = height
285285 let poolInitHeight = valueOrErrorMessage(getIntegerValue(this, (toString(voting) + keyHeightOfPool)), "Empty pool height")
286286 let statusOfVoting = valueOrElse(getBoolean(this, (toString(voting) + keyStatusOfVoting)), true)
287287 let userSWOPinGovernance = valueOrElse(getInteger(govAddr, (toString(i.caller) + kUserTotalSWOP)), 0)
288288 let totalVoteUser = ((valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(voting)) + keyYes)), 0) + valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(voting)) + keyNo)), 0)) + voteAmt)
289289 if (!(isCallerInGovernance(i.caller)))
290290 then throw("This address has 0 SWOP in Governance dApp")
291291 else if (!(statusOfVoting))
292292 then throw("This voting was canceled")
293293 else if ((currentHeight > poolInitHeight))
294294 then throw("This voting was expired")
295295 else if ((0 > voteAmt))
296296 then throw("The number of votes must be positive")
297297 else if ((totalVoteUser > userSWOPinGovernance))
298298 then throw((((toString(this) + " has ") + toString(userSWOPinGovernance)) + " SWOP in governance."))
299299 else if (yesOrNo)
300300 then {
301301 let oldVoteUser = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(voting)) + keyYes)), 0)
302302 let newVote = ((valueOrElse(getInteger(this, (toString(voting) + keyYes)), 0) - oldVoteUser) + voteAmt)
303303 [IntegerEntry((toString(voting) + keyYes), newVote), IntegerEntry((((toString(i.caller) + "_") + toString(voting)) + keyYes), voteAmt)]
304304 }
305305 else {
306306 let oldVoteUser = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(voting)) + keyNo)), 0)
307307 let newVote = ((valueOrElse(getInteger(this, (toString(voting) + keyNo)), 0) - oldVoteUser) + voteAmt)
308308 [IntegerEntry((toString(voting) + keyNo), newVote), IntegerEntry((((toString(i.caller) + "_") + toString(voting)) + keyNo), voteAmt)]
309309 }
310310 }
311311
312312
313313
314314 @Callable(i)
315315 func cancellationVoting (voting,cause) = {
316316 let statusOfVoting = valueOrElse(getBoolean(this, (toString(voting) + keyStatusOfVoting)), true)
317317 if (!(isActive))
318318 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified")))
319319 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
320320 then throw("Only admin can call this function")
321321 else if (!(statusOfVoting))
322322 then throw((("Voting " + toString(voting)) + " has already been stopped"))
323323 else [IntegerEntry(keyNumberOfVoting, (numberOfVoting - 1)), BooleanEntry((toString(voting) + keyStatusOfVoting), false), StringEntry((toString(voting) + keyCancelCause), cause)]
324324 }
325325
326326
327327
328328 @Callable(i)
329329 func shutdown () = if (!(isActive))
330330 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified")))
331331 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
332332 then throw("Only admin can call this function")
333333 else suspend("Paused by admin")
334334
335335
336336
337337 @Callable(i)
338338 func activate () = if (isActive)
339339 then throw("DApp is already active")
340340 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
341341 then throw("Only admin can call this function")
342342 else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)]
343343
344344
345345 @Verifier(tx)
346346 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
347347

github/deemru/w8io/026f985 
58.85 ms