tx · 6NN1XcK3HGPbPXT9ZtW6qdWXB47267RkWpgVDcJvyNmd

3MtsXxXqERvHEmkPiiuBESuixd9Y8qAU1PC:  -0.10000000 Waves

2022.10.12 16:35 [2269203] smart account 3MtsXxXqERvHEmkPiiuBESuixd9Y8qAU1PC > SELF 0.00000000 Waves

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

github/deemru/w8io/026f985 
74.64 ms