tx · BhiKn1rU8tGwnMf4j9J28FyFtXCz9tJtxYNi9kWvQCm1

3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC:  -0.01400000 Waves

2021.05.11 17:54 [1521168] smart account 3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC > SELF 0.00000000 Waves

{ "type": 13, "id": "BhiKn1rU8tGwnMf4j9J28FyFtXCz9tJtxYNi9kWvQCm1", "fee": 1400000, "feeAssetId": null, "timestamp": 1620744879928, "version": 2, "chainId": 84, "sender": "3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC", "senderPublicKey": "FQ5JNhUjFS3Ty3nSykXrGWHDt4NvXJDCv4JQiJ3dXmKa", "proofs": [ "4f9HUqVHKfp41p8cJqxXKnfNVdoCBTZZHc6W3sbF2Qc1L6XhgeDY5Er3nDRfwrAyR43KMhbSKrYvcJvG6M6HcWL9" ], "script": "base64:AAIEAAAAAAAAACEIAhIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggBEgMKAQgAAABTAAAAAAxhZG1pblB1YktleTEBAAAAILoJ1zuJWaTRXaD/8bsz0KrhOWkPy+K9kdY77k9eqOATAAAAAAxhZG1pblB1YktleTIBAAAAIMKRRJmz0rC0DSKlkVi9iLyhN7sIy//djOaU71sWDn5AAAAAAAxhZG1pblB1YktleTMBAAAAII4eFy54sQc79EhOejMoYHYod/yZ5ZIwoyDCz6ir6Q5VAAAAABRrZXlTaGFyZVRva2Vuc0xvY2tlZAIAAAAaX3RvdGFsX3NoYXJlX3Rva2Vuc19sb2NrZWQAAAAAHGtleVJld2FyZFBvb2xGcmFjdGlvbkN1cnJlbnQCAAAAHV9jdXJyZW50X3Bvb2xfZnJhY3Rpb25fcmV3YXJkAAAAAB1rZXlSZXdhcmRQb29sRnJhY3Rpb25QcmV2aW91cwIAAAAeX3ByZXZpb3VzX3Bvb2xfZnJhY3Rpb25fcmV3YXJkAAAAAB1rZXlUb3RhbFJld2FyZFBlckJsb2NrQ3VycmVudAI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kAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAADGFkbWluUHViS2V5MQAAAAAAAAAAAQAAAAAAAAAAAAQAAAASYWRtaW5QdWJLZXkyU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAADGFkbWluUHViS2V5MgAAAAAAAAAAAQAAAAAAAAAAAAQAAAASYWRtaW5QdWJLZXkzU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIFAAAADGFkbWluUHViS2V5MwAAAAAAAAAAAQAAAAAAAAAAAAkAAGcAAAACCQAAZAAAAAIJAABkAAAAAgUAAAASYWRtaW5QdWJLZXkxU2lnbmVkBQAAABJhZG1pblB1YktleTJTaWduZWQFAAAAEmFkbWluUHViS2V5M1NpZ25lZAAAAAAAAAAAAo0cBSw=", "height": 1521168, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: E1NMK6kGvMJGTUusiXB2JpnSzvSb3PzRTovg4VhC8t96 Next: H1fhd1bnPKjeFfcEYuV7SzERCB3MGEZNxrpEurPGQEeh Diff:
OldNewDifferences
266266 let shareAssetId = getShareAssetId(pool)
267267 let scaleValue = calcScaleValue(SWOP, shareAssetId)
268268 let shareTokenLocked = getTotalShareTokenLocked(pool)
269- let $t01086910934 = getLastInterestInfo(pool)
270- let lastInterestHeight = $t01086910934._1
271- let lastInterest = $t01086910934._2
272- let $t01093911027 = rewardInfo(pool)
273- let currentRewardPerBlock = $t01093911027._1
274- let rewardUpdateHeight = $t01093911027._2
275- let previousRewardPerBlock = $t01093911027._3
276- let $t01103211111 = getUserInterestInfo(pool, caller)
277- let userLastInterest = $t01103211111._1
278- let userShareTokensAmount = $t01103211111._2
269+ let $t01087710942 = getLastInterestInfo(pool)
270+ let lastInterestHeight = $t01087710942._1
271+ let lastInterest = $t01087710942._2
272+ let $t01094711035 = rewardInfo(pool)
273+ let currentRewardPerBlock = $t01094711035._1
274+ let rewardUpdateHeight = $t01094711035._2
275+ let previousRewardPerBlock = $t01094711035._3
276+ let $t01104011119 = getUserInterestInfo(pool, caller)
277+ let userLastInterest = $t01104011119._1
278+ let userShareTokensAmount = $t01104011119._2
279279 let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, shareAssetId, scaleValue, pmtAmount)
280280 let claimAmount = fraction(userShareTokensAmount, (currentInterest - userLastInterest), scaleValue)
281281 let userNewInterest = currentInterest
284284
285285
286286 func calculateProtocolReward (pool) = {
287- let $t01158511650 = getLastInterestInfo(pool)
288- let lastInterestHeight = $t01158511650._1
289- let lastInterest = $t01158511650._2
290- let $t01165611744 = rewardInfo(pool)
291- let currentRewardPerBlock = $t01165611744._1
292- let rewardUpdateHeight = $t01165611744._2
293- let previousRewardPerBlock = $t01165611744._3
287+ let $t01187411939 = getLastInterestInfo(pool)
288+ let lastInterestHeight = $t01187411939._1
289+ let lastInterest = $t01187411939._2
290+ let $t01194512033 = rewardInfo(pool)
291+ let currentRewardPerBlock = $t01194512033._1
292+ let rewardUpdateHeight = $t01194512033._2
293+ let previousRewardPerBlock = $t01194512033._3
294294 let shareTokenLocked = getTotalShareTokenLocked(pool)
295295 if ((shareTokenLocked == 0))
296296 then 0
324324
325325
326326 @Callable(i)
327-func init (earlyLP) = if (isDefined(getString(this, keySWOPid)))
327+func init (earlyLP) = if (isDefined(getString(this, "keySWOPid")))
328328 then throw("SWOP already initialized")
329329 else {
330330 let initAmount = 100000000000000
339339 func initPoolShareFarming (pool) = if ((i.caller != this))
340340 then throw("Only the DApp itself can call this function")
341341 else {
342- let $t01367713757 = rewardInfo(pool)
343- let currentReward = $t01367713757._1
344- let rewardUpdateHeight = $t01367713757._2
345- let previousRewardPerBlock = $t01367713757._3
342+ let $t01410714187 = rewardInfo(pool)
343+ let currentReward = $t01410714187._1
344+ let rewardUpdateHeight = $t01410714187._2
345+ let previousRewardPerBlock = $t01410714187._3
346346 [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyLastInterestHeight), height)]
347347 }
348348
352352 func updatePoolInterest (pool) = if ((i.caller != wallet))
353353 then throw("Only the Admin itself can call this function")
354354 else {
355- let $t01410614226 = claimCalc(pool, adminIncreaseInterestAddress, 0)
356- let userNewInterest = $t01410614226._1
357- let currentInterest = $t01410614226._2
358- let claimAmount = $t01410614226._3
359- let userShareTokensAmount = $t01410614226._4
360-[IntegerEntry((pool + keyLastInterest), userNewInterest)]
355+ let $t01457814698 = claimCalc(pool, adminIncreaseInterestAddress, 0)
356+ let userNewInterest = $t01457814698._1
357+ let currentInterest = $t01457814698._2
358+ let claimAmount = $t01457814698._3
359+ let userShareTokensAmount = $t01457814698._4
360+ let $t01470314783 = rewardInfo(pool)
361+ let currentReward = $t01470314783._1
362+ let rewardUpdateHeight = $t01470314783._2
363+ let previousRewardPerBlock = $t01470314783._3
364+[IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterestHeight), height)]
361365 }
362366
363367
364368
365369 @Callable(i)
366370 func lockShareTokens (pool) = {
367- let $t01435914434 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
368- let pmtAmount = $t01435914434._1
369- let pmtAssetId = $t01435914434._2
370- let $t01443914512 = getAssetInfo(pmtAssetId)
371- let pmtStrAssetId = $t01443914512._1
372- let pmtAssetName = $t01443914512._2
373- let pmtDecimals = $t01443914512._3
374- let $t01451714625 = claimCalc(pool, i.caller, pmtAmount)
375- let userNewInterest = $t01451714625._1
376- let currentInterest = $t01451714625._2
377- let claimAmount = $t01451714625._3
378- let userShareTokensAmount = $t01451714625._4
371+ let $t01503015105 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
372+ let pmtAmount = $t01503015105._1
373+ let pmtAssetId = $t01503015105._2
374+ let $t01511015183 = getAssetInfo(pmtAssetId)
375+ let pmtStrAssetId = $t01511015183._1
376+ let pmtAssetName = $t01511015183._2
377+ let pmtDecimals = $t01511015183._3
378+ let $t01518815296 = claimCalc(pool, i.caller, pmtAmount)
379+ let userNewInterest = $t01518815296._1
380+ let currentInterest = $t01518815296._2
381+ let claimAmount = $t01518815296._3
382+ let userShareTokensAmount = $t01518815296._4
379383 let userShareAmountNew = (userShareTokensAmount + pmtAmount)
380384 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
381385 let totalShareAmount = getTotalShareTokenLocked(pool)
408412 let shareToken = (fraction(getTotalShareTokenLocked(pool), userPoolActiveVote, poolActiveVote) - userShareTokenLocked)
409413 if ((shareToken > 0))
410414 then if ((totalShareAmountNew >= shareToken))
411- then (baseEntry ++ [ScriptTransfer(wallet, protocolReward, SWOP)])
415+ then baseEntry
412416 else throw(("You maximum share token is " + toString(shareToken)))
413417 else throw("You can't share token")
414418 }
422426 @Callable(i)
423427 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = {
424428 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
425- let $t01813218232 = claimCalc(pool, i.caller, 1)
426- let userNewInterest = $t01813218232._1
427- let currentInterest = $t01813218232._2
428- let claimAmount = $t01813218232._3
429- let userShareTokensAmount = $t01813218232._4
429+ let $t01883218932 = claimCalc(pool, i.caller, 1)
430+ let userNewInterest = $t01883218932._1
431+ let currentInterest = $t01883218932._2
432+ let claimAmount = $t01883218932._3
433+ let userShareTokensAmount = $t01883218932._4
430434 let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount)
431435 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
432436 let totalShareAmount = getTotalShareTokenLocked(pool)
443447 @Callable(i)
444448 func claim (pool) = {
445449 let shareTokenLocked = getTotalShareTokenLocked(pool)
446- let $t01972519790 = getLastInterestInfo(pool)
447- let lastInterestHeight = $t01972519790._1
448- let lastInterest = $t01972519790._2
449- let $t01979519884 = rewardInfo(pool)
450- let currentRewardPerBlock = $t01979519884._1
451- let rewardUpdateHeight = $t01979519884._2
452- let previousRewardPerBlock = $t01979519884._3
453- let $t01988919989 = claimCalc(pool, i.caller, 1)
454- let userNewInterest = $t01988919989._1
455- let currentInterest = $t01988919989._2
456- let claimAmount = $t01988919989._3
457- let userShareTokensAmount = $t01988919989._4
450+ let $t02042520490 = getLastInterestInfo(pool)
451+ let lastInterestHeight = $t02042520490._1
452+ let lastInterest = $t02042520490._2
453+ let $t02049520584 = rewardInfo(pool)
454+ let currentRewardPerBlock = $t02049520584._1
455+ let rewardUpdateHeight = $t02049520584._2
456+ let previousRewardPerBlock = $t02049520584._3
457+ let $t02058920689 = claimCalc(pool, i.caller, 1)
458+ let userNewInterest = $t02058920689._1
459+ let currentInterest = $t02058920689._2
460+ let claimAmount = $t02058920689._3
461+ let userShareTokensAmount = $t02058920689._4
458462 let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount)
459463 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
460464 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
467471 @Verifier(tx)
468472 func verify () = match tx {
469473 case _ =>
470- sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
474+ let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
475+ then 1
476+ else 0
477+ let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
478+ then 1
479+ else 0
480+ let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
481+ then 1
482+ else 0
483+ (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
471484 }
472485
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let adminPubKey1 = base58'DXDY2itiEcYBtGkVLnkpHtDFyWQUkoLJz79uJ7ECbMrA'
55
66 let adminPubKey2 = base58'E6Wa1SGoktYcjHjsKrvjMiqJY3SWmGKcD8Q5L8kxSPS7'
77
88 let adminPubKey3 = base58'AZmWJtuy4GeVrMmJH4hfFBRApe1StvhJSk4jcbT6bArQ'
99
1010 let keyShareTokensLocked = "_total_share_tokens_locked"
1111
1212 let keyRewardPoolFractionCurrent = "_current_pool_fraction_reward"
1313
1414 let keyRewardPoolFractionPrevious = "_previous_pool_fraction_reward"
1515
1616 let keyTotalRewardPerBlockCurrent = "total_reward_per_block_current"
1717
1818 let keyTotalRewardPerBlockPrevious = "total_reward_per_block_previous"
1919
2020 let keyRewardUpdateHeight = "reward_update_height"
2121
2222 let keyLastInterest = "_last_interest"
2323
2424 let keyLastInterestHeight = "_last_interest_height"
2525
2626 let keyUserShareTokensLocked = "_share_tokens_locked"
2727
2828 let keyUserLastInterest = "_last_interest"
2929
3030 let keySWOPid = "SWOP_id"
3131
3232 let keyUserSWOPClaimedAmount = "_SWOP_claimed_amount"
3333
3434 let keyUserSWOPLastClaimedAmount = "_SWOP_last_claimed_amount"
3535
3636 let keyAvailableSWOP = "_available_SWOP"
3737
3838 let keyFarmingStartHeight = "farming_start_height"
3939
4040 let keyAPY = "apy"
4141
4242 let kPreviousTotalVoteSWOP = "previous_total_vote_SWOP"
4343
4444 let keySwopYearEmission = "swop_year_emission"
4545
4646 let keyBalancecpmmA = "A_asset_balance"
4747
4848 let keyBalancecpmmB = "B_asset_balance"
4949
5050 let kHarvestPoolActiveVoteStrucVoting = "_harvest_pool_activeVote_struc"
5151
5252 let kHarvestUserPoolActiveVoteStrucVoting = "_harvest_user_pool_ActiveVote_struc"
5353
5454 let keyLimitShareFirstHarvest = "share_limit_on_first_harvest"
5555
5656 let keyAssetIdA = "A_asset_id"
5757
5858 let keyAssetIdB = "B_asset_id"
5959
6060 let keyFirstHarvestHeight = "first_harvest_height"
6161
6262 let keyfirstHarvestCpmm = "first_harvest"
6363
6464 let governanceAddress = Address(base58'3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS')
6565
6666 let wallet = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
6767
6868 let votingAddress = Address(base58'3N6CYoCsxrcXKe75pQvvV3JqJrwJjm1t4QN')
6969
7070 let swopUsdnAddress = Address(base58'3N4kooq5242vPtJzBDrmukK6ptrjRRjEBWi')
7171
7272 let wavesUsdnAddress = Address(base58'3MxtJmAsKsfof4X28MJPBtvRUyz1PbCnbhF')
7373
7474 let adminIncreaseInterestAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
7575
7676 let oneWeekInBlock = 10106
7777
7878 let totalVoteShare = 10000000000
7979
8080 let scaleValue1 = 10
8181
8282 let scaleValue3 = 1000
8383
8484 let scaleValue5 = 100000
8585
8686 let scaleValue6 = 1000000
8787
8888 let scaleValue8 = 100000000
8989
9090 let scaleValue11 = 100000000000
9191
9292 func strAssetIdA (pool) = getStringValue(pool, keyAssetIdA)
9393
9494
9595 func strAssetIdB (pool) = getStringValue(pool, keyAssetIdB)
9696
9797
9898 func assetIdA (pool) = if ((strAssetIdA(pool) == "WAVES"))
9999 then unit
100100 else fromBase58String(strAssetIdA(pool))
101101
102102
103103 func assetIdB (pool) = if ((strAssetIdB(pool) == "WAVES"))
104104 then unit
105105 else fromBase58String(strAssetIdB(pool))
106106
107107
108108 let kBasePeriod = "base_period"
109109
110110 let kPeriodLength = "period_length"
111111
112112 let kStartHeight = "start_height"
113113
114114 let kFirstHarvestHeight = "first_harvest_height"
115115
116116 let kDurationFullVotePower = "duration_full_vote_power"
117117
118118 let kMinVotePower = "min_vote_power"
119119
120120 let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
121121
122122 let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight")
123123
124124 let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength")
125125
126126 let durationFullVotePower = valueOrErrorMessage(getInteger(votingAddress, kDurationFullVotePower), "Empty kDurationFullVotePower")
127127
128128 let minVotePower = valueOrErrorMessage(getInteger(votingAddress, kMinVotePower), "Empty kMinVotePower")
129129
130130 let currPeriod = (basePeriod + ((height - startHeight) / periodLength))
131131
132132 func getLimitToken (pool) = valueOrElse(getIntegerValue(pool, keyLimitShareFirstHarvest), 0)
133133
134134
135135 let APY = getIntegerValue(this, keyAPY)
136136
137137 let SwopYearEmission = getIntegerValue(this, keySwopYearEmission)
138138
139139 func assetNameA (pool) = match assetIdA(pool) {
140140 case id: ByteVector =>
141141 value(assetInfo(id)).name
142142 case waves: Unit =>
143143 "WAVES"
144144 case _ =>
145145 throw("Match error")
146146 }
147147
148148
149149 func assetNameB (pool) = match assetIdB(pool) {
150150 case id: ByteVector =>
151151 value(assetInfo(id)).name
152152 case waves: Unit =>
153153 "WAVES"
154154 case _ =>
155155 throw("Match error")
156156 }
157157
158158
159159 let SWOP = fromBase58String(getStringValue(this, keySWOPid))
160160
161161 func isFirstHarvest (pool) = valueOrElse(getBoolean(pool, keyfirstHarvestCpmm), false)
162162
163163
164164 func getHeightFirstHarvest (pool) = valueOrElse(getInteger(pool, keyFirstHarvestHeight), 0)
165165
166166
167167 func getBalanceA (pool) = valueOrErrorMessage(getInteger(pool, keyBalancecpmmA), ("No data on the key: " + keyBalancecpmmA))
168168
169169
170170 func getBalanceB (pool) = valueOrErrorMessage(getInteger(pool, keyBalancecpmmB), ("No data on the key: " + keyBalancecpmmB))
171171
172172
173173 func getTotalShareTokenLocked (pool) = valueOrErrorMessage(getInteger(this, (pool + keyShareTokensLocked)), (("No data on the key: " + pool) + keyShareTokensLocked))
174174
175175
176176 func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
177177
178178
179179 func getAssetInfo (assetId) = match assetId {
180180 case id: ByteVector =>
181181 let stringId = toBase58String(id)
182182 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
183183 $Tuple3(stringId, info.name, info.decimals)
184184 case waves: Unit =>
185185 $Tuple3("WAVES", "WAVES", 8)
186186 case _ =>
187187 throw("Match error")
188188 }
189189
190190
191191 func calcScaleValue (assetId1,assetId2) = {
192192 let assetId1Decimals = value(assetInfo(assetId1)).decimals
193193 let assetId2Decimals = value(assetInfo(assetId2)).decimals
194194 let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8)
195195 pow(10, 0, scaleDigits, 0, 0, HALFDOWN)
196196 }
197197
198198
199199 func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyAvailableSWOP)), 0)
200200
201201
202202 func rewardInfo (pool) = {
203203 let totalRewardPerBlockCurrent = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockCurrent), ((("No data on the key: " + keyTotalRewardPerBlockCurrent) + " at address ") + toString(governanceAddress)))
204204 let totalRewardPerBlockPrevious = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockPrevious), ((("No data on the key: " + keyTotalRewardPerBlockPrevious) + " at address ") + toString(governanceAddress)))
205205 let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + keyRewardPoolFractionCurrent) + " at address ") + toString(governanceAddress)))
206206 let rewardUpdateHeight = valueOrErrorMessage(getInteger(governanceAddress, keyRewardUpdateHeight), ((("No data on the key: " + keyRewardUpdateHeight) + " at address ") + toString(governanceAddress)))
207207 let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + keyRewardPoolFractionPrevious) + " at address ") + toString(governanceAddress)))
208208 let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare)
209209 let rewardPoolPrevious = fraction(totalRewardPerBlockPrevious, rewardPoolFractionPrevious, totalVoteShare)
210210 if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent))
211211 then true
212212 else (rewardPoolPrevious > totalRewardPerBlockPrevious))
213213 then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious")
214214 else $Tuple3(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious)
215215 }
216216
217217
218218 func getLastInterestInfo (pool) = {
219219 let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest))
220220 let lastInterestHeight = valueOrElse(getInteger(this, (pool + keyLastInterestHeight)), height)
221221 $Tuple2(lastInterestHeight, lastInterest)
222222 }
223223
224224
225225 func getUserInterestInfo (pool,userAddress) = {
226226 let userLastInterest = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserLastInterest))
227227 let userShare = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserShareTokensLocked))
228228 let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest))
229229 let userLastInterestValue = match userLastInterest {
230230 case userLastInterest: Int =>
231231 userLastInterest
232232 case _ =>
233233 lastInterest
234234 }
235235 let userShareTokensAmount = match userShare {
236236 case userShare: Int =>
237237 userShare
238238 case _ =>
239239 0
240240 }
241241 $Tuple2(userLastInterestValue, userShareTokensAmount)
242242 }
243243
244244
245245 func calcInterest (lastInterestHeight,rewardUpdateHeight,lastInterest,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,shareAssetId,scaleValue,pmtAmount) = if ((shareTokenLocked == 0))
246246 then 0
247247 else if ((rewardUpdateHeight > height))
248248 then {
249249 let reward = (previousRewardPerBlock * (height - lastInterestHeight))
250250 (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
251251 }
252252 else if ((lastInterestHeight > rewardUpdateHeight))
253253 then {
254254 let reward = (currentRewardPerBlock * (height - lastInterestHeight))
255255 (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
256256 }
257257 else {
258258 let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
259259 let interestAfterUpdate = (lastInterest + fraction(rewardAfterLastInterestBeforeReawardUpdate, scaleValue, shareTokenLocked))
260260 let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
261261 (interestAfterUpdate + fraction(reward, scaleValue, shareTokenLocked))
262262 }
263263
264264
265265 func claimCalc (pool,caller,pmtAmount) = {
266266 let shareAssetId = getShareAssetId(pool)
267267 let scaleValue = calcScaleValue(SWOP, shareAssetId)
268268 let shareTokenLocked = getTotalShareTokenLocked(pool)
269- let $t01086910934 = getLastInterestInfo(pool)
270- let lastInterestHeight = $t01086910934._1
271- let lastInterest = $t01086910934._2
272- let $t01093911027 = rewardInfo(pool)
273- let currentRewardPerBlock = $t01093911027._1
274- let rewardUpdateHeight = $t01093911027._2
275- let previousRewardPerBlock = $t01093911027._3
276- let $t01103211111 = getUserInterestInfo(pool, caller)
277- let userLastInterest = $t01103211111._1
278- let userShareTokensAmount = $t01103211111._2
269+ let $t01087710942 = getLastInterestInfo(pool)
270+ let lastInterestHeight = $t01087710942._1
271+ let lastInterest = $t01087710942._2
272+ let $t01094711035 = rewardInfo(pool)
273+ let currentRewardPerBlock = $t01094711035._1
274+ let rewardUpdateHeight = $t01094711035._2
275+ let previousRewardPerBlock = $t01094711035._3
276+ let $t01104011119 = getUserInterestInfo(pool, caller)
277+ let userLastInterest = $t01104011119._1
278+ let userShareTokensAmount = $t01104011119._2
279279 let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, shareAssetId, scaleValue, pmtAmount)
280280 let claimAmount = fraction(userShareTokensAmount, (currentInterest - userLastInterest), scaleValue)
281281 let userNewInterest = currentInterest
282282 $Tuple4(userNewInterest, currentInterest, claimAmount, userShareTokensAmount)
283283 }
284284
285285
286286 func calculateProtocolReward (pool) = {
287- let $t01158511650 = getLastInterestInfo(pool)
288- let lastInterestHeight = $t01158511650._1
289- let lastInterest = $t01158511650._2
290- let $t01165611744 = rewardInfo(pool)
291- let currentRewardPerBlock = $t01165611744._1
292- let rewardUpdateHeight = $t01165611744._2
293- let previousRewardPerBlock = $t01165611744._3
287+ let $t01187411939 = getLastInterestInfo(pool)
288+ let lastInterestHeight = $t01187411939._1
289+ let lastInterest = $t01187411939._2
290+ let $t01194512033 = rewardInfo(pool)
291+ let currentRewardPerBlock = $t01194512033._1
292+ let rewardUpdateHeight = $t01194512033._2
293+ let previousRewardPerBlock = $t01194512033._3
294294 let shareTokenLocked = getTotalShareTokenLocked(pool)
295295 if ((shareTokenLocked == 0))
296296 then 0
297297 else if ((rewardUpdateHeight > height))
298298 then {
299299 let reward = (previousRewardPerBlock * (height - lastInterestHeight))
300300 reward
301301 }
302302 else if ((lastInterestHeight > rewardUpdateHeight))
303303 then {
304304 let reward = (currentRewardPerBlock * (height - lastInterestHeight))
305305 reward
306306 }
307307 else {
308308 let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
309309 let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
310310 (reward + rewardAfterLastInterestBeforeReawardUpdate)
311311 }
312312 }
313313
314314
315315 func checkPmtAssetIdCorrect (pool,pmtAssetId) = {
316316 let poolShareAssetId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
317317 if ((pmtAssetId == poolShareAssetId))
318318 then true
319319 else false
320320 }
321321
322322
323323 func getUserSWOPClaimedAmount (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyUserSWOPClaimedAmount)), 0)
324324
325325
326326 @Callable(i)
327-func init (earlyLP) = if (isDefined(getString(this, keySWOPid)))
327+func init (earlyLP) = if (isDefined(getString(this, "keySWOPid")))
328328 then throw("SWOP already initialized")
329329 else {
330330 let initAmount = 100000000000000
331331 let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true)
332332 let SWOPid = calculateAssetId(SWOPissue)
333333 [Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(keySWOPid, toBase58String(SWOPid))]
334334 }
335335
336336
337337
338338 @Callable(i)
339339 func initPoolShareFarming (pool) = if ((i.caller != this))
340340 then throw("Only the DApp itself can call this function")
341341 else {
342- let $t01367713757 = rewardInfo(pool)
343- let currentReward = $t01367713757._1
344- let rewardUpdateHeight = $t01367713757._2
345- let previousRewardPerBlock = $t01367713757._3
342+ let $t01410714187 = rewardInfo(pool)
343+ let currentReward = $t01410714187._1
344+ let rewardUpdateHeight = $t01410714187._2
345+ let previousRewardPerBlock = $t01410714187._3
346346 [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyLastInterestHeight), height)]
347347 }
348348
349349
350350
351351 @Callable(i)
352352 func updatePoolInterest (pool) = if ((i.caller != wallet))
353353 then throw("Only the Admin itself can call this function")
354354 else {
355- let $t01410614226 = claimCalc(pool, adminIncreaseInterestAddress, 0)
356- let userNewInterest = $t01410614226._1
357- let currentInterest = $t01410614226._2
358- let claimAmount = $t01410614226._3
359- let userShareTokensAmount = $t01410614226._4
360-[IntegerEntry((pool + keyLastInterest), userNewInterest)]
355+ let $t01457814698 = claimCalc(pool, adminIncreaseInterestAddress, 0)
356+ let userNewInterest = $t01457814698._1
357+ let currentInterest = $t01457814698._2
358+ let claimAmount = $t01457814698._3
359+ let userShareTokensAmount = $t01457814698._4
360+ let $t01470314783 = rewardInfo(pool)
361+ let currentReward = $t01470314783._1
362+ let rewardUpdateHeight = $t01470314783._2
363+ let previousRewardPerBlock = $t01470314783._3
364+[IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterestHeight), height)]
361365 }
362366
363367
364368
365369 @Callable(i)
366370 func lockShareTokens (pool) = {
367- let $t01435914434 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
368- let pmtAmount = $t01435914434._1
369- let pmtAssetId = $t01435914434._2
370- let $t01443914512 = getAssetInfo(pmtAssetId)
371- let pmtStrAssetId = $t01443914512._1
372- let pmtAssetName = $t01443914512._2
373- let pmtDecimals = $t01443914512._3
374- let $t01451714625 = claimCalc(pool, i.caller, pmtAmount)
375- let userNewInterest = $t01451714625._1
376- let currentInterest = $t01451714625._2
377- let claimAmount = $t01451714625._3
378- let userShareTokensAmount = $t01451714625._4
371+ let $t01503015105 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
372+ let pmtAmount = $t01503015105._1
373+ let pmtAssetId = $t01503015105._2
374+ let $t01511015183 = getAssetInfo(pmtAssetId)
375+ let pmtStrAssetId = $t01511015183._1
376+ let pmtAssetName = $t01511015183._2
377+ let pmtDecimals = $t01511015183._3
378+ let $t01518815296 = claimCalc(pool, i.caller, pmtAmount)
379+ let userNewInterest = $t01518815296._1
380+ let currentInterest = $t01518815296._2
381+ let claimAmount = $t01518815296._3
382+ let userShareTokensAmount = $t01518815296._4
379383 let userShareAmountNew = (userShareTokensAmount + pmtAmount)
380384 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
381385 let totalShareAmount = getTotalShareTokenLocked(pool)
382386 let totalShareAmountNew = (totalShareAmount + pmtAmount)
383387 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
384388 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
385389 let baseEntry = [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserShareTokensLocked), userShareAmountNew), IntegerEntry((pool + keyShareTokensLocked), totalShareAmountNew), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), availableFundsNew)]
386390 if ((0 >= pmtAmount))
387391 then throw("You can't lock token")
388392 else if (!(checkPmtAssetIdCorrect(pool, pmtAssetId)))
389393 then throw("Incorrect pmtAssetId")
390394 else if (if (isFirstHarvest(Address(fromBase58String(pool))))
391395 then (height > (getHeightFirstHarvest(Address(fromBase58String(pool))) * periodLength))
392396 else false)
393397 then {
394398 let amountOfVoting = split(getStringValue(votingAddress, (((toString(this) + "_") + pool) + "_user_pool_struc")), "_")
395399 let amountPoolStract = split(getStringValue(votingAddress, (((toString(this) + "_") + pool) + "_pool_struc")), "_")
396400 let amountActiveVoteUserPoolStract = split(getStringValue(votingAddress, (((toString(this) + "_") + pool) + kHarvestUserPoolActiveVoteStrucVoting)), "_")
397401 let amountPoolActiveVoteStract = split(getStringValue(votingAddress, (pool + kHarvestPoolActiveVoteStrucVoting)), "_")
398402 let userShareTokenLocked = userShareTokensAmount
399403 let userPoolActiveVote = if ((toString(currPeriod) == amountOfVoting[2]))
400404 then valueOrElse(parseInt(amountActiveVoteUserPoolStract[0]), 0)
401405 else valueOrElse(parseInt(amountOfVoting[0]), 0)
402406 let poolActiveVote = if ((toString(currPeriod) == amountPoolStract[2]))
403407 then valueOrElse(parseInt(amountPoolActiveVoteStract[0]), 0)
404408 else valueOrElse(parseInt(amountPoolStract[0]), 0)
405409 let protocolReward = calculateProtocolReward(pool)
406410 if ((parseInt(amountOfVoting[1]) != 0))
407411 then {
408412 let shareToken = (fraction(getTotalShareTokenLocked(pool), userPoolActiveVote, poolActiveVote) - userShareTokenLocked)
409413 if ((shareToken > 0))
410414 then if ((totalShareAmountNew >= shareToken))
411- then (baseEntry ++ [ScriptTransfer(wallet, protocolReward, SWOP)])
415+ then baseEntry
412416 else throw(("You maximum share token is " + toString(shareToken)))
413417 else throw("You can't share token")
414418 }
415419 else throw("Your amount of token less than 0")
416420 }
417421 else baseEntry
418422 }
419423
420424
421425
422426 @Callable(i)
423427 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = {
424428 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
425- let $t01813218232 = claimCalc(pool, i.caller, 1)
426- let userNewInterest = $t01813218232._1
427- let currentInterest = $t01813218232._2
428- let claimAmount = $t01813218232._3
429- let userShareTokensAmount = $t01813218232._4
429+ let $t01883218932 = claimCalc(pool, i.caller, 1)
430+ let userNewInterest = $t01883218932._1
431+ let currentInterest = $t01883218932._2
432+ let claimAmount = $t01883218932._3
433+ let userShareTokensAmount = $t01883218932._4
430434 let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount)
431435 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
432436 let totalShareAmount = getTotalShareTokenLocked(pool)
433437 let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount)
434438 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
435439 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
436440 if ((shareTokensWithdrawAmount > userShareTokensAmount))
437441 then throw("Withdraw amount more then user locked amount")
438442 else [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserShareTokensLocked), userShareAmountNew), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((pool + keyShareTokensLocked), totalShareAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), availableFundsNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)]
439443 }
440444
441445
442446
443447 @Callable(i)
444448 func claim (pool) = {
445449 let shareTokenLocked = getTotalShareTokenLocked(pool)
446- let $t01972519790 = getLastInterestInfo(pool)
447- let lastInterestHeight = $t01972519790._1
448- let lastInterest = $t01972519790._2
449- let $t01979519884 = rewardInfo(pool)
450- let currentRewardPerBlock = $t01979519884._1
451- let rewardUpdateHeight = $t01979519884._2
452- let previousRewardPerBlock = $t01979519884._3
453- let $t01988919989 = claimCalc(pool, i.caller, 1)
454- let userNewInterest = $t01988919989._1
455- let currentInterest = $t01988919989._2
456- let claimAmount = $t01988919989._3
457- let userShareTokensAmount = $t01988919989._4
450+ let $t02042520490 = getLastInterestInfo(pool)
451+ let lastInterestHeight = $t02042520490._1
452+ let lastInterest = $t02042520490._2
453+ let $t02049520584 = rewardInfo(pool)
454+ let currentRewardPerBlock = $t02049520584._1
455+ let rewardUpdateHeight = $t02049520584._2
456+ let previousRewardPerBlock = $t02049520584._3
457+ let $t02058920689 = claimCalc(pool, i.caller, 1)
458+ let userNewInterest = $t02058920689._1
459+ let currentInterest = $t02058920689._2
460+ let claimAmount = $t02058920689._3
461+ let userShareTokensAmount = $t02058920689._4
458462 let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount)
459463 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
460464 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
461465 if ((availableFund == 0))
462466 then throw("You have 0 available SWOP")
463467 else [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), 0), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), ScriptTransfer(i.caller, availableFund, SWOP)]
464468 }
465469
466470
467471 @Verifier(tx)
468472 func verify () = match tx {
469473 case _ =>
470- sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
474+ let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
475+ then 1
476+ else 0
477+ let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
478+ then 1
479+ else 0
480+ let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
481+ then 1
482+ else 0
483+ (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
471484 }
472485

github/deemru/w8io/026f985 
70.96 ms