tx · 882Pwnx4aZgGbAbErjgAqKnkmFrYPUzWwCCVCssPRtXk

3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph:  -0.01400000 Waves

2022.01.14 14:37 [1878570] smart account 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph > SELF 0.00000000 Waves

{ "type": 13, "id": "882Pwnx4aZgGbAbErjgAqKnkmFrYPUzWwCCVCssPRtXk", "fee": 1400000, "feeAssetId": null, "timestamp": 1642160292913, "version": 2, "chainId": 84, "sender": "3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph", "senderPublicKey": "G7cNXePvAHUHmZfXa1eHnvFeH6DuykPC5wm9v9djTKgD", "proofs": [ "3iM2wUdEvVRDMhxzJ5Bsh4wn1XC2GhoYkvKLHwboHEnF778cD3BKSMy3zCmZHPMBNBkypCVp5sYdxrnD2HJQ6ob8", "4KGhrdyUEdtDfnBamsnpMhwJjXuGsRkQN1Ghpq27qgeQNDKRVGdfd7F8SYNwjot9AwZGTtQMsJXyaEMvwT6FsVB1", "2La1tCguY7yGcYyHgvYmVwovQvtr2ApJcZkEAF8s23TR61ZYc8Fhq1WVuK3a3uboJFy9CKoMwNMDQ2UGVac28Muk" ], "script": "base64:AAIFAAAAAAAAB58IAhIGCgQYGBgREgMKARgSBgoECAgBARIAEgMKAQgSAwoBCBIECgIYFBoMCgFBEgdhc3NldElkGhUKAUISEGRBcHBTdGFrZWRUb2tlbnMaFAoBQxIPYXNzZXRJZFF1YW50aXR5GgoKAUQSBWFzc2V0GhkKAUUSFHRyYW5zZmVyVG9Vc2VyQW1vdW50GgYKAUYSAWkaCgoBRxIFcG9vbHMaFAoBSBIPbGlxdWlkaXR5VG9rZW5zGhIKAUkSDXNlcnZpY2VUb2tlbnMaGwoBShIWbGlxdWlkaXR5VG9rZW5EZWNpbWFscxoVCgFLEhBnZW5lcmF0ZVBvb2xLZXlzGhAKAUwSC2FjY3VtdWxhdGVkGiMKAU0SHmdlbmVyYXRlUG9vbExp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UAAAACYU4AAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJhTgAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAWcGCQAB9AAAAAMIBQAAAAJhTgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAmFOAAAABnByb29mcwAAAAAAAAAAAAgFAAAAAmFOAAAAD3NlbmRlclB1YmxpY0tleQMDBQAAAAJhUQYFAAAAAmFVBQAAAAJhVgcEAAAAAmFXAwkAAfQAAAADCAUAAAACYU4AAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJhTgAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAWQAAAAAAAAAAAEAAAAAAAAAAAAEAAAAAmFYAwkAAfQAAAADCAUAAAACYU4AAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJhTgAAAAZwcm9vZnMAAAAAAAAAAAEFAAAAAWUAAAAAAAAAAAEAAAAAAAAAAAAEAAAAAmFZAwkAAfQAAAADCAUAAAACYU4AAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJhTgAAAAZwcm9vZnMAAAAAAAAAAAIFAAAAAWYAAAAAAAAAAAEAAAAAAAAAAAAJAABnAAAAAgkAAGQAAAACCQAAZAAAAAIFAAAAAmFXBQAAAAJhWAUAAAACYVkAAAAAAAAAAALMtuX7", "height": 1878570, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7Qpg52Q769wR5nP2ceR6DcoT8QRnE4KebUxfMjutUcEH Next: B7GaSXMisByH2ddWTBw2WVwS6So1ExeHYWVfGU9Pscub Diff:
OldNewDifferences
6969 case _ =>
7070 throw("Can't find asset")
7171 }
72- let transferToUserAmount = fraction(amount, dAppStakedTokens, assetIdQuantity)
72+ let transferToUserAmount = fraction(amount, assetIdQuantity, dAppStakedTokens)
7373 if ((transferToUserAmount == 0))
7474 then amount
7575 else transferToUserAmount
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let depositFee = 1000
55
66 let controllerFee = 10000
77
88 let platformFee = 10000
99
1010 let adminPubKey1 = base58'68Po1k24uP6goKr7RDmXPg4QkMiKuyTMEirao14rif8s'
1111
1212 let adminPubKey2 = base58'Bze4aurT9WmLgBT6swA9CajaZFtUwhtwCri6XGAjnAkt'
1313
1414 let adminPubKey3 = base58'ALsqwPqiUP3bVbM7grozc1Y5oHVBAGKqACRJ5J8RXceC'
1515
1616 let adminPubKey4 = base58'ALsqwPqiUP3bVbM7grozc1Y5oHVBAGKqACRJ5J8RXceC'
1717
1818 let govermanceAddress = Address(base58'3N7ExjwfofPYTvNBv2zqtAtLcMxqjTxS7iL')
1919
2020 let farmingAddress = Address(base58'3NBTuZhn2CwAgWGL99qpGDjZQ4Wtbg56iDL')
2121
2222 let swopFiPools = ["3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1", "3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX", "3P27S9V36kw2McjWRZ37AxTx8iwkd7HXw6W"]
2323
2424 let swopFiFunctions = ["replenishWithTwoTokens", "exchange"]
2525
2626 func isPoolActive (pool) = {
2727 let kActive = (pool + "_active")
2828 let isActive = match getBoolean(this, kActive) {
2929 case boolean: Boolean =>
3030 boolean
3131 case _ =>
3232 throw("Pool is not active!")
3333 }
3434 isActive
3535 }
3636
3737
3838 func getDAppAssetAddress (pool) = match getString((pool + "_service_token")) {
3939 case string: String =>
4040 string
4141 case nothing =>
4242 throw("You try to deposit on unsupported pool")
4343 }
4444
4545
4646 func getLiquidutyAssetAddress (pool) = match getString((pool + "_liquidity_token")) {
4747 case string: String =>
4848 string
4949 case nothing =>
5050 throw("You try to withdraw from unsupported pool")
5151 }
5252
5353
5454 func getStakedAmount (poolAddress) = match getInteger(farmingAddress, (((poolAddress + "_") + toString(this)) + "_share_tokens_locked")) {
5555 case staked: Int =>
5656 staked
5757 case nothing: Unit =>
5858 0
5959 case _ =>
6060 throw("Match error")
6161 }
6262
6363
6464 func transferToUser (amount,assetId,poolAddress) = {
6565 let dAppStakedTokens = getStakedAmount(poolAddress)
6666 let assetIdQuantity = match assetInfo(assetId) {
6767 case asset: Asset =>
6868 asset.quantity
6969 case _ =>
7070 throw("Can't find asset")
7171 }
72- let transferToUserAmount = fraction(amount, dAppStakedTokens, assetIdQuantity)
72+ let transferToUserAmount = fraction(amount, assetIdQuantity, dAppStakedTokens)
7373 if ((transferToUserAmount == 0))
7474 then amount
7575 else transferToUserAmount
7676 }
7777
7878
7979 @Callable(i)
8080 func addPools (pools,liquidityTokens,serviceTokens,liquidityTokenDecimals) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
8181 then {
8282 func generatePoolKeys (accumulated,pool) = IntegerEntry((pool + "_asset_balance"), 0) :: accumulated
8383
8484 func generatePoolLiquidityTokenKeys (accumulated,pool) = {
8585 let poolIndex = value(indexOf(pools, pool))
8686 let liquidityToken = liquidityTokens[poolIndex]
8787 StringEntry((pool + "_liquidity_token"), liquidityToken) :: accumulated
8888 }
8989
9090 func generatePoolServiceTokenKeys (accumulated,pool) = {
9191 let poolIndex = value(indexOf(pools, pool))
9292 let liquidityToken = serviceTokens[poolIndex]
9393 StringEntry((pool + "_service_token"), liquidityToken) :: accumulated
9494 }
9595
9696 func generatePoolLiquidityTokenDecimalKeys (accumulated,pool) = {
9797 let poolIndex = value(indexOf(pools, pool))
9898 let liquidityToken = liquidityTokenDecimals[poolIndex]
9999 IntegerEntry((pool + "_service_token_decimal"), liquidityToken) :: accumulated
100100 }
101101
102102 func generatePoolActiveKeys (accumulated,pool) = BooleanEntry((pool + "_active"), true) :: accumulated
103103
104104 let poolBalanceKeys = {
105105 let $l = pools
106106 let $s = size($l)
107107 let $acc0 = nil
108108 func $f0_1 ($a,$i) = if (($i >= $s))
109109 then $a
110110 else generatePoolKeys($a, $l[$i])
111111
112112 func $f0_2 ($a,$i) = if (($i >= $s))
113113 then $a
114114 else throw("List size exceeds 20")
115115
116116 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
117117 }
118118 let poolLiquidityTokenKeys = {
119119 let $l = pools
120120 let $s = size($l)
121121 let $acc0 = nil
122122 func $f1_1 ($a,$i) = if (($i >= $s))
123123 then $a
124124 else generatePoolLiquidityTokenKeys($a, $l[$i])
125125
126126 func $f1_2 ($a,$i) = if (($i >= $s))
127127 then $a
128128 else throw("List size exceeds 20")
129129
130130 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
131131 }
132132 let poolServiceTokenKeys = {
133133 let $l = pools
134134 let $s = size($l)
135135 let $acc0 = nil
136136 func $f2_1 ($a,$i) = if (($i >= $s))
137137 then $a
138138 else generatePoolServiceTokenKeys($a, $l[$i])
139139
140140 func $f2_2 ($a,$i) = if (($i >= $s))
141141 then $a
142142 else throw("List size exceeds 20")
143143
144144 $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
145145 }
146146 let poolLiquidityTokenDecimalKeys = {
147147 let $l = pools
148148 let $s = size($l)
149149 let $acc0 = nil
150150 func $f3_1 ($a,$i) = if (($i >= $s))
151151 then $a
152152 else generatePoolLiquidityTokenDecimalKeys($a, $l[$i])
153153
154154 func $f3_2 ($a,$i) = if (($i >= $s))
155155 then $a
156156 else throw("List size exceeds 20")
157157
158158 $f3_2($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
159159 }
160160 let poolActiveKeys = {
161161 let $l = pools
162162 let $s = size($l)
163163 let $acc0 = nil
164164 func $f4_1 ($a,$i) = if (($i >= $s))
165165 then $a
166166 else generatePoolActiveKeys($a, $l[$i])
167167
168168 func $f4_2 ($a,$i) = if (($i >= $s))
169169 then $a
170170 else throw("List size exceeds 20")
171171
172172 $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
173173 }
174174 ((((poolBalanceKeys ++ poolLiquidityTokenKeys) ++ poolServiceTokenKeys) ++ poolLiquidityTokenDecimalKeys) ++ poolActiveKeys)
175175 }
176176 else throw("Only admin can call this function")
177177
178178
179179
180180 @Callable(i)
181181 func deleteDepositLockRecords (records) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
182182 then {
183183 func generateDeletingKeys (accumulated,record) = DeleteEntry((record + "_locked")) :: accumulated
184184
185185 let deleteKeys = {
186186 let $l = records
187187 let $s = size($l)
188188 let $acc0 = nil
189189 func $f0_1 ($a,$i) = if (($i >= $s))
190190 then $a
191191 else generateDeletingKeys($a, $l[$i])
192192
193193 func $f0_2 ($a,$i) = if (($i >= $s))
194194 then $a
195195 else throw("List size exceeds 100")
196196
197197 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
198198 }
199199 deleteKeys
200200 }
201201 else throw("Only admin can call this function")
202202
203203
204204
205205 @Callable(i)
206206 func issueToken (name,description,quantity,decimals) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
207207 then [Issue(name, description, quantity, decimals, true, unit, 0)]
208208 else throw("Only admin can call this function")
209209
210210
211211
212212 @Callable(a8)
213213 func call () = [DeleteEntry("3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1_3N5viYFhnu1ew4FRZ9nujme9edr918FkT1a_current_reward")]
214214
215215
216216
217217 @Callable(i)
218218 func deposit (pool) = if ((size(i.payments) != 1))
219219 then throw("One attached payment expected")
220220 else {
221221 let amount = i.payments[0].amount
222222 let assetId = i.payments[0].assetId
223223 let assetIdString = match assetId {
224224 case id: ByteVector =>
225225 toBase58String(id)
226226 case _ =>
227227 throw("Match error")
228228 }
229229 if ((0 >= amount))
230230 then throw(("Deposit amount must be positive. Actual: " + toString(amount)))
231231 else {
232232 let poolAmountKey = (pool + "_asset_balance")
233233 let userAddress = toString(i.caller)
234234 let userPoolAmountKey = (((pool + "_") + userAddress) + "_asset_balance")
235235 let dAppAssetAddress = getDAppAssetAddress(pool)
236236 let liquidutyAssetAddress = match getString((pool + "_liquidity_token")) {
237237 case string: String =>
238238 string
239239 case nothing =>
240240 throw("You try to deposit on unsupported pool")
241241 }
242242 if (isPoolActive(pool))
243243 then {
244244 let liquidityTokenDecimal = match assetInfo(fromBase58String(liquidutyAssetAddress)) {
245245 case asset: Asset =>
246246 asset.decimals
247247 case _ =>
248248 throw("Can't find asset")
249249 }
250250 if ((liquidutyAssetAddress != assetIdString))
251251 then throw("You attached wrong liquidity token from Swop.fi")
252252 else {
253253 let poolAmount = getIntegerValue(this, poolAmountKey)
254254 let userAmount = match getInteger(userPoolAmountKey) {
255255 case int: Int =>
256256 int
257257 case nothing =>
258258 0
259259 }
260260 let userAmountWithoutFee = ((amount - fraction(amount, 1, depositFee, HALFUP)) - fraction(amount, 1, controllerFee, HALFUP))
261261 let transferToUserAmount = transferToUser(userAmountWithoutFee, fromBase58String(dAppAssetAddress), pool)
262262 let fee = (amount - userAmountWithoutFee)
263263 let newPoolAmount = ((poolAmount + amount) - fee)
264264 let newUserPoolAmount = (userAmount + transferToUserAmount)
265265 let lockTokensKey = (((((pool + "_") + userAddress) + "_") + toBase58String(i.transactionId)) + "_locked")
266266 [Reissue(fromBase58String(dAppAssetAddress), transferToUserAmount, true), ScriptTransfer(i.caller, userAmountWithoutFee, fromBase58String(dAppAssetAddress)), ScriptTransfer(govermanceAddress, fee, fromBase58String(liquidutyAssetAddress)), IntegerEntry(lockTokensKey, userAmountWithoutFee), IntegerEntry(poolAmountKey, newPoolAmount), IntegerEntry(userPoolAmountKey, newUserPoolAmount)]
267267 }
268268 }
269269 else throw("Pool is not active!")
270270 }
271271 }
272272
273273
274274
275275 @Callable(i)
276276 func withdraw (pool) = if ((size(i.payments) != 1))
277277 then throw("One attached payment expected")
278278 else {
279279 let amount = i.payments[0].amount
280280 let assetId = i.payments[0].assetId
281281 let assetIdString = match assetId {
282282 case id: ByteVector =>
283283 toBase58String(id)
284284 case _ =>
285285 throw("Match error")
286286 }
287287 if ((0 >= amount))
288288 then throw(("Deposit amount must be positive. Actual: " + toString(amount)))
289289 else if (isPoolActive(pool))
290290 then {
291291 let poolAmountKey = (pool + "_asset_balance")
292292 let userAddress = toString(i.caller)
293293 let userPoolAmountKey = (((pool + "_") + userAddress) + "_asset_balance")
294294 let userAmount = match getInteger(userPoolAmountKey) {
295295 case int: Int =>
296296 int
297297 case nothing =>
298298 0
299299 }
300300 let dAppAssetAddress = getDAppAssetAddress(pool)
301301 let liquidutyAssetAddress = getLiquidutyAssetAddress(pool)
302302 let poolAmount = getIntegerValue(this, poolAmountKey)
303303 let userAmountWithoutFee = ((amount - fraction(amount, 1, platformFee, HALFUP)) - fraction(amount, 1, controllerFee, HALFUP))
304304 let transferToUserAmount = transferToUser(userAmountWithoutFee, fromBase58String(assetIdString), pool)
305305 let newPoolAmount = (poolAmount - userAmountWithoutFee)
306306 let fee = (amount - userAmountWithoutFee)
307307 let newUserPoolAmount = (userAmount - amount)
308308 [Burn(fromBase58String(dAppAssetAddress), transferToUserAmount), ScriptTransfer(i.caller, transferToUserAmount, fromBase58String(liquidutyAssetAddress)), ScriptTransfer(govermanceAddress, fee, fromBase58String(liquidutyAssetAddress)), IntegerEntry(poolAmountKey, newPoolAmount), IntegerEntry(userPoolAmountKey, newUserPoolAmount)]
309309 }
310310 else throw("Pool is not active!")
311311 }
312312
313313
314314
315315 @Callable(i)
316316 func poolActivating (pools,statuses) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
317317 then {
318318 func generatePoolActiveKeys (accumulated,pool) = {
319319 let poolIndex = value(indexOf(pools, pool))
320320 let status = statuses[poolIndex]
321321 BooleanEntry((pool + "_active"), status) :: accumulated
322322 }
323323
324324 let poolActiveKeys = {
325325 let $l = pools
326326 let $s = size($l)
327327 let $acc0 = nil
328328 func $f0_1 ($a,$i) = if (($i >= $s))
329329 then $a
330330 else generatePoolActiveKeys($a, $l[$i])
331331
332332 func $f0_2 ($a,$i) = if (($i >= $s))
333333 then $a
334334 else throw("List size exceeds 100")
335335
336336 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
337337 }
338338 poolActiveKeys
339339 }
340340 else throw("Only admin can call this function")
341341
342342
343343 @Verifier(tx)
344344 func verify () = match tx {
345345 case inv: InvokeScriptTransaction =>
346346 let lockShareTokens = if ((inv.dApp == farmingAddress))
347347 then if (if ((inv.function == "lockShareTokens"))
348348 then true
349349 else (inv.function == "claim"))
350350 then true
351351 else (inv.function == "withdrawShareTokens")
352352 else false
353353 let dAppAddress = match inv.dApp {
354354 case dApp: Address =>
355355 toString(dApp)
356356 case _ =>
357357 throw("Transaction must have only address")
358358 }
359359 let poolFunctions = if (containsElement(swopFiPools, dAppAddress))
360360 then containsElement(swopFiFunctions, inv.function)
361361 else false
362362 let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
363363 then true
364364 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2))
365365 then true
366366 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey4))
367367 then true
368368 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
369369 if (if (lockShareTokens)
370370 then true
371371 else poolFunctions)
372372 then signedByAdmin
373373 else false
374374 case _ =>
375375 let adm1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
376376 then 1
377377 else 0
378378 let adm2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
379379 then 1
380380 else 0
381381 let adm3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
382382 then 1
383383 else 0
384384 (((adm1Signed + adm2Signed) + adm3Signed) >= 2)
385385 }
386386

github/deemru/w8io/026f985 
61.88 ms