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