tx · 9JK3DqBbQGUoq7h5DJSH3m6Mbp89gG2TMBF3qpbpEzRA 3N8DijjUMpYq512vvE9GHnCTUBUd4AZwhH6: -0.01400000 Waves 2021.04.27 02:53 [1500118] smart account 3N8DijjUMpYq512vvE9GHnCTUBUd4AZwhH6 > SELF 0.00000000 Waves
{ "type": 13, "id": "9JK3DqBbQGUoq7h5DJSH3m6Mbp89gG2TMBF3qpbpEzRA", "fee": 1400000, "feeAssetId": null, "timestamp": 1619481268380, "version": 2, "chainId": 84, "sender": "3N8DijjUMpYq512vvE9GHnCTUBUd4AZwhH6", "senderPublicKey": "75SuvmjmHX6J7smVGHvWY6acr5mqyRQCYpFxeFQh8Cy3", "proofs": [ "4oMueY58CjSX8EyQ4f6bWAHx74HmQhtKSgmMcUqTomNXVU8WhczPkg2u7qfxL5XqDUrWzXCRZ1ERoC9WUUnZr2iP" ], "script": "base64:AAIEAAAAAAAAABsIAhIAEgQKAggIEgUKAwEEARIECgIBCBIAEgAAAAAnAAAAAAd2ZXJzaW9uAgAAAAUxLjAuMAAAAAAKa2V5VmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAAEWtleU51bWJlck9mVm90aW5nAgAAAA1udW1iZXJfdm90aW5nAAAAAA9rZXlIZWlnaHRPZlBvb2wCAAAAB19oZWlnaHQAAAAABWtleU5vAgAAAANfbm8AAAAABmtleVllcwIAAAAEX3llcwAAAAARa2V5U3RhdHVzT2ZWb3RpbmcCAAAAB19zdGF0dXMAAAAAEWtleUFtb3VudE9mVm90aW5nAgAAAA1hbW91bnRfdm90aW5nAAAAAA1rZXlDb21taXNzaW9uAgAAAApjb21taXNzaW9uAAAAABtrZXlDb21taXNzaW9uU2NhbGVEZWxpbWl0ZXICAAAAGmNvbW1pc3Npb25fc2NhbGVfZGVsaW1pdGVyAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAADmtleUNhbmNlbENhdXNlAgAAAA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AASEAAAABCQEAAAAPY29udGFpbnNFbGVtZW50AAAAAgkABEwAAAACBQAAAAxhZG1pblB1YktleTEJAARMAAAAAgUAAAAMYWRtaW5QdWJLZXkyCQAETAAAAAIFAAAADGFkbWluUHViS2V5MwkABEwAAAACBQAAABRhZG1pblB1YktleVN0YXJ0U3RvcAUAAAADbmlsCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkJAAACAAAAAQIAAAAhT25seSBhZG1pbiBjYW4gY2FsbCB0aGlzIGZ1bmN0aW9uCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACBQAAAAlrZXlBY3RpdmUGCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAACGtleUNhdXNlBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleS7mypE=", "height": 1500118, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 47eDZUkAiuNcLSwkTddofjDPmwtya4arDEvXTdARE7pX Next: CBYc7X66M4E7uFm8ENNfhXqP6tmFcDehbG8cvEzqxAnh Diff:
Old | New | Differences | |
---|---|---|---|
67 | 67 | ||
68 | 68 | let scaleValue8Digits = 8 | |
69 | 69 | ||
70 | - | let maxAmountOfVoting = | |
70 | + | let maxAmountOfVoting = 15 | |
71 | 71 | ||
72 | 72 | let fiveDays = 240 | |
73 | 73 | ||
103 | 103 | ||
104 | 104 | @Callable(i) | |
105 | 105 | func initVotingForNewPool (assetA,assetB) = { | |
106 | - | let $ | |
107 | - | let pmtAmount = $ | |
108 | - | let pmtAssetId = $ | |
109 | - | let $ | |
110 | - | let poolAssetIdA = $ | |
111 | - | let poolAssetIdB = $ | |
106 | + | let $t029242999 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
107 | + | let pmtAmount = $t029242999._1 | |
108 | + | let pmtAssetId = $t029242999._2 | |
109 | + | let $t030043110 = $Tuple2(getAssetInfoFromString(assetA), getAssetInfoFromString(assetB)) | |
110 | + | let poolAssetIdA = $t030043110._1 | |
111 | + | let poolAssetIdB = $t030043110._2 | |
112 | 112 | if (!(isActive)) | |
113 | 113 | then throw("DApp is inactive at this moment") | |
114 | 114 | else if ((poolAssetIdA == poolAssetIdB)) |
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 = "number_voting" | |
11 | 11 | ||
12 | 12 | let keyHeightOfPool = "_height" | |
13 | 13 | ||
14 | 14 | let keyNo = "_no" | |
15 | 15 | ||
16 | 16 | let keyYes = "_yes" | |
17 | 17 | ||
18 | 18 | let keyStatusOfVoting = "_status" | |
19 | 19 | ||
20 | 20 | let keyAmountOfVoting = "amount_voting" | |
21 | 21 | ||
22 | 22 | let keyCommission = "commission" | |
23 | 23 | ||
24 | 24 | let keyCommissionScaleDelimiter = "commission_scale_delimiter" | |
25 | 25 | ||
26 | 26 | let keyCause = "shutdown_cause" | |
27 | 27 | ||
28 | 28 | let keyCancelCause = "_cancel_cause" | |
29 | 29 | ||
30 | 30 | let kUserTotalSWOP = "_SWOP_amount" | |
31 | 31 | ||
32 | 32 | let kName = "_name" | |
33 | 33 | ||
34 | 34 | let votingId = "_votingId" | |
35 | 35 | ||
36 | 36 | let periodOfVoting = "period_voting" | |
37 | 37 | ||
38 | 38 | let adminPubKey1 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
39 | 39 | ||
40 | 40 | let adminPubKey2 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
41 | 41 | ||
42 | 42 | let adminPubKey3 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
43 | 43 | ||
44 | 44 | let adminPubKeyStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
45 | 45 | ||
46 | 46 | let walletAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
47 | 47 | ||
48 | 48 | let govAddr = Address(base58'3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS') | |
49 | 49 | ||
50 | 50 | let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
51 | 51 | ||
52 | 52 | let SWOP = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ' | |
53 | 53 | ||
54 | 54 | let isActive = getBooleanValue(this, keyActive) | |
55 | 55 | ||
56 | 56 | let numberOfVoting = getIntegerValue(this, keyNumberOfVoting) | |
57 | 57 | ||
58 | 58 | let amountOfVoting = getIntegerValue(this, keyAmountOfVoting) | |
59 | 59 | ||
60 | 60 | let comissionForInitalizationOfVoting = 1000000000 | |
61 | 61 | ||
62 | 62 | let scaleValue3 = 1000 | |
63 | 63 | ||
64 | 64 | let scaleValue8 = 100000000 | |
65 | 65 | ||
66 | 66 | let slippageToleranceDelimiter = 1000 | |
67 | 67 | ||
68 | 68 | let scaleValue8Digits = 8 | |
69 | 69 | ||
70 | - | let maxAmountOfVoting = | |
70 | + | let maxAmountOfVoting = 15 | |
71 | 71 | ||
72 | 72 | let fiveDays = 240 | |
73 | 73 | ||
74 | 74 | func getAssetInfoFromString (assetStr) = if ((assetStr == "WAVES")) | |
75 | 75 | then unit | |
76 | 76 | else fromBase58String(assetStr) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func isCallerInGovernance (user) = if ((valueOrElse(getInteger(govAddr, (toString(user) + kUserTotalSWOP)), 0) > 0)) | |
80 | 80 | then true | |
81 | 81 | else false | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)] | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | 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")) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | @Callable(i) | |
91 | 91 | func init () = if ((i.caller != this)) | |
92 | 92 | then throw("Only the DApp itself can call this function") | |
93 | 93 | else if (isDefined(getBoolean(this, keyActive))) | |
94 | 94 | then throw("DApp is already active") | |
95 | 95 | else { | |
96 | 96 | let initNumberOfVoting = 0 | |
97 | 97 | let initAmountOfVoting = 0 | |
98 | 98 | let initKeyActive = true | |
99 | 99 | [StringEntry(keyVersion, version), BooleanEntry(keyActive, initKeyActive), IntegerEntry(keyNumberOfVoting, initNumberOfVoting), IntegerEntry(keyAmountOfVoting, initAmountOfVoting)] | |
100 | 100 | } | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | ||
104 | 104 | @Callable(i) | |
105 | 105 | func initVotingForNewPool (assetA,assetB) = { | |
106 | - | let $ | |
107 | - | let pmtAmount = $ | |
108 | - | let pmtAssetId = $ | |
109 | - | let $ | |
110 | - | let poolAssetIdA = $ | |
111 | - | let poolAssetIdB = $ | |
106 | + | let $t029242999 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
107 | + | let pmtAmount = $t029242999._1 | |
108 | + | let pmtAssetId = $t029242999._2 | |
109 | + | let $t030043110 = $Tuple2(getAssetInfoFromString(assetA), getAssetInfoFromString(assetB)) | |
110 | + | let poolAssetIdA = $t030043110._1 | |
111 | + | let poolAssetIdB = $t030043110._2 | |
112 | 112 | if (!(isActive)) | |
113 | 113 | then throw("DApp is inactive at this moment") | |
114 | 114 | else if ((poolAssetIdA == poolAssetIdB)) | |
115 | 115 | then throw("Assets must be different") | |
116 | 116 | else if ((pmtAssetId != SWOP)) | |
117 | 117 | then throw("You must use a SWOP token") | |
118 | 118 | else if ((pmtAmount != comissionForInitalizationOfVoting)) | |
119 | 119 | then throw("You need to attach 10 SWOP tokens") | |
120 | 120 | else if ((numberOfVoting > maxAmountOfVoting)) | |
121 | 121 | then throw(("Too many votes. Maximum quantity -" + toString(maxAmountOfVoting))) | |
122 | 122 | else if (!(if (if (if (if (if ((poolAssetIdA == USDN)) | |
123 | 123 | then true | |
124 | 124 | else (poolAssetIdB == USDN)) | |
125 | 125 | then true | |
126 | 126 | else (poolAssetIdA == unit)) | |
127 | 127 | then true | |
128 | 128 | else (poolAssetIdB == unit)) | |
129 | 129 | then true | |
130 | 130 | else (poolAssetIdA == SWOP)) | |
131 | 131 | then true | |
132 | 132 | else (poolAssetIdB == SWOP))) | |
133 | 133 | then throw("One of the assets must be USDN, WAVES, SWOP") | |
134 | 134 | 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, (numberOfVoting + 1)), StringEntry((assetA + kName), assetA), StringEntry((assetB + kName), assetB), ScriptTransfer(walletAddress, pmtAmount, pmtAssetId)] | |
135 | 135 | } | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | ||
139 | 139 | @Callable(i) | |
140 | 140 | func voteForPool (voting,yesOrNo,voteAmt) = { | |
141 | 141 | let currentHeight = height | |
142 | 142 | let poolInitHeight = valueOrErrorMessage(getIntegerValue(this, (toString(voting) + keyHeightOfPool)), "Empty pool height") | |
143 | 143 | let userSWOPinGovernance = valueOrElse(getInteger(govAddr, (toString(i.caller) + kUserTotalSWOP)), 0) | |
144 | 144 | if (!(isCallerInGovernance(i.caller))) | |
145 | 145 | then throw("This address has 0 SWOP in Governance dApp") | |
146 | 146 | else if ((currentHeight > poolInitHeight)) | |
147 | 147 | then [IntegerEntry(keyNumberOfVoting, (numberOfVoting - 1))] | |
148 | 148 | else if ((1 > voteAmt)) | |
149 | 149 | then throw("The number of votes must be positive") | |
150 | 150 | else if ((voteAmt > userSWOPinGovernance)) | |
151 | 151 | then throw((((toString(this) + " has ") + toString(userSWOPinGovernance)) + " SWOP in governance.")) | |
152 | 152 | else if (yesOrNo) | |
153 | 153 | then { | |
154 | 154 | let newVote = (valueOrElse(getInteger(this, (toString(voting) + keyYes)), 0) + voteAmt) | |
155 | 155 | let newVoteUser = (valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(voting)) + keyYes)), 0) + voteAmt) | |
156 | 156 | [IntegerEntry((toString(voting) + keyYes), newVote), IntegerEntry((((toString(i.caller) + "_") + toString(voting)) + keyYes), newVoteUser)] | |
157 | 157 | } | |
158 | 158 | else { | |
159 | 159 | let newVote = (valueOrElse(getInteger(this, (toString(voting) + keyNo)), 0) + voteAmt) | |
160 | 160 | let newVoteUser = (valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(voting)) + keyNo)), 0) + voteAmt) | |
161 | 161 | [IntegerEntry((toString(voting) + keyNo), newVote), IntegerEntry((((toString(i.caller) + "_") + toString(voting)) + keyNo), newVoteUser)] | |
162 | 162 | } | |
163 | 163 | } | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | ||
167 | 167 | @Callable(i) | |
168 | 168 | func cancellationVoting (voting,cause) = if (!(isActive)) | |
169 | 169 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
170 | 170 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
171 | 171 | then throw("Only admin can call this function") | |
172 | 172 | else [IntegerEntry(keyNumberOfVoting, (numberOfVoting - 1)), BooleanEntry((toString(voting) + keyStatusOfVoting), false), StringEntry((toString(voting) + keyCancelCause), cause)] | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | ||
176 | 176 | @Callable(i) | |
177 | 177 | func shutdown () = if (!(isActive)) | |
178 | 178 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
179 | 179 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
180 | 180 | then throw("Only admin can call this function") | |
181 | 181 | else suspend("Paused by admin") | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | ||
185 | 185 | @Callable(i) | |
186 | 186 | func activate () = if (isActive) | |
187 | 187 | then throw("DApp is already active") | |
188 | 188 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
189 | 189 | then throw("Only admin can call this function") | |
190 | 190 | else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)] | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | @Verifier(tx) | |
194 | 194 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
195 | 195 |
github/deemru/w8io/169f3d6 41.27 ms ◑