tx · GSerBPoKUjbUkKaqizNQp4ySiRYVh5gRgBTEHw7ZaBgu

3Mzgi6deFV8CyF2nqbWSBkqba5JaD42EXyb:  -0.01400000 Waves

2021.11.15 14:27 [1792087] smart account 3Mzgi6deFV8CyF2nqbWSBkqba5JaD42EXyb > SELF 0.00000000 Waves

{ "type": 13, "id": "GSerBPoKUjbUkKaqizNQp4ySiRYVh5gRgBTEHw7ZaBgu", "fee": 1400000, "feeAssetId": null, "timestamp": 1636975612169, "version": 2, "chainId": 84, "sender": "3Mzgi6deFV8CyF2nqbWSBkqba5JaD42EXyb", "senderPublicKey": "61fhePmC5L8iWserAMXoPAZbv24cAo6eyvnyYpoLpZJy", "proofs": [ "3eznk4VSePW8NF9HMeyea2wd616G4ia7CQTvVcF6Meaqwkz8buq3scPkgYTMC1TDk6Uag9Ppqy1RPV1EALNu4xpH", "NteztUbzAyhpG2cWYkZPfAVVt1Hvoc6ipM5xtxDqRrw8fYNmdioCAu5FA5SQKUeNNPS8R3PhoyHd5pJ9K43rEqn" ], "script": "base64:AAIEAAAAAAAAABsIAhIAEgQKAggIEgUKAwEEARIECgIBCBIAEgAAAAA6AAAAAAd2ZXJzaW9uAgAAAAUxLjAuMAAAAAAKa2V5VmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAAEWtleU51bWJlck9mVm90aW5nAgAAABR2b3RpbmdfYWN0aXZlX251bWJlcgAAAAAPa2V5SGVpZ2h0T2ZQb29sAgAAAA5fZmluaXNoX2hlaWdodAAAAAAFa2V5Tm8CAAAAD190b3RhbF92b3Rlc19ubwAAAAAGa2V5WWVzAgAAABBfdG90YWxfdm90ZXNfeWVzAAAAAAlrZXlOb1VzZXICAAAACF92b3RlX25vAAAAAAprZXlZZXNVc2VyAgAAAAlfdm90ZV95ZXMAAAAAEWtleVN0YXR1c09mVm90aW5nAgAAAAdfc3RhdHVzAAAAABFrZXlBbW91bnRPZlZvdGluZwIAAAAOdm90a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AAAAAAABAAAABJhZG1pblB1YktleTNTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgUAAAAMYWRtaW5QdWJLZXkzAAAAAAAAAAABAAAAAAAAAAAACQAAZwAAAAIJAABkAAAAAgkAAGQAAAACBQAAABJhZG1pblB1YktleTFTaWduZWQFAAAAEmFkbWluUHViS2V5MlNpZ25lZAUAAAASYWRtaW5QdWJLZXkzU2lnbmVkAAAAAAAAAAACNlaXCw==", "height": 1792087, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6A12VU362axm4rgdfw3vdR68TBm6X4ZH6hQ9b9VAHBYA Next: A6KURuKZpPuupzszeYYra6ZKTFYu8p6eHpZVm993pNdh Diff:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
1+{-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let version = "1.0.0"
4949
5050 let activeVoteThird = "voting_active_cell_3"
5151
52-let keyAdminPubKey1 = "admin_pub_1"
52+let adminPubKey1 = base58'GFmKZ2naZFRoCvNbwKAQVGmLb1uBeWGDgFabdGBuZiuy'
5353
54-let keyAdminPubKey2 = "admin_pub_2"
54+let adminPubKey2 = base58'GmJXRyhRA79g8yUGgKBAVdnFfQFDMjQG98b1MmLDh5kk'
5555
56-let keyAdminPubKey3 = "admin_pub_3"
57-
58-let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
59-
60-func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) {
61- case string: String =>
62- fromBase58String(string)
63- case nothing =>
64- throw("Admin public key is empty")
65-}
66-
67-
68-let adminPubKey1 = getAdminPub(keyAdminPubKey1)
69-
70-let adminPubKey2 = getAdminPub(keyAdminPubKey2)
71-
72-let adminPubKey3 = getAdminPub(keyAdminPubKey3)
56+let adminPubKey3 = base58'CFhbV6h41hVjbGHudGtS3fYUv7QAKRxFQzKNtx4B5PqP'
7357
7458 let adminPubKeyStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
7559
8064 let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
8165
8266 let SWOP = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ'
67+
68+let EAST = base58'BGFpLHKYAnTLq28F4i8Lpe8UTn5oB85cwsa9nWdhJBZ7'
8369
8470 let isActive = getBooleanValue(this, keyActive)
8571
10793
10894 let maxDayOfVoting = 7
10995
110-let votingPeriodLength = 5
96+let votingPeriodLength = (1443 * maxDayOfVoting)
11197
11298 func getAssetInfo (assetId) = match assetId {
11399 case id: ByteVector =>
236222
237223 @Callable(i)
238224 func initVotingForNewPool (assetA,assetB) = {
239- let $t071907265 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
240- let pmtAmount = $t071907265._1
241- let pmtAssetId = $t071907265._2
242- let $t072707369 = $Tuple2(getAssetInfoFromString(assetA), getAssetInfoFromString(assetB))
243- let poolAssetIdA = $t072707369._1
244- let poolAssetIdB = $t072707369._2
225+ let $t069377012 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
226+ let pmtAmount = $t069377012._1
227+ let pmtAssetId = $t069377012._2
228+ let $t070177116 = $Tuple2(getAssetInfoFromString(assetA), getAssetInfoFromString(assetB))
229+ let poolAssetIdA = $t070177116._1
230+ let poolAssetIdB = $t070177116._2
245231 let unactiveVote = getUnactiveVotingPool()
246232 let newNumberOfVoting = getActiveVotingPoolAmount()
247233 let isPoolExists = isLastActivePoolExists(assetA, assetB)
248- let $t075397617 = getAssetInfo(poolAssetIdA)
249- let pmtStrAssetIdA = $t075397617._1
250- let pmtAssetNameA = $t075397617._2
251- let pmtDecimalsA = $t075397617._3
252- let $t076227700 = getAssetInfo(poolAssetIdB)
253- let pmtStrAssetIdB = $t076227700._1
254- let pmtAssetNameB = $t076227700._2
255- let pmtDecimalsB = $t076227700._3
234+ let $t072867364 = getAssetInfo(poolAssetIdA)
235+ let pmtStrAssetIdA = $t072867364._1
236+ let pmtAssetNameA = $t072867364._2
237+ let pmtDecimalsA = $t072867364._3
238+ let $t073697447 = getAssetInfo(poolAssetIdB)
239+ let pmtStrAssetIdB = $t073697447._1
240+ let pmtAssetNameB = $t073697447._2
241+ let pmtDecimalsB = $t073697447._3
256242 if (!(isActive))
257243 then throw("DApp is inactive at this moment")
258244 else if ((poolAssetIdA == poolAssetIdB))
273259 then throw("Assets can't be empty")
274260 else if ((pmtAmount != comissionForInitalizationOfVoting))
275261 then throw("You need to attach 10 SWOP tokens")
276- else if (!(if (if ((poolAssetIdB == USDN))
262+ else if (!(if (if (if ((poolAssetIdB == USDN))
277263 then true
278264 else (poolAssetIdB == unit))
279265 then true
280- else (poolAssetIdB == SWOP)))
266+ else (poolAssetIdB == SWOP))
267+ then true
268+ else (poolAssetIdB == EAST)))
281269 then throw("assetB must be USDN, WAVES or SWOP")
282270 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)]
283271 }
Full:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
1+{-# 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
52-let keyAdminPubKey1 = "admin_pub_1"
52+let adminPubKey1 = base58'GFmKZ2naZFRoCvNbwKAQVGmLb1uBeWGDgFabdGBuZiuy'
5353
54-let keyAdminPubKey2 = "admin_pub_2"
54+let adminPubKey2 = base58'GmJXRyhRA79g8yUGgKBAVdnFfQFDMjQG98b1MmLDh5kk'
5555
56-let keyAdminPubKey3 = "admin_pub_3"
57-
58-let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
59-
60-func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) {
61- case string: String =>
62- fromBase58String(string)
63- case nothing =>
64- throw("Admin public key is empty")
65-}
66-
67-
68-let adminPubKey1 = getAdminPub(keyAdminPubKey1)
69-
70-let adminPubKey2 = getAdminPub(keyAdminPubKey2)
71-
72-let adminPubKey3 = getAdminPub(keyAdminPubKey3)
56+let adminPubKey3 = base58'CFhbV6h41hVjbGHudGtS3fYUv7QAKRxFQzKNtx4B5PqP'
7357
7458 let adminPubKeyStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
7559
7660 let walletAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
7761
7862 let govAddr = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU')
7963
8064 let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
8165
8266 let SWOP = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ'
67+
68+let EAST = base58'BGFpLHKYAnTLq28F4i8Lpe8UTn5oB85cwsa9nWdhJBZ7'
8369
8470 let isActive = getBooleanValue(this, keyActive)
8571
8672 let numberOfVoting = getIntegerValue(this, keyNumberOfVoting)
8773
8874 let amountOfVoting = getIntegerValue(this, keyAmountOfVoting)
8975
9076 let firstActiveVote = valueOrElse(getString(this, activeVoteFirst), "")
9177
9278 let secondActiveVote = valueOrElse(getString(this, activeVoteSecond), "")
9379
9480 let thirdActiveVote = valueOrElse(getString(this, activeVoteThird), "")
9581
9682 let comissionForInitalizationOfVoting = 1000000000
9783
9884 let scaleValue3 = 1000
9985
10086 let scaleValue8 = 100000000
10187
10288 let slippageToleranceDelimiter = 1000
10389
10490 let scaleValue8Digits = 8
10591
10692 let maxAmountOfVoting = 3
10793
10894 let maxDayOfVoting = 7
10995
110-let votingPeriodLength = 5
96+let votingPeriodLength = (1443 * maxDayOfVoting)
11197
11298 func getAssetInfo (assetId) = match assetId {
11399 case id: ByteVector =>
114100 if (isDefined(assetInfo(id)))
115101 then {
116102 let stringId = toBase58String(id)
117103 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
118104 $Tuple3(stringId, info.name, info.decimals)
119105 }
120106 else throw("Asset is not defined")
121107 case waves: Unit =>
122108 $Tuple3("WAVES", "WAVES", 8)
123109 case _ =>
124110 throw("Match error")
125111 }
126112
127113
128114 func isActivePoolExists (pools,assetA,assetB) = {
129115 let poolsData = split(pools, "_")
130116 let isPoolDefine = isDefined(getInteger(this, pools))
131117 if (if (isPoolDefine)
132118 then (pools != "")
133119 else false)
134120 then {
135121 let voting = poolsData[2]
136122 let newPools = (((((assetA + "_") + assetB) + "_") + voting) + votingId)
137123 let isNewPoolDefine = isDefined(getInteger(this, newPools))
138124 let heightOfVoting = valueOrElse(getInteger(this, (voting + keyHeightOfPool)), 0)
139125 let statusOfVoting = valueOrElse(getBoolean(this, (voting + keyStatusOfVoting)), true)
140126 if (isNewPoolDefine)
141127 then if ((heightOfVoting > height))
142128 then if (statusOfVoting)
143129 then true
144130 else false
145131 else false
146132 else false
147133 }
148134 else false
149135 }
150136
151137
152138 func isUnactivePoolExists (poolsState) = {
153139 let pools = valueOrElse(getString(this, poolsState), "")
154140 let poolsData = split(pools, "_")
155141 let isPoolDefine = isDefined(getInteger(this, pools))
156142 if (if (isPoolDefine)
157143 then (pools != "")
158144 else false)
159145 then {
160146 let voting = poolsData[2]
161147 let heightOfVoting = valueOrElse(getInteger(this, (voting + keyHeightOfPool)), 0)
162148 let statusOfVoting = valueOrElse(getBoolean(this, (voting + keyStatusOfVoting)), true)
163149 if ((heightOfVoting > height))
164150 then if (statusOfVoting)
165151 then ""
166152 else poolsState
167153 else poolsState
168154 }
169155 else poolsState
170156 }
171157
172158
173159 func isLastActivePoolExists (assetA,assetB) = if (if (isActivePoolExists(firstActiveVote, assetA, assetB))
174160 then true
175161 else isActivePoolExists(secondActiveVote, assetA, assetB))
176162 then true
177163 else isActivePoolExists(thirdActiveVote, assetA, assetB)
178164
179165
180166 func getActivePool (voting) = {
181167 let heightOfVoting = valueOrElse(getInteger(this, (toString(voting) + keyHeightOfPool)), 0)
182168 let statusOfVoting = valueOrElse(getBoolean(this, (toString(voting) + keyStatusOfVoting)), true)
183169 let currentHeight = height
184170 if ((0 > voting))
185171 then 0
186172 else if (!(statusOfVoting))
187173 then 0
188174 else if ((heightOfVoting > currentHeight))
189175 then 1
190176 else 0
191177 }
192178
193179
194180 func getActiveVotingPoolAmount () = ((getActivePool(valueOrElse(getInteger(this, firstActiveVote), -1)) + getActivePool(valueOrElse(getInteger(this, secondActiveVote), -1))) + getActivePool(valueOrElse(getInteger(this, thirdActiveVote), -1)))
195181
196182
197183 func getUnactiveVotingPool () = if ((isUnactivePoolExists(activeVoteFirst) != ""))
198184 then activeVoteFirst
199185 else if ((isUnactivePoolExists(activeVoteSecond) != ""))
200186 then activeVoteSecond
201187 else if ((isUnactivePoolExists(activeVoteThird) != ""))
202188 then activeVoteThird
203189 else ""
204190
205191
206192 func getAssetInfoFromString (assetStr) = if ((assetStr == "WAVES"))
207193 then unit
208194 else fromBase58String(assetStr)
209195
210196
211197 func isCallerInGovernance (user) = if ((valueOrElse(getInteger(govAddr, (toString(user) + kUserTotalSWOP)), 0) > 0))
212198 then true
213199 else false
214200
215201
216202 func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)]
217203
218204
219205 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"))
220206
221207
222208 @Callable(i)
223209 func init () = if ((i.caller != this))
224210 then throw("Only the DApp itself can call this function")
225211 else if (isDefined(getBoolean(this, keyActive)))
226212 then throw("DApp is already active")
227213 else {
228214 let initNumberOfVoting = 0
229215 let initAmountOfVoting = 0
230216 let initKeyActive = true
231217 let activeInit = ""
232218 [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)]
233219 }
234220
235221
236222
237223 @Callable(i)
238224 func initVotingForNewPool (assetA,assetB) = {
239- let $t071907265 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
240- let pmtAmount = $t071907265._1
241- let pmtAssetId = $t071907265._2
242- let $t072707369 = $Tuple2(getAssetInfoFromString(assetA), getAssetInfoFromString(assetB))
243- let poolAssetIdA = $t072707369._1
244- let poolAssetIdB = $t072707369._2
225+ let $t069377012 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
226+ let pmtAmount = $t069377012._1
227+ let pmtAssetId = $t069377012._2
228+ let $t070177116 = $Tuple2(getAssetInfoFromString(assetA), getAssetInfoFromString(assetB))
229+ let poolAssetIdA = $t070177116._1
230+ let poolAssetIdB = $t070177116._2
245231 let unactiveVote = getUnactiveVotingPool()
246232 let newNumberOfVoting = getActiveVotingPoolAmount()
247233 let isPoolExists = isLastActivePoolExists(assetA, assetB)
248- let $t075397617 = getAssetInfo(poolAssetIdA)
249- let pmtStrAssetIdA = $t075397617._1
250- let pmtAssetNameA = $t075397617._2
251- let pmtDecimalsA = $t075397617._3
252- let $t076227700 = getAssetInfo(poolAssetIdB)
253- let pmtStrAssetIdB = $t076227700._1
254- let pmtAssetNameB = $t076227700._2
255- let pmtDecimalsB = $t076227700._3
234+ let $t072867364 = getAssetInfo(poolAssetIdA)
235+ let pmtStrAssetIdA = $t072867364._1
236+ let pmtAssetNameA = $t072867364._2
237+ let pmtDecimalsA = $t072867364._3
238+ let $t073697447 = getAssetInfo(poolAssetIdB)
239+ let pmtStrAssetIdB = $t073697447._1
240+ let pmtAssetNameB = $t073697447._2
241+ let pmtDecimalsB = $t073697447._3
256242 if (!(isActive))
257243 then throw("DApp is inactive at this moment")
258244 else if ((poolAssetIdA == poolAssetIdB))
259245 then throw("Assets must be different")
260246 else if (isPoolExists)
261247 then throw("This pool already exists")
262248 else if (if (((newNumberOfVoting + 1) > maxAmountOfVoting))
263249 then true
264250 else (unactiveVote == ""))
265251 then throw(("Too many votings. Maximum quantity: " + toString(maxAmountOfVoting)))
266252 else if ((size(i.payments) != 1))
267253 then throw("One attached asset expected")
268254 else if ((pmtAssetId != SWOP))
269255 then throw("You must use a SWOP token")
270256 else if (if ((assetA == ""))
271257 then true
272258 else (assetB == ""))
273259 then throw("Assets can't be empty")
274260 else if ((pmtAmount != comissionForInitalizationOfVoting))
275261 then throw("You need to attach 10 SWOP tokens")
276- else if (!(if (if ((poolAssetIdB == USDN))
262+ else if (!(if (if (if ((poolAssetIdB == USDN))
277263 then true
278264 else (poolAssetIdB == unit))
279265 then true
280- else (poolAssetIdB == SWOP)))
266+ else (poolAssetIdB == SWOP))
267+ then true
268+ else (poolAssetIdB == EAST)))
281269 then throw("assetB must be USDN, WAVES or SWOP")
282270 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)]
283271 }
284272
285273
286274
287275 @Callable(i)
288276 func voteForPool (voting,yesOrNo,voteAmt) = {
289277 let currentHeight = height
290278 let poolInitHeight = valueOrErrorMessage(getIntegerValue(this, (toString(voting) + keyHeightOfPool)), "Empty pool height")
291279 let statusOfVoting = valueOrElse(getBoolean(this, (toString(voting) + keyStatusOfVoting)), true)
292280 let userSWOPinGovernance = valueOrElse(getInteger(govAddr, (toString(i.caller) + kUserTotalSWOP)), 0)
293281 let totalVoteUser = if (yesOrNo)
294282 then (valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(voting)) + keyNoUser)), 0) + voteAmt)
295283 else (valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(voting)) + keyYesUser)), 0) + voteAmt)
296284 if (!(isCallerInGovernance(i.caller)))
297285 then throw("This address has 0 SWOP in Governance dApp")
298286 else if (!(statusOfVoting))
299287 then throw("This voting was canceled")
300288 else if ((currentHeight > poolInitHeight))
301289 then throw("This voting was expired")
302290 else if ((0 > voteAmt))
303291 then throw("The number of votes must be positive")
304292 else if ((totalVoteUser > userSWOPinGovernance))
305293 then throw((((toString(this) + " has ") + toString(userSWOPinGovernance)) + " SWOP in governance."))
306294 else if (yesOrNo)
307295 then {
308296 let oldVoteUser = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(voting)) + keyYesUser)), 0)
309297 let newVote = ((valueOrElse(getInteger(this, (toString(voting) + keyYes)), 0) - oldVoteUser) + voteAmt)
310298 [IntegerEntry((toString(voting) + keyYes), newVote), IntegerEntry((((toString(i.caller) + "_") + toString(voting)) + keyYesUser), voteAmt)]
311299 }
312300 else {
313301 let oldVoteUser = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(voting)) + keyNoUser)), 0)
314302 let newVote = ((valueOrElse(getInteger(this, (toString(voting) + keyNo)), 0) - oldVoteUser) + voteAmt)
315303 [IntegerEntry((toString(voting) + keyNo), newVote), IntegerEntry((((toString(i.caller) + "_") + toString(voting)) + keyNoUser), voteAmt)]
316304 }
317305 }
318306
319307
320308
321309 @Callable(i)
322310 func cancelVoting (voting,cause) = {
323311 let statusOfVoting = valueOrElse(getBoolean(this, (toString(voting) + keyStatusOfVoting)), true)
324312 if (!(isActive))
325313 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified")))
326314 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)))
327315 then throw("Only admin can call this function")
328316 else if (!(statusOfVoting))
329317 then throw((("Voting " + toString(voting)) + " has already been stopped"))
330318 else [IntegerEntry(keyNumberOfVoting, (numberOfVoting - 1)), BooleanEntry((toString(voting) + keyStatusOfVoting), false), StringEntry((toString(voting) + keyCancelCause), cause)]
331319 }
332320
333321
334322
335323 @Callable(i)
336324 func shutdown () = if (!(isActive))
337325 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified")))
338326 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
339327 then throw("Only admin can call this function")
340328 else suspend("Paused by admin")
341329
342330
343331
344332 @Callable(i)
345333 func activate () = if (isActive)
346334 then throw("DApp is already active")
347335 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
348336 then throw("Only admin can call this function")
349337 else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)]
350338
351339
352340 @Verifier(tx)
353341 func verify () = {
354342 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
355343 then 1
356344 else 0
357345 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
358346 then 1
359347 else 0
360348 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
361349 then 1
362350 else 0
363351 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
364352 }
365353

github/deemru/w8io/169f3d6 
76.77 ms