tx · 8C8N2zosTqyJhAX2p5D8hGhRQSwV5kV9t9rxiXGzoj7u

3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph:  -0.01400000 Waves

2022.02.08 21:51 [1915035] smart account 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph > SELF 0.00000000 Waves

{ "type": 13, "id": "8C8N2zosTqyJhAX2p5D8hGhRQSwV5kV9t9rxiXGzoj7u", "fee": 1400000, "feeAssetId": null, "timestamp": 1644346328570, "version": 2, "chainId": 84, "sender": "3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph", "senderPublicKey": "G7cNXePvAHUHmZfXa1eHnvFeH6DuykPC5wm9v9djTKgD", "proofs": [ "35p5RzBkFbnUVymzJ95NByZP24B88xe92aHHCa9tJpFfHpNPaJuSqfs79nnnajt9j2xaq8RWhGtJVBDDAzCZ1TdX", "3uP8n9MEc1cRmVwg3YHcYbBkBZrvNbif6EwfFLMqKJCMeSFeHaRgUWteo6o5ojkRKL7ftdrwjoMAEZUvVKiYDYhm", "5URWwmvp6PRiTMuMAZ53aY2YmVBik174mERfFLLwFFb9cYYPDjpiJLSfmrJt7XkHq3wDYGJS6QpCWETgEo2EU7xJ" ], "script": "base64:AAIFAAAAAAAAAC4IAhIGCgQYGBgREgMKARgSBgoECAgBARIAEgMKAQgSAwoBCBIDCgEIEgQKAhgUAAAAFgAAAAAKZGVwb3NpdEZlZQAAAAAAAAAD6AAAAAANY29udHJvbGxlckZlZQAAAAAAAAAnEAAAAAALcGxhdGZvcm1GZWUAAAAAAAAAJxAAAAAADGFkbWluUHViS2V5MQEAAAAgTC9F1XzqFGGdLucFXlrRY8ZeleddBPtyCBFVfBI5UHgAAAAADGFkbWluUHViS2V5MgEAAAAgo1jhnK8LndnZN54kO2lFL7fWRlVIuOuttap+d1LEBD0AAAAADGFkbWluUHViS2V5MwEAAAAgitC0+TBLGvFUtXZrOXd2PwDRrAhjEzCY3dTlamSkHykAAAAADGFkbWluUHViS2V5NAEA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AnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAMYWRtaW5QdWJLZXkyAAAAAAAAAAABAAAAAAAAAAAABAAAAAphZG0zU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIFAAAADGFkbWluUHViS2V5MwAAAAAAAAAAAQAAAAAAAAAAAAkAAGcAAAACCQAAZAAAAAIJAABkAAAAAgUAAAAKYWRtMVNpZ25lZAUAAAAKYWRtMlNpZ25lZAUAAAAKYWRtM1NpZ25lZAAAAAAAAAAAAh8lVrk=", "height": 1915035, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9NWLe5RBugR8HYNXLgUd8oRtGUQxiYEv96JMjuM8ucYY Next: 8JeSP7piAh3WJ9FzDK2ntKsVifSEFpqcmUZhPHZKHjGX Diff:
OldNewDifferences
102102 }
103103
104104
105-@Callable(i)
106-func test () = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
107- then [StringEntry("test_admin", "passed")]
108- else [StringEntry("test_admin", "not_passed")]
109-
105+func userWithdrawKey (pool,userAddress) = (((pool + "_") + userAddress) + "_withdraw")
110106
111107
112108 @Callable(i)
306302
307303
308304 @Callable(i)
305+func initWithdraw (pool) = if ((size(i.payments) != 1))
306+ then throw("One attached payment expected")
307+ else {
308+ let amount = i.payments[0].amount
309+ let assetId = i.payments[0].assetId
310+ let assetIdString = match assetId {
311+ case id: ByteVector =>
312+ toBase58String(id)
313+ case _ =>
314+ throw("Match error")
315+ }
316+ if ((0 >= amount))
317+ then throw(("Withraw amount must be positive. Actual: " + toString(amount)))
318+ else if (isPoolActive(pool))
319+ then {
320+ let userAddress = toString(i.caller)
321+ let transferToUserAmount = transferToUser(amount, fromBase58String(assetIdString), pool, withdrawType)
322+ let userRecordKey = userWithdrawKey(pool, userAddress)
323+[IntegerEntry(userRecordKey, transferToUserAmount)]
324+ }
325+ else throw("Pool is not active!")
326+ }
327+
328+
329+
330+@Callable(i)
309331 func withdraw (pool) = if ((size(i.payments) != 1))
310332 then throw("One attached payment expected")
311333 else {
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 swopFiGovermanceAddress = Address(base58'3PLHVWCqA9DJPDbadUofTohnCULLauiDWhS')
2121
2222 let farmingAddress = Address(base58'3NBTuZhn2CwAgWGL99qpGDjZQ4Wtbg56iDL')
2323
2424 let keySWOPid = "SWOP_id"
2525
2626 let SWOP = fromBase58String(getStringValue(farmingAddress, keySWOPid))
2727
2828 let depositType = "deposit"
2929
3030 let withdrawType = "withdraw"
3131
3232 let swopFiPools = ["3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1", "3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX", "3P27S9V36kw2McjWRZ37AxTx8iwkd7HXw6W"]
3333
3434 let swopFiFunctions = ["replenishWithTwoTokens", "exchange"]
3535
3636 func isPoolActive (pool) = {
3737 let kActive = (pool + "_active")
3838 let isActive = match getBoolean(this, kActive) {
3939 case boolean: Boolean =>
4040 boolean
4141 case _ =>
4242 throw("Pool is not active!")
4343 }
4444 isActive
4545 }
4646
4747
4848 func getDAppAssetAddress (pool) = match getString((pool + "_service_token")) {
4949 case string: String =>
5050 string
5151 case nothing =>
5252 throw("You try to deposit on unsupported pool")
5353 }
5454
5555
5656 func getLiquidutyAssetAddress (pool) = match getString((pool + "_liquidity_token")) {
5757 case string: String =>
5858 string
5959 case nothing =>
6060 throw("You try to withdraw from unsupported pool")
6161 }
6262
6363
6464 func getStakedAmount (poolAddress) = if ((poolAddress == toBase58String(SWOP)))
6565 then match getInteger(swopFiGovermanceAddress, (toString(this) + "_SWOP_amount")) {
6666 case staked: Int =>
6767 staked
6868 case nothing: Unit =>
6969 0
7070 case _ =>
7171 throw("Match error")
7272 }
7373 else match getInteger(farmingAddress, (((poolAddress + "_") + toString(this)) + "_share_tokens_locked")) {
7474 case staked: Int =>
7575 staked
7676 case nothing: Unit =>
7777 0
7878 case _ =>
7979 throw("Match error")
8080 }
8181
8282
8383 func transferToUser (amount,assetId,poolAddress,type) = {
8484 let dAppStakedTokens = getStakedAmount(poolAddress)
8585 let assetIdQuantity = match assetInfo(assetId) {
8686 case asset: Asset =>
8787 asset.quantity
8888 case _ =>
8989 throw("Can't find asset")
9090 }
9191 if ((dAppStakedTokens == 0))
9292 then amount
9393 else if ((type == depositType))
9494 then {
9595 let transferToUserAmount = fraction(amount, assetIdQuantity, dAppStakedTokens)
9696 transferToUserAmount
9797 }
9898 else {
9999 let transferToUserAmount = fraction(amount, dAppStakedTokens, assetIdQuantity)
100100 transferToUserAmount
101101 }
102102 }
103103
104104
105-@Callable(i)
106-func test () = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
107- then [StringEntry("test_admin", "passed")]
108- else [StringEntry("test_admin", "not_passed")]
109-
105+func userWithdrawKey (pool,userAddress) = (((pool + "_") + userAddress) + "_withdraw")
110106
111107
112108 @Callable(i)
113109 func addPools (pools,liquidityTokens,serviceTokens,liquidityTokenDecimals) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
114110 then {
115111 func generatePoolKeys (accumulated,pool) = IntegerEntry((pool + "_asset_balance"), 0) :: accumulated
116112
117113 func generatePoolLiquidityTokenKeys (accumulated,pool) = {
118114 let poolIndex = value(indexOf(pools, pool))
119115 let liquidityToken = liquidityTokens[poolIndex]
120116 StringEntry((pool + "_liquidity_token"), liquidityToken) :: accumulated
121117 }
122118
123119 func generatePoolServiceTokenKeys (accumulated,pool) = {
124120 let poolIndex = value(indexOf(pools, pool))
125121 let liquidityToken = serviceTokens[poolIndex]
126122 StringEntry((pool + "_service_token"), liquidityToken) :: accumulated
127123 }
128124
129125 func generatePoolLiquidityTokenDecimalKeys (accumulated,pool) = {
130126 let poolIndex = value(indexOf(pools, pool))
131127 let liquidityToken = liquidityTokenDecimals[poolIndex]
132128 IntegerEntry((pool + "_service_token_decimal"), liquidityToken) :: accumulated
133129 }
134130
135131 func generatePoolActiveKeys (accumulated,pool) = BooleanEntry((pool + "_active"), true) :: accumulated
136132
137133 let poolBalanceKeys = {
138134 let $l = pools
139135 let $s = size($l)
140136 let $acc0 = nil
141137 func $f0_1 ($a,$i) = if (($i >= $s))
142138 then $a
143139 else generatePoolKeys($a, $l[$i])
144140
145141 func $f0_2 ($a,$i) = if (($i >= $s))
146142 then $a
147143 else throw("List size exceeds 20")
148144
149145 $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)
150146 }
151147 let poolLiquidityTokenKeys = {
152148 let $l = pools
153149 let $s = size($l)
154150 let $acc0 = nil
155151 func $f1_1 ($a,$i) = if (($i >= $s))
156152 then $a
157153 else generatePoolLiquidityTokenKeys($a, $l[$i])
158154
159155 func $f1_2 ($a,$i) = if (($i >= $s))
160156 then $a
161157 else throw("List size exceeds 20")
162158
163159 $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)
164160 }
165161 let poolServiceTokenKeys = {
166162 let $l = pools
167163 let $s = size($l)
168164 let $acc0 = nil
169165 func $f2_1 ($a,$i) = if (($i >= $s))
170166 then $a
171167 else generatePoolServiceTokenKeys($a, $l[$i])
172168
173169 func $f2_2 ($a,$i) = if (($i >= $s))
174170 then $a
175171 else throw("List size exceeds 20")
176172
177173 $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)
178174 }
179175 let poolLiquidityTokenDecimalKeys = {
180176 let $l = pools
181177 let $s = size($l)
182178 let $acc0 = nil
183179 func $f3_1 ($a,$i) = if (($i >= $s))
184180 then $a
185181 else generatePoolLiquidityTokenDecimalKeys($a, $l[$i])
186182
187183 func $f3_2 ($a,$i) = if (($i >= $s))
188184 then $a
189185 else throw("List size exceeds 20")
190186
191187 $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)
192188 }
193189 let poolActiveKeys = {
194190 let $l = pools
195191 let $s = size($l)
196192 let $acc0 = nil
197193 func $f4_1 ($a,$i) = if (($i >= $s))
198194 then $a
199195 else generatePoolActiveKeys($a, $l[$i])
200196
201197 func $f4_2 ($a,$i) = if (($i >= $s))
202198 then $a
203199 else throw("List size exceeds 20")
204200
205201 $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)
206202 }
207203 ((((poolBalanceKeys ++ poolLiquidityTokenKeys) ++ poolServiceTokenKeys) ++ poolLiquidityTokenDecimalKeys) ++ poolActiveKeys)
208204 }
209205 else throw("Only admin can call this function")
210206
211207
212208
213209 @Callable(i)
214210 func deleteDepositLockRecords (records) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
215211 then {
216212 func generateDeletingKeys (accumulated,record) = DeleteEntry((record + "_locked")) :: accumulated
217213
218214 let deleteKeys = {
219215 let $l = records
220216 let $s = size($l)
221217 let $acc0 = nil
222218 func $f0_1 ($a,$i) = if (($i >= $s))
223219 then $a
224220 else generateDeletingKeys($a, $l[$i])
225221
226222 func $f0_2 ($a,$i) = if (($i >= $s))
227223 then $a
228224 else throw("List size exceeds 100")
229225
230226 $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)
231227 }
232228 deleteKeys
233229 }
234230 else throw("Only admin can call this function")
235231
236232
237233
238234 @Callable(i)
239235 func issueToken (name,description,quantity,decimals) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
240236 then [Issue(name, description, quantity, decimals, true, unit, 0)]
241237 else throw("Only admin can call this function")
242238
243239
244240
245241 @Callable(a8)
246242 func call () = [DeleteEntry("3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1_3N5viYFhnu1ew4FRZ9nujme9edr918FkT1a_current_reward")]
247243
248244
249245
250246 @Callable(i)
251247 func deposit (pool) = if ((size(i.payments) != 1))
252248 then throw("One attached payment expected")
253249 else {
254250 let amount = i.payments[0].amount
255251 let assetId = i.payments[0].assetId
256252 let assetIdString = match assetId {
257253 case id: ByteVector =>
258254 toBase58String(id)
259255 case _ =>
260256 throw("Match error")
261257 }
262258 if ((0 >= amount))
263259 then throw(("Deposit amount must be positive. Actual: " + toString(amount)))
264260 else {
265261 let poolAmountKey = (pool + "_asset_balance")
266262 let userAddress = toString(i.caller)
267263 let userPoolAmountKey = (((pool + "_") + userAddress) + "_asset_balance")
268264 let dAppAssetAddress = getDAppAssetAddress(pool)
269265 let liquidutyAssetAddress = match getString((pool + "_liquidity_token")) {
270266 case string: String =>
271267 string
272268 case nothing =>
273269 throw("You try to deposit on unsupported pool")
274270 }
275271 if (isPoolActive(pool))
276272 then {
277273 let liquidityTokenDecimal = match assetInfo(fromBase58String(liquidutyAssetAddress)) {
278274 case asset: Asset =>
279275 asset.decimals
280276 case _ =>
281277 throw("Can't find asset")
282278 }
283279 if ((liquidutyAssetAddress != assetIdString))
284280 then throw("You attached wrong liquidity token from Swop.fi")
285281 else {
286282 let poolAmount = getIntegerValue(this, poolAmountKey)
287283 let userAmount = match getInteger(userPoolAmountKey) {
288284 case int: Int =>
289285 int
290286 case nothing =>
291287 0
292288 }
293289 let userAmountWithoutFee = ((amount - fraction(amount, 1, depositFee, HALFUP)) - fraction(amount, 1, controllerFee, HALFUP))
294290 let transferToUserAmount = transferToUser(userAmountWithoutFee, fromBase58String(dAppAssetAddress), pool, depositType)
295291 let fee = (amount - userAmountWithoutFee)
296292 let newPoolAmount = ((poolAmount + amount) - fee)
297293 let newUserPoolAmount = (userAmount + transferToUserAmount)
298294 let lockTokensKey = (((((pool + "_") + userAddress) + "_") + toBase58String(i.transactionId)) + "_locked")
299295 [Reissue(fromBase58String(dAppAssetAddress), transferToUserAmount, true), ScriptTransfer(i.caller, transferToUserAmount, fromBase58String(dAppAssetAddress)), ScriptTransfer(govermanceAddress, fee, fromBase58String(liquidutyAssetAddress)), IntegerEntry(lockTokensKey, userAmountWithoutFee), IntegerEntry(poolAmountKey, newPoolAmount), IntegerEntry(userPoolAmountKey, newUserPoolAmount)]
300296 }
301297 }
302298 else throw("Pool is not active!")
303299 }
304300 }
305301
306302
307303
308304 @Callable(i)
305+func initWithdraw (pool) = if ((size(i.payments) != 1))
306+ then throw("One attached payment expected")
307+ else {
308+ let amount = i.payments[0].amount
309+ let assetId = i.payments[0].assetId
310+ let assetIdString = match assetId {
311+ case id: ByteVector =>
312+ toBase58String(id)
313+ case _ =>
314+ throw("Match error")
315+ }
316+ if ((0 >= amount))
317+ then throw(("Withraw amount must be positive. Actual: " + toString(amount)))
318+ else if (isPoolActive(pool))
319+ then {
320+ let userAddress = toString(i.caller)
321+ let transferToUserAmount = transferToUser(amount, fromBase58String(assetIdString), pool, withdrawType)
322+ let userRecordKey = userWithdrawKey(pool, userAddress)
323+[IntegerEntry(userRecordKey, transferToUserAmount)]
324+ }
325+ else throw("Pool is not active!")
326+ }
327+
328+
329+
330+@Callable(i)
309331 func withdraw (pool) = if ((size(i.payments) != 1))
310332 then throw("One attached payment expected")
311333 else {
312334 let amount = i.payments[0].amount
313335 let assetId = i.payments[0].assetId
314336 let assetIdString = match assetId {
315337 case id: ByteVector =>
316338 toBase58String(id)
317339 case _ =>
318340 throw("Match error")
319341 }
320342 if ((0 >= amount))
321343 then throw(("Deposit amount must be positive. Actual: " + toString(amount)))
322344 else if (isPoolActive(pool))
323345 then {
324346 let poolAmountKey = (pool + "_asset_balance")
325347 let userAddress = toString(i.caller)
326348 let userPoolAmountKey = (((pool + "_") + userAddress) + "_asset_balance")
327349 let userAmount = match getInteger(userPoolAmountKey) {
328350 case int: Int =>
329351 int
330352 case nothing =>
331353 0
332354 }
333355 let dAppAssetAddress = getDAppAssetAddress(pool)
334356 let liquidutyAssetAddress = getLiquidutyAssetAddress(pool)
335357 let poolAmount = getIntegerValue(this, poolAmountKey)
336358 let transferToUserAmount = transferToUser(amount, fromBase58String(assetIdString), pool, withdrawType)
337359 let newPoolAmount = (poolAmount - amount)
338360 let newUserPoolAmount = (userAmount - amount)
339361 [Burn(fromBase58String(dAppAssetAddress), amount), ScriptTransfer(i.caller, transferToUserAmount, fromBase58String(liquidutyAssetAddress)), IntegerEntry(poolAmountKey, newPoolAmount), IntegerEntry(userPoolAmountKey, newUserPoolAmount)]
340362 }
341363 else throw("Pool is not active!")
342364 }
343365
344366
345367
346368 @Callable(i)
347369 func poolActivating (pools,statuses) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
348370 then {
349371 func generatePoolActiveKeys (accumulated,pool) = {
350372 let poolIndex = value(indexOf(pools, pool))
351373 let status = statuses[poolIndex]
352374 BooleanEntry((pool + "_active"), status) :: accumulated
353375 }
354376
355377 let poolActiveKeys = {
356378 let $l = pools
357379 let $s = size($l)
358380 let $acc0 = nil
359381 func $f0_1 ($a,$i) = if (($i >= $s))
360382 then $a
361383 else generatePoolActiveKeys($a, $l[$i])
362384
363385 func $f0_2 ($a,$i) = if (($i >= $s))
364386 then $a
365387 else throw("List size exceeds 100")
366388
367389 $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)
368390 }
369391 poolActiveKeys
370392 }
371393 else throw("Only admin can call this function")
372394
373395
374396 @Verifier(tx)
375397 func verify () = match tx {
376398 case inv: InvokeScriptTransaction =>
377399 let lockShareTokens = if ((inv.dApp == farmingAddress))
378400 then if (if ((inv.function == "lockShareTokens"))
379401 then true
380402 else (inv.function == "claim"))
381403 then true
382404 else (inv.function == "withdrawShareTokens")
383405 else false
384406 let lockSwop = if ((inv.dApp == swopFiGovermanceAddress))
385407 then if ((inv.function == "lockSWOP"))
386408 then true
387409 else (inv.function == "withdrawSWOP")
388410 else false
389411 let dAppAddress = match inv.dApp {
390412 case dApp: Address =>
391413 toString(dApp)
392414 case _ =>
393415 throw("Transaction must have only address")
394416 }
395417 let poolFunctions = if (containsElement(swopFiPools, dAppAddress))
396418 then containsElement(swopFiFunctions, inv.function)
397419 else false
398420 let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
399421 then true
400422 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2))
401423 then true
402424 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey4))
403425 then true
404426 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
405427 if (if (if (lockShareTokens)
406428 then true
407429 else poolFunctions)
408430 then true
409431 else lockSwop)
410432 then signedByAdmin
411433 else false
412434 case _ =>
413435 let adm1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
414436 then 1
415437 else 0
416438 let adm2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
417439 then 1
418440 else 0
419441 let adm3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
420442 then 1
421443 else 0
422444 (((adm1Signed + adm2Signed) + adm3Signed) >= 2)
423445 }
424446

github/deemru/w8io/026f985 
74.05 ms