tx · J34VZAA2VhYrzkkd85A4QQsnY6k6B7zbbUAZyj18dAax

3Mzgi6deFV8CyF2nqbWSBkqba5JaD42EXyb:  -0.01400000 Waves

2021.11.15 14:12 [1792071] smart account 3Mzgi6deFV8CyF2nqbWSBkqba5JaD42EXyb > SELF 0.00000000 Waves

{ "type": 13, "id": "J34VZAA2VhYrzkkd85A4QQsnY6k6B7zbbUAZyj18dAax", "fee": 1400000, "feeAssetId": null, "timestamp": 1636974762694, "version": 2, "chainId": 84, "sender": "3Mzgi6deFV8CyF2nqbWSBkqba5JaD42EXyb", "senderPublicKey": "61fhePmC5L8iWserAMXoPAZbv24cAo6eyvnyYpoLpZJy", "proofs": [ "2WkCr8GaGu9wED16AtYjyUuHeCcrGAvd3UZg6vBfWNmAt8wNaBd4HhDvkYTkXgekmXT6MqFQrtozcvxgSbKYBN4n" ], "script": "base64:AAIEAAAAAAAAABsIAhIAEgQKAggIEgUKAwEEARIECgIBCBIAEgAAAAA6AAAAAAd2ZXJzaW9uAgAAAAUxLjAuMAAAAAAKa2V5VmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAAEWtleU51bWJlck9mVm90aW5nAgAAABR2b3RpbmdfYWN0aXZlX251bWJlcgAAAAAPa2V5SGVpZ2h0T2ZQb29sAgAAAA5fZmluaXNoX2hlaWdodAAAAAAFa2V5Tm8CAAAAD190b3RhbF92b3Rlc19ubwAAAAAGa2V5WWVzAgAAABBfdG90YWxfdm90ZXNfeWVzAAAAAAlrZXlOb1VzZXICAAAACF92b3RlX25vAAAAAAprZXlZZXNVc2VyAgAAAAlfdm90ZV95ZXMAAAAAEWtleVN0YXR1c09mVm90aW5nAgAAAAdfc3RhdHVzAAAAABFrZXlBbW91bnRPZlZvdGluZwIAAAAOdm90aW5nX2lkX2xhc3QAAAAAFGtleU1heEFtb3VudE9mVm90aW5nAgAAABFtYXhfYW1vdW50X3ZvdGluZwAAAAARa2V5TWF4RGF5T2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AnR4AAAABnByb29mcwAAAAAAAAAAAgUAAAAMYWRtaW5QdWJLZXkzAAAAAAAAAAABAAAAAAAAAAAACQAAZwAAAAIJAABkAAAAAgkAAGQAAAACBQAAABJhZG1pblB1YktleTFTaWduZWQFAAAAEmFkbWluUHViS2V5MlNpZ25lZAUAAAASYWRtaW5QdWJLZXkzU2lnbmVkAAAAAAAAAAACNlaXCw==", "height": 1792071, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3tFSfG4t8GfuYP7RNKicdHAF9xBAMvjFp2kjmgdYWfs5 Next: 6A12VU362axm4rgdfw3vdR68TBm6X4ZH6hQ9b9VAHBYA Diff:
OldNewDifferences
4949
5050 let activeVoteThird = "voting_active_cell_3"
5151
52-let adminPubKey1 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
52+let adminPubKey1 = base58'GFmKZ2naZFRoCvNbwKAQVGmLb1uBeWGDgFabdGBuZiuy'
5353
54-let adminPubKey2 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
54+let adminPubKey2 = base58'GmJXRyhRA79g8yUGgKBAVdnFfQFDMjQG98b1MmLDh5kk'
5555
56-let adminPubKey3 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
56+let adminPubKey3 = base58'CFhbV6h41hVjbGHudGtS3fYUv7QAKRxFQzKNtx4B5PqP'
5757
5858 let adminPubKeyStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
5959
6464 let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
6565
6666 let SWOP = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ'
67+
68+let EAST = base58'BGFpLHKYAnTLq28F4i8Lpe8UTn5oB85cwsa9nWdhJBZ7'
6769
6870 let isActive = getBooleanValue(this, keyActive)
6971
9193
9294 let maxDayOfVoting = 7
9395
94-let votingPeriodLength = 5
96+let votingPeriodLength = (1443 * maxDayOfVoting)
9597
9698 func getAssetInfo (assetId) = match assetId {
9799 case id: ByteVector =>
220222
221223 @Callable(i)
222224 func initVotingForNewPool (assetA,assetB) = {
223- let $t069086983 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
224- let pmtAmount = $t069086983._1
225- let pmtAssetId = $t069086983._2
226- let $t069887087 = $Tuple2(getAssetInfoFromString(assetA), getAssetInfoFromString(assetB))
227- let poolAssetIdA = $t069887087._1
228- let poolAssetIdB = $t069887087._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
229231 let unactiveVote = getUnactiveVotingPool()
230232 let newNumberOfVoting = getActiveVotingPoolAmount()
231233 let isPoolExists = isLastActivePoolExists(assetA, assetB)
232- let $t072577335 = getAssetInfo(poolAssetIdA)
233- let pmtStrAssetIdA = $t072577335._1
234- let pmtAssetNameA = $t072577335._2
235- let pmtDecimalsA = $t072577335._3
236- let $t073407418 = getAssetInfo(poolAssetIdB)
237- let pmtStrAssetIdB = $t073407418._1
238- let pmtAssetNameB = $t073407418._2
239- let pmtDecimalsB = $t073407418._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
240242 if (!(isActive))
241243 then throw("DApp is inactive at this moment")
242244 else if ((poolAssetIdA == poolAssetIdB))
257259 then throw("Assets can't be empty")
258260 else if ((pmtAmount != comissionForInitalizationOfVoting))
259261 then throw("You need to attach 10 SWOP tokens")
260- else if (!(if (if ((poolAssetIdB == USDN))
262+ else if (!(if (if (if ((poolAssetIdB == USDN))
261263 then true
262264 else (poolAssetIdB == unit))
263265 then true
264- else (poolAssetIdB == SWOP)))
266+ else (poolAssetIdB == SWOP))
267+ then true
268+ else (poolAssetIdB == EAST)))
265269 then throw("assetB must be USDN, WAVES or SWOP")
266270 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)]
267271 }
307311 let statusOfVoting = valueOrElse(getBoolean(this, (toString(voting) + keyStatusOfVoting)), true)
308312 if (!(isActive))
309313 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified")))
310- else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
314+ else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)))
311315 then throw("Only admin can call this function")
312316 else if (!(statusOfVoting))
313317 then throw((("Voting " + toString(voting)) + " has already been stopped"))
334338
335339
336340 @Verifier(tx)
337-func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
341+func verify () = {
342+ let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
343+ then 1
344+ else 0
345+ let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
346+ then 1
347+ else 0
348+ let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
349+ then 1
350+ else 0
351+ (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
352+ }
338353
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
52-let adminPubKey1 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
52+let adminPubKey1 = base58'GFmKZ2naZFRoCvNbwKAQVGmLb1uBeWGDgFabdGBuZiuy'
5353
54-let adminPubKey2 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
54+let adminPubKey2 = base58'GmJXRyhRA79g8yUGgKBAVdnFfQFDMjQG98b1MmLDh5kk'
5555
56-let adminPubKey3 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
56+let adminPubKey3 = base58'CFhbV6h41hVjbGHudGtS3fYUv7QAKRxFQzKNtx4B5PqP'
5757
5858 let adminPubKeyStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
5959
6060 let walletAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
6161
6262 let govAddr = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU')
6363
6464 let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
6565
6666 let SWOP = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ'
67+
68+let EAST = base58'BGFpLHKYAnTLq28F4i8Lpe8UTn5oB85cwsa9nWdhJBZ7'
6769
6870 let isActive = getBooleanValue(this, keyActive)
6971
7072 let numberOfVoting = getIntegerValue(this, keyNumberOfVoting)
7173
7274 let amountOfVoting = getIntegerValue(this, keyAmountOfVoting)
7375
7476 let firstActiveVote = valueOrElse(getString(this, activeVoteFirst), "")
7577
7678 let secondActiveVote = valueOrElse(getString(this, activeVoteSecond), "")
7779
7880 let thirdActiveVote = valueOrElse(getString(this, activeVoteThird), "")
7981
8082 let comissionForInitalizationOfVoting = 1000000000
8183
8284 let scaleValue3 = 1000
8385
8486 let scaleValue8 = 100000000
8587
8688 let slippageToleranceDelimiter = 1000
8789
8890 let scaleValue8Digits = 8
8991
9092 let maxAmountOfVoting = 3
9193
9294 let maxDayOfVoting = 7
9395
94-let votingPeriodLength = 5
96+let votingPeriodLength = (1443 * maxDayOfVoting)
9597
9698 func getAssetInfo (assetId) = match assetId {
9799 case id: ByteVector =>
98100 if (isDefined(assetInfo(id)))
99101 then {
100102 let stringId = toBase58String(id)
101103 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
102104 $Tuple3(stringId, info.name, info.decimals)
103105 }
104106 else throw("Asset is not defined")
105107 case waves: Unit =>
106108 $Tuple3("WAVES", "WAVES", 8)
107109 case _ =>
108110 throw("Match error")
109111 }
110112
111113
112114 func isActivePoolExists (pools,assetA,assetB) = {
113115 let poolsData = split(pools, "_")
114116 let isPoolDefine = isDefined(getInteger(this, pools))
115117 if (if (isPoolDefine)
116118 then (pools != "")
117119 else false)
118120 then {
119121 let voting = poolsData[2]
120122 let newPools = (((((assetA + "_") + assetB) + "_") + voting) + votingId)
121123 let isNewPoolDefine = isDefined(getInteger(this, newPools))
122124 let heightOfVoting = valueOrElse(getInteger(this, (voting + keyHeightOfPool)), 0)
123125 let statusOfVoting = valueOrElse(getBoolean(this, (voting + keyStatusOfVoting)), true)
124126 if (isNewPoolDefine)
125127 then if ((heightOfVoting > height))
126128 then if (statusOfVoting)
127129 then true
128130 else false
129131 else false
130132 else false
131133 }
132134 else false
133135 }
134136
135137
136138 func isUnactivePoolExists (poolsState) = {
137139 let pools = valueOrElse(getString(this, poolsState), "")
138140 let poolsData = split(pools, "_")
139141 let isPoolDefine = isDefined(getInteger(this, pools))
140142 if (if (isPoolDefine)
141143 then (pools != "")
142144 else false)
143145 then {
144146 let voting = poolsData[2]
145147 let heightOfVoting = valueOrElse(getInteger(this, (voting + keyHeightOfPool)), 0)
146148 let statusOfVoting = valueOrElse(getBoolean(this, (voting + keyStatusOfVoting)), true)
147149 if ((heightOfVoting > height))
148150 then if (statusOfVoting)
149151 then ""
150152 else poolsState
151153 else poolsState
152154 }
153155 else poolsState
154156 }
155157
156158
157159 func isLastActivePoolExists (assetA,assetB) = if (if (isActivePoolExists(firstActiveVote, assetA, assetB))
158160 then true
159161 else isActivePoolExists(secondActiveVote, assetA, assetB))
160162 then true
161163 else isActivePoolExists(thirdActiveVote, assetA, assetB)
162164
163165
164166 func getActivePool (voting) = {
165167 let heightOfVoting = valueOrElse(getInteger(this, (toString(voting) + keyHeightOfPool)), 0)
166168 let statusOfVoting = valueOrElse(getBoolean(this, (toString(voting) + keyStatusOfVoting)), true)
167169 let currentHeight = height
168170 if ((0 > voting))
169171 then 0
170172 else if (!(statusOfVoting))
171173 then 0
172174 else if ((heightOfVoting > currentHeight))
173175 then 1
174176 else 0
175177 }
176178
177179
178180 func getActiveVotingPoolAmount () = ((getActivePool(valueOrElse(getInteger(this, firstActiveVote), -1)) + getActivePool(valueOrElse(getInteger(this, secondActiveVote), -1))) + getActivePool(valueOrElse(getInteger(this, thirdActiveVote), -1)))
179181
180182
181183 func getUnactiveVotingPool () = if ((isUnactivePoolExists(activeVoteFirst) != ""))
182184 then activeVoteFirst
183185 else if ((isUnactivePoolExists(activeVoteSecond) != ""))
184186 then activeVoteSecond
185187 else if ((isUnactivePoolExists(activeVoteThird) != ""))
186188 then activeVoteThird
187189 else ""
188190
189191
190192 func getAssetInfoFromString (assetStr) = if ((assetStr == "WAVES"))
191193 then unit
192194 else fromBase58String(assetStr)
193195
194196
195197 func isCallerInGovernance (user) = if ((valueOrElse(getInteger(govAddr, (toString(user) + kUserTotalSWOP)), 0) > 0))
196198 then true
197199 else false
198200
199201
200202 func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)]
201203
202204
203205 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"))
204206
205207
206208 @Callable(i)
207209 func init () = if ((i.caller != this))
208210 then throw("Only the DApp itself can call this function")
209211 else if (isDefined(getBoolean(this, keyActive)))
210212 then throw("DApp is already active")
211213 else {
212214 let initNumberOfVoting = 0
213215 let initAmountOfVoting = 0
214216 let initKeyActive = true
215217 let activeInit = ""
216218 [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)]
217219 }
218220
219221
220222
221223 @Callable(i)
222224 func initVotingForNewPool (assetA,assetB) = {
223- let $t069086983 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
224- let pmtAmount = $t069086983._1
225- let pmtAssetId = $t069086983._2
226- let $t069887087 = $Tuple2(getAssetInfoFromString(assetA), getAssetInfoFromString(assetB))
227- let poolAssetIdA = $t069887087._1
228- let poolAssetIdB = $t069887087._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
229231 let unactiveVote = getUnactiveVotingPool()
230232 let newNumberOfVoting = getActiveVotingPoolAmount()
231233 let isPoolExists = isLastActivePoolExists(assetA, assetB)
232- let $t072577335 = getAssetInfo(poolAssetIdA)
233- let pmtStrAssetIdA = $t072577335._1
234- let pmtAssetNameA = $t072577335._2
235- let pmtDecimalsA = $t072577335._3
236- let $t073407418 = getAssetInfo(poolAssetIdB)
237- let pmtStrAssetIdB = $t073407418._1
238- let pmtAssetNameB = $t073407418._2
239- let pmtDecimalsB = $t073407418._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
240242 if (!(isActive))
241243 then throw("DApp is inactive at this moment")
242244 else if ((poolAssetIdA == poolAssetIdB))
243245 then throw("Assets must be different")
244246 else if (isPoolExists)
245247 then throw("This pool already exists")
246248 else if (if (((newNumberOfVoting + 1) > maxAmountOfVoting))
247249 then true
248250 else (unactiveVote == ""))
249251 then throw(("Too many votings. Maximum quantity: " + toString(maxAmountOfVoting)))
250252 else if ((size(i.payments) != 1))
251253 then throw("One attached asset expected")
252254 else if ((pmtAssetId != SWOP))
253255 then throw("You must use a SWOP token")
254256 else if (if ((assetA == ""))
255257 then true
256258 else (assetB == ""))
257259 then throw("Assets can't be empty")
258260 else if ((pmtAmount != comissionForInitalizationOfVoting))
259261 then throw("You need to attach 10 SWOP tokens")
260- else if (!(if (if ((poolAssetIdB == USDN))
262+ else if (!(if (if (if ((poolAssetIdB == USDN))
261263 then true
262264 else (poolAssetIdB == unit))
263265 then true
264- else (poolAssetIdB == SWOP)))
266+ else (poolAssetIdB == SWOP))
267+ then true
268+ else (poolAssetIdB == EAST)))
265269 then throw("assetB must be USDN, WAVES or SWOP")
266270 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)]
267271 }
268272
269273
270274
271275 @Callable(i)
272276 func voteForPool (voting,yesOrNo,voteAmt) = {
273277 let currentHeight = height
274278 let poolInitHeight = valueOrErrorMessage(getIntegerValue(this, (toString(voting) + keyHeightOfPool)), "Empty pool height")
275279 let statusOfVoting = valueOrElse(getBoolean(this, (toString(voting) + keyStatusOfVoting)), true)
276280 let userSWOPinGovernance = valueOrElse(getInteger(govAddr, (toString(i.caller) + kUserTotalSWOP)), 0)
277281 let totalVoteUser = if (yesOrNo)
278282 then (valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(voting)) + keyNoUser)), 0) + voteAmt)
279283 else (valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(voting)) + keyYesUser)), 0) + voteAmt)
280284 if (!(isCallerInGovernance(i.caller)))
281285 then throw("This address has 0 SWOP in Governance dApp")
282286 else if (!(statusOfVoting))
283287 then throw("This voting was canceled")
284288 else if ((currentHeight > poolInitHeight))
285289 then throw("This voting was expired")
286290 else if ((0 > voteAmt))
287291 then throw("The number of votes must be positive")
288292 else if ((totalVoteUser > userSWOPinGovernance))
289293 then throw((((toString(this) + " has ") + toString(userSWOPinGovernance)) + " SWOP in governance."))
290294 else if (yesOrNo)
291295 then {
292296 let oldVoteUser = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(voting)) + keyYesUser)), 0)
293297 let newVote = ((valueOrElse(getInteger(this, (toString(voting) + keyYes)), 0) - oldVoteUser) + voteAmt)
294298 [IntegerEntry((toString(voting) + keyYes), newVote), IntegerEntry((((toString(i.caller) + "_") + toString(voting)) + keyYesUser), voteAmt)]
295299 }
296300 else {
297301 let oldVoteUser = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(voting)) + keyNoUser)), 0)
298302 let newVote = ((valueOrElse(getInteger(this, (toString(voting) + keyNo)), 0) - oldVoteUser) + voteAmt)
299303 [IntegerEntry((toString(voting) + keyNo), newVote), IntegerEntry((((toString(i.caller) + "_") + toString(voting)) + keyNoUser), voteAmt)]
300304 }
301305 }
302306
303307
304308
305309 @Callable(i)
306310 func cancelVoting (voting,cause) = {
307311 let statusOfVoting = valueOrElse(getBoolean(this, (toString(voting) + keyStatusOfVoting)), true)
308312 if (!(isActive))
309313 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified")))
310- else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
314+ else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)))
311315 then throw("Only admin can call this function")
312316 else if (!(statusOfVoting))
313317 then throw((("Voting " + toString(voting)) + " has already been stopped"))
314318 else [IntegerEntry(keyNumberOfVoting, (numberOfVoting - 1)), BooleanEntry((toString(voting) + keyStatusOfVoting), false), StringEntry((toString(voting) + keyCancelCause), cause)]
315319 }
316320
317321
318322
319323 @Callable(i)
320324 func shutdown () = if (!(isActive))
321325 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified")))
322326 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
323327 then throw("Only admin can call this function")
324328 else suspend("Paused by admin")
325329
326330
327331
328332 @Callable(i)
329333 func activate () = if (isActive)
330334 then throw("DApp is already active")
331335 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
332336 then throw("Only admin can call this function")
333337 else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)]
334338
335339
336340 @Verifier(tx)
337-func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
341+func verify () = {
342+ let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
343+ then 1
344+ else 0
345+ let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
346+ then 1
347+ else 0
348+ let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
349+ then 1
350+ else 0
351+ (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
352+ }
338353

github/deemru/w8io/169f3d6 
64.95 ms