tx · C24uVMYefwR9q7c1M1kKeH13Pk6eb9KHHMyEdkNAfBtC 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph: -0.01400000 Waves 2022.02.19 15:00 [1930487] smart account 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph > SELF 0.00000000 Waves
{ "type": 13, "id": "C24uVMYefwR9q7c1M1kKeH13Pk6eb9KHHMyEdkNAfBtC", "fee": 1400000, "feeAssetId": null, "timestamp": 1645272045852, "version": 2, "chainId": 84, "sender": "3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph", "senderPublicKey": "G7cNXePvAHUHmZfXa1eHnvFeH6DuykPC5wm9v9djTKgD", "proofs": [ "4hU4296Z2xGgtknhVQfHErbznAU5mqUytgSC2uh6dQJYC5bxssCzr2kQvv94YyfUW5n9LuLyRYXh77dMQs6kHCak", "txxxicVM8cePAvWnKWqB2wroWScJ46YSbeEymmZbKUQjKQQnkMjeU5F3qM8F4TiHcGWeyUK6uoFHRb2mRj8SVEL", "25BcV9wqZwKAynqpAiaMqNyoygFdYzcamRimcnpag359cYdYQTkXUdniUK8GLDsNBoeyeVi3GmTTGLSnZyiAT4LL" ], "script": "base64:AAIFAAAAAAAAADQIAhIGCgQYGBgREgUKAxgYERIGCgQICAEBEgASAwoBCBIDCgEIEgUKAwgICBIECgIYFBIAAAAAGgAAAAAKZGVwb3NpdEZlZQAAAAAAAAAD6AAAAAANY29udHJvbGxlckZlZQAAAAAAAAAnEAAAAAALcGxhdGZvcm1GZWUAAAAAAAAAJxAAAAAADGFkbWluUHViS2V5MQEAAAAgTC9F1XzqFGGdLucFXlrRY8ZeleddBPtyCBFVfBI5UHgAAAAADGFkbWluUHViS2V5MgEAAAAgo1jhnK8LndnZN54kO2lFL7fWRlVIuOuttap+d1LEBD0AAAAADGFkbWluUHViS2V5MwEAAAAgitC0+TBLGvFUtXZrOXd2PwDRrAhjEzCY3dTlamSkHykAAAAADGFkbWluUHViS2V5NAEAAAAgTC9F1X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RAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAMYWRtaW5QdWJLZXkyAAAAAAAAAAABAAAAAAAAAAAABAAAAAphZG0zU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIFAAAADGFkbWluUHViS2V5MwAAAAAAAAAAAQAAAAAAAAAAAAkAAGcAAAACCQAAZAAAAAIJAABkAAAAAgUAAAAKYWRtMVNpZ25lZAUAAAAKYWRtMlNpZ25lZAUAAAAKYWRtM1NpZ25lZAAAAAAAAAAAAsLdBgc=", "height": 1930487, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9KVeFANAXYa27dKUgiifNrrxGQTusU9TwQuXeh6C3uUU Next: 7y1p2vnMQqd39nr8JYm3FWwCC8zoR2T5KbnBeTRXT6K4 Diff:
Old | New | Differences | |
---|---|---|---|
13 | 13 | ||
14 | 14 | let adminPubKey3 = base58'ALsqwPqiUP3bVbM7grozc1Y5oHVBAGKqACRJ5J8RXceC' | |
15 | 15 | ||
16 | - | let adminPubKey4 = base58' | |
16 | + | let adminPubKey4 = base58'68Po1k24uP6goKr7RDmXPg4QkMiKuyTMEirao14rif8s' | |
17 | 17 | ||
18 | - | let govermanceAddress = Address(base58' | |
18 | + | let govermanceAddress = Address(base58'3PKoJ7GHwmidFPX6NiqKZdq8Zj2auPMNPnE') | |
19 | 19 | ||
20 | 20 | let swopFiGovermanceAddress = Address(base58'3PLHVWCqA9DJPDbadUofTohnCULLauiDWhS') | |
21 | 21 | ||
22 | - | let farmingAddress = Address(base58' | |
22 | + | let farmingAddress = Address(base58'3P73HDkPqG15nLXevjCbmXtazHYTZbpPoPw') | |
23 | 23 | ||
24 | 24 | let keySWOPid = "SWOP_id" | |
25 | 25 | ||
33 | 33 | ||
34 | 34 | let serviceTokenTotalLocked = "_service_token_total_locked" | |
35 | 35 | ||
36 | - | let swopFiPools = ["3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1", "3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX", "3P27S9V36kw2McjWRZ37AxTx8iwkd7HXw6W"] | |
37 | - | ||
38 | - | let swopFiFunctions = ["replenishWithTwoTokens", "exchange"] | |
36 | + | let swopFiFunctions = ["replenishWithTwoTokens", "exchange", "replenishWithOneToken"] | |
39 | 37 | ||
40 | 38 | func isPoolActive (pool) = { | |
41 | 39 | let kActive = (pool + "_active") | |
341 | 339 | let assetId = i.payments[0].assetId | |
342 | 340 | let wavesCommissionAmount = i.payments[1].amount | |
343 | 341 | if ((wavesCommissionAmount != wavesCommissionForWithdraw)) | |
344 | - | then throw("You | |
342 | + | then throw("You added wrong commission") | |
345 | 343 | else { | |
346 | 344 | let assetIdString = match assetId { | |
347 | 345 | case id: ByteVector => | |
390 | 388 | let burnTokenAmount = getIntegerValue(this, userWithdrawBurnTokenKey) | |
391 | 389 | let dAppAssetAddress = getDAppAssetAddress(pool) | |
392 | 390 | let liquidutyAssetAddress = getLiquidutyAssetAddress(pool) | |
393 | - | [Burn(fromBase58String(dAppAssetAddress), burnTokenAmount), ScriptTransfer( | |
391 | + | [Burn(fromBase58String(dAppAssetAddress), burnTokenAmount), ScriptTransfer(Address(base58'userAddress'), sendUserAmount, fromBase58String(liquidutyAssetAddress)), DeleteEntry(userRecordKey), DeleteEntry(userWithdrawBurnTokenKey)] | |
394 | 392 | } | |
395 | 393 | else throw("Only admin can call this function") | |
396 | 394 | ||
427 | 425 | ||
428 | 426 | @Callable(i) | |
429 | 427 | func deleteUnsedData () = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
430 | - | then [IntegerEntry(" | |
428 | + | then [DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_2iUVKCy4zUvgBgg7AccyqKfBCYhpoVEV7ECm9NXLZBP4_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_4nXGTM9Zb3oH2fmZoz3S4moW9Lr2YXawD78BSEvCHCaN_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_At3WGKCiCDn9Kb78PK9tJ9EStbcwGSFLCPXBvFvoGboo_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_Cb1mTLJAZmEWirA5FE8UW7eWkrMWGgjTGRdHA2f9d27U_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_FeDsjtZLp74u6G6CptoipdRtQxzwjM1WRufYJUw34tcF_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_HArfuQBZMynxzdeBg4wqsM72yspQBhHq7DiDqEuakJ3j_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_SWOP_last_claimed_amount"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_asset_balance"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_available_SWOP"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_current_reward"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_last_interest"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_current_reward"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_asset_balance"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_current_reward"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_last_interest"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_last_interest_height"), DeleteEntry("Ehie5xYpeN8op1Cctc6aGUrqx8jq3jtf1DSjXDbfm7aT_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_Avgjf7CwPhnbAZXG8eDmCsVa8339VfRALRJgsSbJtskc_locked"), IntegerEntry("3PNVFWopwCD9CgGXkpYWEY94oQ5XCAEXBmQ_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_service_token_total_locked", 0), DeleteEntry("Ehie5xYpeN8op1Cctc6aGUrqx8jq3jtf1DSjXDbfm7aT_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_asset_balance"), DeleteEntry("Ehie5xYpeN8op1Cctc6aGUrqx8jq3jtf1DSjXDbfm7aT_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_G8AxdbSPvKwsxvwEFVFxE1wAW2CrGsAQwy5diyiSJQc1_locked"), DeleteEntry("Ehie5xYpeN8op1Cctc6aGUrqx8jq3jtf1DSjXDbfm7aT_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_asset_balance"), IntegerEntry("Ehie5xYpeN8op1Cctc6aGUrqx8jq3jtf1DSjXDbfm7aT_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_service_token_total_locked", 0)] | |
431 | 429 | else throw("Only admin can call this function") | |
432 | 430 | ||
433 | 431 | ||
441 | 439 | then true | |
442 | 440 | else (inv.function == "withdrawShareTokens") | |
443 | 441 | else false | |
444 | - | let | |
445 | - | then if ((inv.function == "lockSWOP")) | |
442 | + | let swop = if ((inv.dApp == swopFiGovermanceAddress)) | |
443 | + | then if (if ((inv.function == "lockSWOP")) | |
446 | 444 | then true | |
447 | - | else (inv.function == "withdrawSWOP") | |
445 | + | else (inv.function == "withdrawSWOP")) | |
446 | + | then true | |
447 | + | else (inv.function == "claimAndStakeSWOP") | |
448 | 448 | else false | |
449 | 449 | let dAppAddress = match inv.dApp { | |
450 | 450 | case dApp: Address => | |
452 | 452 | case _ => | |
453 | 453 | throw("Transaction must have only address") | |
454 | 454 | } | |
455 | - | let poolFunctions = if ( | |
455 | + | let poolFunctions = if (isPoolActive(dAppAddress)) | |
456 | 456 | then containsElement(swopFiFunctions, inv.function) | |
457 | 457 | else false | |
458 | 458 | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
466 | 466 | then true | |
467 | 467 | else poolFunctions) | |
468 | 468 | then true | |
469 | - | else | |
469 | + | else swop) | |
470 | 470 | then signedByAdmin | |
471 | 471 | else false | |
472 | 472 | case _ => |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let depositFee = 1000 | |
5 | 5 | ||
6 | 6 | let controllerFee = 10000 | |
7 | 7 | ||
8 | 8 | let platformFee = 10000 | |
9 | 9 | ||
10 | 10 | let adminPubKey1 = base58'68Po1k24uP6goKr7RDmXPg4QkMiKuyTMEirao14rif8s' | |
11 | 11 | ||
12 | 12 | let adminPubKey2 = base58'Bze4aurT9WmLgBT6swA9CajaZFtUwhtwCri6XGAjnAkt' | |
13 | 13 | ||
14 | 14 | let adminPubKey3 = base58'ALsqwPqiUP3bVbM7grozc1Y5oHVBAGKqACRJ5J8RXceC' | |
15 | 15 | ||
16 | - | let adminPubKey4 = base58' | |
16 | + | let adminPubKey4 = base58'68Po1k24uP6goKr7RDmXPg4QkMiKuyTMEirao14rif8s' | |
17 | 17 | ||
18 | - | let govermanceAddress = Address(base58' | |
18 | + | let govermanceAddress = Address(base58'3PKoJ7GHwmidFPX6NiqKZdq8Zj2auPMNPnE') | |
19 | 19 | ||
20 | 20 | let swopFiGovermanceAddress = Address(base58'3PLHVWCqA9DJPDbadUofTohnCULLauiDWhS') | |
21 | 21 | ||
22 | - | let farmingAddress = Address(base58' | |
22 | + | let farmingAddress = Address(base58'3P73HDkPqG15nLXevjCbmXtazHYTZbpPoPw') | |
23 | 23 | ||
24 | 24 | let keySWOPid = "SWOP_id" | |
25 | 25 | ||
26 | 26 | let SWOP = fromBase58String(getStringValue(farmingAddress, keySWOPid)) | |
27 | 27 | ||
28 | 28 | let wavesCommissionForWithdraw = 1400000 | |
29 | 29 | ||
30 | 30 | let depositType = "deposit" | |
31 | 31 | ||
32 | 32 | let withdrawType = "withdraw" | |
33 | 33 | ||
34 | 34 | let serviceTokenTotalLocked = "_service_token_total_locked" | |
35 | 35 | ||
36 | - | let swopFiPools = ["3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1", "3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX", "3P27S9V36kw2McjWRZ37AxTx8iwkd7HXw6W"] | |
37 | - | ||
38 | - | let swopFiFunctions = ["replenishWithTwoTokens", "exchange"] | |
36 | + | let swopFiFunctions = ["replenishWithTwoTokens", "exchange", "replenishWithOneToken"] | |
39 | 37 | ||
40 | 38 | func isPoolActive (pool) = { | |
41 | 39 | let kActive = (pool + "_active") | |
42 | 40 | let isActive = match getBoolean(this, kActive) { | |
43 | 41 | case boolean: Boolean => | |
44 | 42 | boolean | |
45 | 43 | case _ => | |
46 | 44 | throw("Pool is not active!") | |
47 | 45 | } | |
48 | 46 | isActive | |
49 | 47 | } | |
50 | 48 | ||
51 | 49 | ||
52 | 50 | func getDAppAssetAddress (pool) = match getString((pool + "_service_token")) { | |
53 | 51 | case string: String => | |
54 | 52 | string | |
55 | 53 | case nothing => | |
56 | 54 | throw("You try to deposit on unsupported pool") | |
57 | 55 | } | |
58 | 56 | ||
59 | 57 | ||
60 | 58 | func getLiquidutyAssetAddress (pool) = match getString((pool + "_liquidity_token")) { | |
61 | 59 | case string: String => | |
62 | 60 | string | |
63 | 61 | case nothing => | |
64 | 62 | throw("You try to withdraw from unsupported pool") | |
65 | 63 | } | |
66 | 64 | ||
67 | 65 | ||
68 | 66 | func getStakedAmount (poolAddress) = if ((poolAddress == toBase58String(SWOP))) | |
69 | 67 | then match getInteger(swopFiGovermanceAddress, (toString(this) + "_SWOP_amount")) { | |
70 | 68 | case staked: Int => | |
71 | 69 | staked | |
72 | 70 | case nothing: Unit => | |
73 | 71 | 0 | |
74 | 72 | case _ => | |
75 | 73 | throw("Match error") | |
76 | 74 | } | |
77 | 75 | else match getInteger(farmingAddress, (((poolAddress + "_") + toString(this)) + "_share_tokens_locked")) { | |
78 | 76 | case staked: Int => | |
79 | 77 | staked | |
80 | 78 | case nothing: Unit => | |
81 | 79 | 0 | |
82 | 80 | case _ => | |
83 | 81 | throw("Match error") | |
84 | 82 | } | |
85 | 83 | ||
86 | 84 | ||
87 | 85 | func transferToUser (amount,assetId,poolAddress,type) = { | |
88 | 86 | let dAppStakedTokens = getStakedAmount(poolAddress) | |
89 | 87 | let assetIdQuantity = match assetInfo(assetId) { | |
90 | 88 | case asset: Asset => | |
91 | 89 | asset.quantity | |
92 | 90 | case _ => | |
93 | 91 | throw("Can't find asset") | |
94 | 92 | } | |
95 | 93 | if ((dAppStakedTokens == 0)) | |
96 | 94 | then amount | |
97 | 95 | else if ((type == depositType)) | |
98 | 96 | then { | |
99 | 97 | let transferToUserAmount = fraction(amount, assetIdQuantity, dAppStakedTokens) | |
100 | 98 | transferToUserAmount | |
101 | 99 | } | |
102 | 100 | else { | |
103 | 101 | let transferToUserAmount = fraction(amount, dAppStakedTokens, assetIdQuantity) | |
104 | 102 | transferToUserAmount | |
105 | 103 | } | |
106 | 104 | } | |
107 | 105 | ||
108 | 106 | ||
109 | 107 | func userWithdrawKey (pool,userAddress,transactionId) = (((((pool + "_") + userAddress) + "_") + transactionId) + "_withdraw") | |
110 | 108 | ||
111 | 109 | ||
112 | 110 | func userWithdrawBurnTokensKey (pool,userAddress,transactionId) = (((((pool + "_") + userAddress) + "_") + transactionId) + "_withdraw_burn_token") | |
113 | 111 | ||
114 | 112 | ||
115 | 113 | func getUserTotalLockedKey (pool,userAddress) = (((pool + "_") + userAddress) + serviceTokenTotalLocked) | |
116 | 114 | ||
117 | 115 | ||
118 | 116 | func getUserTotalLocked (key) = match getInteger(key) { | |
119 | 117 | case int: Int => | |
120 | 118 | int | |
121 | 119 | case nothing => | |
122 | 120 | 0 | |
123 | 121 | } | |
124 | 122 | ||
125 | 123 | ||
126 | 124 | @Callable(i) | |
127 | 125 | func addPools (pools,liquidityTokens,serviceTokens,liquidityTokenDecimals) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
128 | 126 | then { | |
129 | 127 | func generatePoolKeys (accumulated,pool) = IntegerEntry((pool + "_asset_balance"), 0) :: accumulated | |
130 | 128 | ||
131 | 129 | func generatePoolLiquidityTokenKeys (accumulated,pool) = { | |
132 | 130 | let poolIndex = value(indexOf(pools, pool)) | |
133 | 131 | let liquidityToken = liquidityTokens[poolIndex] | |
134 | 132 | StringEntry((pool + "_liquidity_token"), liquidityToken) :: accumulated | |
135 | 133 | } | |
136 | 134 | ||
137 | 135 | func generatePoolServiceTokenKeys (accumulated,pool) = { | |
138 | 136 | let poolIndex = value(indexOf(pools, pool)) | |
139 | 137 | let liquidityToken = serviceTokens[poolIndex] | |
140 | 138 | StringEntry((pool + "_service_token"), liquidityToken) :: accumulated | |
141 | 139 | } | |
142 | 140 | ||
143 | 141 | func generatePoolLiquidityTokenDecimalKeys (accumulated,pool) = { | |
144 | 142 | let poolIndex = value(indexOf(pools, pool)) | |
145 | 143 | let liquidityToken = liquidityTokenDecimals[poolIndex] | |
146 | 144 | IntegerEntry((pool + "_service_token_decimal"), liquidityToken) :: accumulated | |
147 | 145 | } | |
148 | 146 | ||
149 | 147 | func generatePoolActiveKeys (accumulated,pool) = BooleanEntry((pool + "_active"), true) :: accumulated | |
150 | 148 | ||
151 | 149 | let poolBalanceKeys = { | |
152 | 150 | let $l = pools | |
153 | 151 | let $s = size($l) | |
154 | 152 | let $acc0 = nil | |
155 | 153 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
156 | 154 | then $a | |
157 | 155 | else generatePoolKeys($a, $l[$i]) | |
158 | 156 | ||
159 | 157 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
160 | 158 | then $a | |
161 | 159 | else throw("List size exceeds 20") | |
162 | 160 | ||
163 | 161 | $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) | |
164 | 162 | } | |
165 | 163 | let poolLiquidityTokenKeys = { | |
166 | 164 | let $l = pools | |
167 | 165 | let $s = size($l) | |
168 | 166 | let $acc0 = nil | |
169 | 167 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
170 | 168 | then $a | |
171 | 169 | else generatePoolLiquidityTokenKeys($a, $l[$i]) | |
172 | 170 | ||
173 | 171 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
174 | 172 | then $a | |
175 | 173 | else throw("List size exceeds 20") | |
176 | 174 | ||
177 | 175 | $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) | |
178 | 176 | } | |
179 | 177 | let poolServiceTokenKeys = { | |
180 | 178 | let $l = pools | |
181 | 179 | let $s = size($l) | |
182 | 180 | let $acc0 = nil | |
183 | 181 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
184 | 182 | then $a | |
185 | 183 | else generatePoolServiceTokenKeys($a, $l[$i]) | |
186 | 184 | ||
187 | 185 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
188 | 186 | then $a | |
189 | 187 | else throw("List size exceeds 20") | |
190 | 188 | ||
191 | 189 | $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) | |
192 | 190 | } | |
193 | 191 | let poolLiquidityTokenDecimalKeys = { | |
194 | 192 | let $l = pools | |
195 | 193 | let $s = size($l) | |
196 | 194 | let $acc0 = nil | |
197 | 195 | func $f3_1 ($a,$i) = if (($i >= $s)) | |
198 | 196 | then $a | |
199 | 197 | else generatePoolLiquidityTokenDecimalKeys($a, $l[$i]) | |
200 | 198 | ||
201 | 199 | func $f3_2 ($a,$i) = if (($i >= $s)) | |
202 | 200 | then $a | |
203 | 201 | else throw("List size exceeds 20") | |
204 | 202 | ||
205 | 203 | $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) | |
206 | 204 | } | |
207 | 205 | let poolActiveKeys = { | |
208 | 206 | let $l = pools | |
209 | 207 | let $s = size($l) | |
210 | 208 | let $acc0 = nil | |
211 | 209 | func $f4_1 ($a,$i) = if (($i >= $s)) | |
212 | 210 | then $a | |
213 | 211 | else generatePoolActiveKeys($a, $l[$i]) | |
214 | 212 | ||
215 | 213 | func $f4_2 ($a,$i) = if (($i >= $s)) | |
216 | 214 | then $a | |
217 | 215 | else throw("List size exceeds 20") | |
218 | 216 | ||
219 | 217 | $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) | |
220 | 218 | } | |
221 | 219 | ((((poolBalanceKeys ++ poolLiquidityTokenKeys) ++ poolServiceTokenKeys) ++ poolLiquidityTokenDecimalKeys) ++ poolActiveKeys) | |
222 | 220 | } | |
223 | 221 | else throw("Only admin can call this function") | |
224 | 222 | ||
225 | 223 | ||
226 | 224 | ||
227 | 225 | @Callable(i) | |
228 | 226 | func deleteDepositLockRecords (records,lockedAmountKeys,lockedAmountValues) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
229 | 227 | then { | |
230 | 228 | func generateDeletingKeys (accumulated,record) = DeleteEntry((record + "_locked")) :: accumulated | |
231 | 229 | ||
232 | 230 | func generateLockedKeys (accumulated,lockedKey) = { | |
233 | 231 | let lockedKeyIndex = value(indexOf(lockedAmountKeys, lockedKey)) | |
234 | 232 | let lockedAmount = lockedAmountValues[lockedKeyIndex] | |
235 | 233 | let currentLocked = getUserTotalLocked((lockedKey + serviceTokenTotalLocked)) | |
236 | 234 | let newLockedValue = (currentLocked - lockedAmount) | |
237 | 235 | IntegerEntry((lockedKey + serviceTokenTotalLocked), newLockedValue) :: accumulated | |
238 | 236 | } | |
239 | 237 | ||
240 | 238 | let deleteKeys = { | |
241 | 239 | let $l = records | |
242 | 240 | let $s = size($l) | |
243 | 241 | let $acc0 = nil | |
244 | 242 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
245 | 243 | then $a | |
246 | 244 | else generateDeletingKeys($a, $l[$i]) | |
247 | 245 | ||
248 | 246 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
249 | 247 | then $a | |
250 | 248 | else throw("List size exceeds 50") | |
251 | 249 | ||
252 | 250 | $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($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) | |
253 | 251 | } | |
254 | 252 | let lockedKeys = { | |
255 | 253 | let $l = lockedAmountKeys | |
256 | 254 | let $s = size($l) | |
257 | 255 | let $acc0 = nil | |
258 | 256 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
259 | 257 | then $a | |
260 | 258 | else generateLockedKeys($a, $l[$i]) | |
261 | 259 | ||
262 | 260 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
263 | 261 | then $a | |
264 | 262 | else throw("List size exceeds 50") | |
265 | 263 | ||
266 | 264 | $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($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($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), 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) | |
267 | 265 | } | |
268 | 266 | (deleteKeys ++ lockedKeys) | |
269 | 267 | } | |
270 | 268 | else throw("Only admin can call this function") | |
271 | 269 | ||
272 | 270 | ||
273 | 271 | ||
274 | 272 | @Callable(i) | |
275 | 273 | func issueToken (name,description,quantity,decimals) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
276 | 274 | then [Issue(name, description, quantity, decimals, true, unit, 0)] | |
277 | 275 | else throw("Only admin can call this function") | |
278 | 276 | ||
279 | 277 | ||
280 | 278 | ||
281 | 279 | @Callable(a8) | |
282 | 280 | func call () = [DeleteEntry("3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1_3N5viYFhnu1ew4FRZ9nujme9edr918FkT1a_current_reward")] | |
283 | 281 | ||
284 | 282 | ||
285 | 283 | ||
286 | 284 | @Callable(i) | |
287 | 285 | func deposit (pool) = if ((size(i.payments) != 1)) | |
288 | 286 | then throw("One attached payment expected") | |
289 | 287 | else { | |
290 | 288 | let amount = i.payments[0].amount | |
291 | 289 | let assetId = i.payments[0].assetId | |
292 | 290 | let assetIdString = match assetId { | |
293 | 291 | case id: ByteVector => | |
294 | 292 | toBase58String(id) | |
295 | 293 | case _ => | |
296 | 294 | throw("Match error") | |
297 | 295 | } | |
298 | 296 | if ((0 >= amount)) | |
299 | 297 | then throw(("Deposit amount must be positive. Actual: " + toString(amount))) | |
300 | 298 | else { | |
301 | 299 | let userAddress = toString(i.caller) | |
302 | 300 | let dAppAssetAddress = getDAppAssetAddress(pool) | |
303 | 301 | let liquidutyAssetAddress = match getString((pool + "_liquidity_token")) { | |
304 | 302 | case string: String => | |
305 | 303 | string | |
306 | 304 | case nothing => | |
307 | 305 | throw("You try to deposit on unsupported pool") | |
308 | 306 | } | |
309 | 307 | if (isPoolActive(pool)) | |
310 | 308 | then { | |
311 | 309 | let liquidityTokenDecimal = match assetInfo(fromBase58String(liquidutyAssetAddress)) { | |
312 | 310 | case asset: Asset => | |
313 | 311 | asset.decimals | |
314 | 312 | case _ => | |
315 | 313 | throw("Can't find asset") | |
316 | 314 | } | |
317 | 315 | if ((liquidutyAssetAddress != assetIdString)) | |
318 | 316 | then throw("You attached wrong liquidity token from Swop.fi") | |
319 | 317 | else { | |
320 | 318 | let userTotalLockedKey = getUserTotalLockedKey(pool, userAddress) | |
321 | 319 | let userTotalLocked = getUserTotalLocked(userTotalLockedKey) | |
322 | 320 | let userAmountWithoutFee = ((amount - fraction(amount, 1, depositFee, HALFUP)) - fraction(amount, 1, controllerFee, HALFUP)) | |
323 | 321 | let transferToUserAmount = transferToUser(userAmountWithoutFee, fromBase58String(dAppAssetAddress), pool, depositType) | |
324 | 322 | let fee = (amount - userAmountWithoutFee) | |
325 | 323 | let newUserTotalLocked = (userTotalLocked + userAmountWithoutFee) | |
326 | 324 | let lockTokensKey = (((((pool + "_") + userAddress) + "_") + toBase58String(i.transactionId)) + "_locked") | |
327 | 325 | [Reissue(fromBase58String(dAppAssetAddress), transferToUserAmount, true), ScriptTransfer(i.caller, transferToUserAmount, fromBase58String(dAppAssetAddress)), ScriptTransfer(govermanceAddress, fee, fromBase58String(liquidutyAssetAddress)), IntegerEntry(lockTokensKey, userAmountWithoutFee), IntegerEntry(userTotalLockedKey, newUserTotalLocked)] | |
328 | 326 | } | |
329 | 327 | } | |
330 | 328 | else throw("Pool is not active!") | |
331 | 329 | } | |
332 | 330 | } | |
333 | 331 | ||
334 | 332 | ||
335 | 333 | ||
336 | 334 | @Callable(i) | |
337 | 335 | func initWithdraw (pool) = if ((size(i.payments) != 2)) | |
338 | 336 | then throw("Two attached payment expected") | |
339 | 337 | else { | |
340 | 338 | let amount = i.payments[0].amount | |
341 | 339 | let assetId = i.payments[0].assetId | |
342 | 340 | let wavesCommissionAmount = i.payments[1].amount | |
343 | 341 | if ((wavesCommissionAmount != wavesCommissionForWithdraw)) | |
344 | - | then throw("You | |
342 | + | then throw("You added wrong commission") | |
345 | 343 | else { | |
346 | 344 | let assetIdString = match assetId { | |
347 | 345 | case id: ByteVector => | |
348 | 346 | toBase58String(id) | |
349 | 347 | case _ => | |
350 | 348 | throw("Match error") | |
351 | 349 | } | |
352 | 350 | let assetIdByteVector = match assetId { | |
353 | 351 | case id: ByteVector => | |
354 | 352 | id | |
355 | 353 | case _ => | |
356 | 354 | throw("Match error") | |
357 | 355 | } | |
358 | 356 | if ((0 >= amount)) | |
359 | 357 | then throw(("Withraw amount must be positive. Actual: " + toString(amount))) | |
360 | 358 | else if (isPoolActive(pool)) | |
361 | 359 | then { | |
362 | 360 | let userAddress = toString(i.caller) | |
363 | 361 | let userTotalLockedKey = getUserTotalLockedKey(pool, userAddress) | |
364 | 362 | let userTotalLocked = getUserTotalLocked(userTotalLockedKey) | |
365 | 363 | let userTotalBalanceWithoutCurrentTransaction = assetBalance(i.caller, assetIdByteVector) | |
366 | 364 | let userTotalBalance = (userTotalBalanceWithoutCurrentTransaction + amount) | |
367 | 365 | let maxTransaferToUser = transferToUser(userTotalBalance, fromBase58String(assetIdString), pool, withdrawType) | |
368 | 366 | let transferToUserAmount = transferToUser(amount, fromBase58String(assetIdString), pool, withdrawType) | |
369 | 367 | let nonLockedBalance = (maxTransaferToUser - userTotalLocked) | |
370 | 368 | if (!((nonLockedBalance >= transferToUserAmount))) | |
371 | 369 | then throw("You have a locked tokens. Wait a time for unlock or try to withdrraw less") | |
372 | 370 | else { | |
373 | 371 | let userRecordKey = userWithdrawKey(pool, userAddress, toBase58String(i.transactionId)) | |
374 | 372 | let userWithdrawBurnTokenKey = userWithdrawBurnTokensKey(pool, userAddress, toBase58String(i.transactionId)) | |
375 | 373 | [IntegerEntry(userRecordKey, transferToUserAmount), IntegerEntry(userWithdrawBurnTokenKey, amount), ScriptTransfer(addressFromPublicKey(adminPubKey4), 500000, unit)] | |
376 | 374 | } | |
377 | 375 | } | |
378 | 376 | else throw("Pool is not active!") | |
379 | 377 | } | |
380 | 378 | } | |
381 | 379 | ||
382 | 380 | ||
383 | 381 | ||
384 | 382 | @Callable(i) | |
385 | 383 | func withdraw (pool,userAddress,transactionId) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
386 | 384 | then { | |
387 | 385 | let userRecordKey = userWithdrawKey(pool, userAddress, transactionId) | |
388 | 386 | let userWithdrawBurnTokenKey = userWithdrawBurnTokensKey(pool, userAddress, transactionId) | |
389 | 387 | let sendUserAmount = getIntegerValue(this, userRecordKey) | |
390 | 388 | let burnTokenAmount = getIntegerValue(this, userWithdrawBurnTokenKey) | |
391 | 389 | let dAppAssetAddress = getDAppAssetAddress(pool) | |
392 | 390 | let liquidutyAssetAddress = getLiquidutyAssetAddress(pool) | |
393 | - | [Burn(fromBase58String(dAppAssetAddress), burnTokenAmount), ScriptTransfer( | |
391 | + | [Burn(fromBase58String(dAppAssetAddress), burnTokenAmount), ScriptTransfer(Address(base58'userAddress'), sendUserAmount, fromBase58String(liquidutyAssetAddress)), DeleteEntry(userRecordKey), DeleteEntry(userWithdrawBurnTokenKey)] | |
394 | 392 | } | |
395 | 393 | else throw("Only admin can call this function") | |
396 | 394 | ||
397 | 395 | ||
398 | 396 | ||
399 | 397 | @Callable(i) | |
400 | 398 | func poolActivating (pools,statuses) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
401 | 399 | then { | |
402 | 400 | func generatePoolActiveKeys (accumulated,pool) = { | |
403 | 401 | let poolIndex = value(indexOf(pools, pool)) | |
404 | 402 | let status = statuses[poolIndex] | |
405 | 403 | BooleanEntry((pool + "_active"), status) :: accumulated | |
406 | 404 | } | |
407 | 405 | ||
408 | 406 | let poolActiveKeys = { | |
409 | 407 | let $l = pools | |
410 | 408 | let $s = size($l) | |
411 | 409 | let $acc0 = nil | |
412 | 410 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
413 | 411 | then $a | |
414 | 412 | else generatePoolActiveKeys($a, $l[$i]) | |
415 | 413 | ||
416 | 414 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
417 | 415 | then $a | |
418 | 416 | else throw("List size exceeds 100") | |
419 | 417 | ||
420 | 418 | $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) | |
421 | 419 | } | |
422 | 420 | poolActiveKeys | |
423 | 421 | } | |
424 | 422 | else throw("Only admin can call this function") | |
425 | 423 | ||
426 | 424 | ||
427 | 425 | ||
428 | 426 | @Callable(i) | |
429 | 427 | func deleteUnsedData () = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
430 | - | then [IntegerEntry(" | |
428 | + | then [DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_2iUVKCy4zUvgBgg7AccyqKfBCYhpoVEV7ECm9NXLZBP4_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_4nXGTM9Zb3oH2fmZoz3S4moW9Lr2YXawD78BSEvCHCaN_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_At3WGKCiCDn9Kb78PK9tJ9EStbcwGSFLCPXBvFvoGboo_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_Cb1mTLJAZmEWirA5FE8UW7eWkrMWGgjTGRdHA2f9d27U_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_FeDsjtZLp74u6G6CptoipdRtQxzwjM1WRufYJUw34tcF_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_HArfuQBZMynxzdeBg4wqsM72yspQBhHq7DiDqEuakJ3j_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_SWOP_last_claimed_amount"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_asset_balance"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_available_SWOP"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_current_reward"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_last_interest"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_current_reward"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_asset_balance"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_current_reward"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_last_interest"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_last_interest_height"), DeleteEntry("Ehie5xYpeN8op1Cctc6aGUrqx8jq3jtf1DSjXDbfm7aT_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_Avgjf7CwPhnbAZXG8eDmCsVa8339VfRALRJgsSbJtskc_locked"), IntegerEntry("3PNVFWopwCD9CgGXkpYWEY94oQ5XCAEXBmQ_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_service_token_total_locked", 0), DeleteEntry("Ehie5xYpeN8op1Cctc6aGUrqx8jq3jtf1DSjXDbfm7aT_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_asset_balance"), DeleteEntry("Ehie5xYpeN8op1Cctc6aGUrqx8jq3jtf1DSjXDbfm7aT_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_G8AxdbSPvKwsxvwEFVFxE1wAW2CrGsAQwy5diyiSJQc1_locked"), DeleteEntry("Ehie5xYpeN8op1Cctc6aGUrqx8jq3jtf1DSjXDbfm7aT_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_asset_balance"), IntegerEntry("Ehie5xYpeN8op1Cctc6aGUrqx8jq3jtf1DSjXDbfm7aT_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_service_token_total_locked", 0)] | |
431 | 429 | else throw("Only admin can call this function") | |
432 | 430 | ||
433 | 431 | ||
434 | 432 | @Verifier(tx) | |
435 | 433 | func verify () = match tx { | |
436 | 434 | case inv: InvokeScriptTransaction => | |
437 | 435 | let lockShareTokens = if ((inv.dApp == farmingAddress)) | |
438 | 436 | then if (if ((inv.function == "lockShareTokens")) | |
439 | 437 | then true | |
440 | 438 | else (inv.function == "claim")) | |
441 | 439 | then true | |
442 | 440 | else (inv.function == "withdrawShareTokens") | |
443 | 441 | else false | |
444 | - | let | |
445 | - | then if ((inv.function == "lockSWOP")) | |
442 | + | let swop = if ((inv.dApp == swopFiGovermanceAddress)) | |
443 | + | then if (if ((inv.function == "lockSWOP")) | |
446 | 444 | then true | |
447 | - | else (inv.function == "withdrawSWOP") | |
445 | + | else (inv.function == "withdrawSWOP")) | |
446 | + | then true | |
447 | + | else (inv.function == "claimAndStakeSWOP") | |
448 | 448 | else false | |
449 | 449 | let dAppAddress = match inv.dApp { | |
450 | 450 | case dApp: Address => | |
451 | 451 | toString(dApp) | |
452 | 452 | case _ => | |
453 | 453 | throw("Transaction must have only address") | |
454 | 454 | } | |
455 | - | let poolFunctions = if ( | |
455 | + | let poolFunctions = if (isPoolActive(dAppAddress)) | |
456 | 456 | then containsElement(swopFiFunctions, inv.function) | |
457 | 457 | else false | |
458 | 458 | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
459 | 459 | then true | |
460 | 460 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2)) | |
461 | 461 | then true | |
462 | 462 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey4)) | |
463 | 463 | then true | |
464 | 464 | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
465 | 465 | if (if (if (lockShareTokens) | |
466 | 466 | then true | |
467 | 467 | else poolFunctions) | |
468 | 468 | then true | |
469 | - | else | |
469 | + | else swop) | |
470 | 470 | then signedByAdmin | |
471 | 471 | else false | |
472 | 472 | case _ => | |
473 | 473 | let adm1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
474 | 474 | then 1 | |
475 | 475 | else 0 | |
476 | 476 | let adm2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
477 | 477 | then 1 | |
478 | 478 | else 0 | |
479 | 479 | let adm3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
480 | 480 | then 1 | |
481 | 481 | else 0 | |
482 | 482 | (((adm1Signed + adm2Signed) + adm3Signed) >= 2) | |
483 | 483 | } | |
484 | 484 |
github/deemru/w8io/026f985 88.74 ms ◑