tx · GsTfzVaPPc7f16tY2WR4j3kQK6rPs3FxFn7kxrUea4sE

3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg:  -0.01400000 Waves

2021.10.15 17:33 [1747510] smart account 3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg > SELF 0.00000000 Waves

{ "type": 13, "id": "GsTfzVaPPc7f16tY2WR4j3kQK6rPs3FxFn7kxrUea4sE", "fee": 1400000, "feeAssetId": null, "timestamp": 1634308388154, "version": 2, "chainId": 84, "sender": "3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg", "senderPublicKey": "6RxCbWeRD4VWkRJtcAR8HBRkrBbEzZWucSBL6YrSFQrE", "proofs": [ "zjyx8Fg5o9G7oRFwgNjxexPJKEfN7JXEDdBxi59TkWF2pC4eNYSiwEHNgUnitBQ93bpd7iKtd52BSys5cN91TeP" ], "script": "base64:AAIFAAAAAAAAAB4IAhIECgIIARIAEgQKAggBEgASBAoCAQgSBAoCAQgAAAAiAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5CQEAAAALdmFsdWVPckVsc2UAAAACCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQAAAAAAAAAAAAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkCAAAAAAEAAAAMZ2V0Qm9vbEJ5S2V5AAAAAQAAAANrZXkJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQbAAAAAgUAAAAEdGhpcwUAAAADa2V5BwEAAAAYZ2V0TnVtYmVyQnlBZGRyZXNzQW5kS2V5AAAAAgAAAAdhZGRyZXNzAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAAAdhZGRyZXNzBQAAAANrZXkAAAAAAAAAAAABAAAAGGdldFN0cmluZ0J5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9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEJAAJZAAAAAQkAAZEAAAACBQAAABBwdWJLZXlBZG1pbnNMaXN0AAAAAAAAAAABAAAAAAAAAAABAAAAAAAAAAAAAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIJAAJZAAAAAQkAAZEAAAACBQAAABBwdWJLZXlBZG1pbnNMaXN0AAAAAAAAAAACAAAAAAAAAAABAAAAAAAAAAAAAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAMJAAJZAAAAAQkAAZEAAAACBQAAABBwdWJLZXlBZG1pbnNMaXN0AAAAAAAAAAADAAAAAAAAAAACAAAAAAAAAAAACQAAZwAAAAIFAAAABWNvdW50AAAAAAAAAAADioSHjQ==", "height": 1747510, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BtqRat7zqcEVN4TbxMheQkMMncrG3sdEy3LnM8vnanzL Next: none Diff:
OldNewDifferences
1-{-# STDLIB_VERSION 4 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let neutrinoAssetId = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
4+func getNumberByKey (key) = valueOrElse(getInteger(this, key), 0)
55
6-let nsbtAssetId = base58'36mg8NZTaFRDygiVwb8uBnLR51hetJruUCZcxhaVcHj9'
76
8-let NeutrinoContractKey = base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg'
7+func getStringByKey (key) = valueOrElse(getString(this, key), "")
8+
9+
10+func getBoolByKey (key) = valueOrElse(getBoolean(this, key), false)
11+
12+
13+func getNumberByAddressAndKey (address,key) = valueOrElse(getInteger(addressFromStringValue(address), key), 0)
14+
15+
16+func getStringByAddressAndKey (address,key) = valueOrElse(getString(address, key), "")
17+
18+
19+let NeutrinoAssetIdKey = "neutrino_asset_id"
20+
21+let NeutrinoContractKey = "neutrino_contract"
22+
23+let BalanceKey = "rpd_balance"
24+
25+let ControlContractKey = "control_contract"
26+
27+let NsbtAssetIdKey = "bond_asset_id"
28+
29+let AdminsKey = "admins"
930
1031 let USDNTYPE = "USDN"
1132
1233 let NSBTTYPE = "NSBT"
1334
14-let BalanceKey = "rpd_balance"
15-
1635 func getUserBalanceKey (owner,assetId) = makeString([BalanceKey, assetId, owner], "_")
1736
1837
19-func getStringByKey (key) = valueOrElse(getString(this, key), "")
38+func getContractBalanceKey (assetId) = ((BalanceKey + "_") + assetId)
2039
2140
22-func getNumberByKey (key) = valueOrElse(getInteger(this, key), 0)
41+func getExpireProposalKey (hash) = (("proposal_expire" + "_") + hash)
2342
2443
25-func getRewardConfigInitialShare (owner) = (owner + "_initialShare")
44+func getOwnerProposalKey (hash) = (("proposal_owner" + "_") + hash)
45+
46+
47+func getArgumentsProposalKey (hash) = (("proposal_arguments" + "_") + hash)
48+
49+
50+func getVoteKey (owner,hash) = (((("proposal_vote" + "_") + owner) + "_") + hash)
51+
52+
53+func convertJsonArrayToList (jsonArray) = split(jsonArray, ",")
54+
55+
56+let neutrinoContract = addressFromStringValue(getStringByKey(NeutrinoContractKey))
57+
58+let controlContract = addressFromStringValue(getStringByAddressAndKey(neutrinoContract, ControlContractKey))
59+
60+let neutrinoAssetId = fromBase58String(getStringByAddressAndKey(neutrinoContract, NeutrinoAssetIdKey))
61+
62+let nsbtAssetIdStr = getStringByAddressAndKey(neutrinoContract, NsbtAssetIdKey)
63+
64+let nsbtAssetId = fromBase58String(nsbtAssetIdStr)
65+
66+func getContractBalance (assetId) = getNumberByKey(getContractBalanceKey(assetId))
67+
68+
69+func getUserBalance (owner,assetId) = getNumberByKey(getUserBalanceKey(owner, assetId))
2670
2771
2872 func getRewardsConfigKey (owner,share,receiver) = makeString(["stakingconfig", owner, toString(share), receiver], "_")
2973
3074
31-func getUserBalance (owner,assetId) = getNumberByKey(getUserBalanceKey(owner, assetId))
75+func getCurrentRewardsConfigKey (owner) = ("stakingconfig_current_" + owner)
76+
77+
78+func getRewardsConfigStartKey (configKey,isStart) = (configKey + (if (isStart)
79+ then "_start"
80+ else "_end"))
81+
82+
83+func getRewardConfigInitialShare (owner) = (owner + "_initialShare")
3284
3385
3486 func getValidStakingAssetOrFail (stakingType,assetId) = if (if ((stakingType == USDNTYPE))
4496 else false)
4597 then throw(("unsupported staking type " + stakingType))
4698 else assetId
47-
48-
49-func getCurrentRewardsConfigKey (owner) = ("stakingconfig_current_" + owner)
50-
51-
52-func getRewardsConfigStartKey (configKey,isStart) = (configKey + (if (isStart)
53- then "_start"
54- else "_end"))
55-
56-
57-func getContractBalanceKey (assetId) = ((BalanceKey + "_") + assetId)
58-
59-
60-func getContractBalance (assetId) = getNumberByKey(getContractBalanceKey(assetId))
61-
62-
63-func internalUnlock (stakingType,i,unlockAmount,assetIdParam) = {
64- let account = toString(i.caller)
65- let assetId = getValidStakingAssetOrFail(stakingType, fromBase58String(assetIdParam))
66- let assetIdString = toBase58String(assetId)
67- let balance = (getUserBalance(account, assetIdString) - unlockAmount)
68- if ((0 > balance))
69- then throw("invalid amount")
70- else [IntegerEntry(getContractBalanceKey(assetIdString), (getContractBalance(assetIdString) - unlockAmount)), IntegerEntry(getUserBalanceKey(account, assetIdString), balance), ScriptTransfer(addressFromStringValue(account), unlockAmount, assetId)]
71- }
7299
73100
74101 func internalLockNeutrino (stakingType,i,receiver,share) = {
112139 let start = if (isNewConfig)
113140 then height
114141 else getNumberByKey(getRewardsConfigStartKey(newCurrentConfig, true))
115-[IntegerEntry(getContractBalanceKey(assetIdString), (getContractBalance(assetIdString) + pmt.amount)), IntegerEntry(getUserBalanceKey(account, assetIdString), (getUserBalance(account, assetIdString) + pmt.amount)), IntegerEntry(getRewardsConfigStartKey(currentConfig, false), end), IntegerEntry(getRewardsConfigStartKey(newCurrentConfig, true), start), IntegerEntry(getRewardConfigInitialShare(account), correctInitialShare), StringEntry(getCurrentRewardsConfigKey(account), newCurrentConfig)]
142+ $Tuple2([IntegerEntry(getContractBalanceKey(assetIdString), (getContractBalance(assetIdString) + pmt.amount)), IntegerEntry(getUserBalanceKey(account, assetIdString), (getUserBalance(account, assetIdString) + pmt.amount)), IntegerEntry(getRewardsConfigStartKey(currentConfig, false), end), IntegerEntry(getRewardsConfigStartKey(newCurrentConfig, true), start), IntegerEntry(getRewardConfigInitialShare(account), correctInitialShare), StringEntry(getCurrentRewardsConfigKey(account), newCurrentConfig)], unit)
116143 }
117144 }
118145
119146
147+func internalUnlock (stakingType,i,unlockAmount,assetIdParam) = {
148+ let account = toString(i.caller)
149+ let assetId = getValidStakingAssetOrFail(stakingType, fromBase58String(assetIdParam))
150+ let assetIdString = toBase58String(assetId)
151+ let balance = (getUserBalance(account, assetIdString) - unlockAmount)
152+ if ((0 > balance))
153+ then throw("invalid amount")
154+ else $Tuple2([IntegerEntry(getContractBalanceKey(assetIdString), (getContractBalance(assetIdString) - unlockAmount)), IntegerEntry(getUserBalanceKey(account, assetIdString), balance), ScriptTransfer(addressFromStringValue(account), unlockAmount, assetId)], unit)
155+ }
156+
157+
158+@Callable(i)
159+func lockNeutrinoSP (receiver,share) = internalLockNeutrino(USDNTYPE, i, receiver, share)
160+
161+
162+
120163 @Callable(i)
121164 func lockNeutrino () = internalLockNeutrino(USDNTYPE, i, toString(i.caller), 100)
165+
166+
167+
168+@Callable(i)
169+func lockNsbtSP (receiver,share) = internalLockNeutrino(NSBTTYPE, i, receiver, share)
122170
123171
124172
137185
138186
139187 @Verifier(tx)
140-func verify () = match tx {
141- case _ =>
142- sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
143-}
188+func verify () = {
189+ let pubKeyAdminsList = ["GFmKZ2naZFRoCvNbwKAQVGmLb1uBeWGDgFabdGBuZiuy", "GmJXRyhRA79g8yUGgKBAVdnFfQFDMjQG98b1MmLDh5kk", "CFhbV6h41hVjbGHudGtS3fYUv7QAKRxFQzKNtx4B5PqP", "Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK"]
190+ let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0])))
191+ then 1
192+ else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1])))
193+ then 1
194+ else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2])))
195+ then 1
196+ else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3])))
197+ then 2
198+ else 0))
199+ (count >= 3)
200+ }
144201
Full:
OldNewDifferences
1-{-# STDLIB_VERSION 4 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let neutrinoAssetId = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
4+func getNumberByKey (key) = valueOrElse(getInteger(this, key), 0)
55
6-let nsbtAssetId = base58'36mg8NZTaFRDygiVwb8uBnLR51hetJruUCZcxhaVcHj9'
76
8-let NeutrinoContractKey = base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg'
7+func getStringByKey (key) = valueOrElse(getString(this, key), "")
8+
9+
10+func getBoolByKey (key) = valueOrElse(getBoolean(this, key), false)
11+
12+
13+func getNumberByAddressAndKey (address,key) = valueOrElse(getInteger(addressFromStringValue(address), key), 0)
14+
15+
16+func getStringByAddressAndKey (address,key) = valueOrElse(getString(address, key), "")
17+
18+
19+let NeutrinoAssetIdKey = "neutrino_asset_id"
20+
21+let NeutrinoContractKey = "neutrino_contract"
22+
23+let BalanceKey = "rpd_balance"
24+
25+let ControlContractKey = "control_contract"
26+
27+let NsbtAssetIdKey = "bond_asset_id"
28+
29+let AdminsKey = "admins"
930
1031 let USDNTYPE = "USDN"
1132
1233 let NSBTTYPE = "NSBT"
1334
14-let BalanceKey = "rpd_balance"
15-
1635 func getUserBalanceKey (owner,assetId) = makeString([BalanceKey, assetId, owner], "_")
1736
1837
19-func getStringByKey (key) = valueOrElse(getString(this, key), "")
38+func getContractBalanceKey (assetId) = ((BalanceKey + "_") + assetId)
2039
2140
22-func getNumberByKey (key) = valueOrElse(getInteger(this, key), 0)
41+func getExpireProposalKey (hash) = (("proposal_expire" + "_") + hash)
2342
2443
25-func getRewardConfigInitialShare (owner) = (owner + "_initialShare")
44+func getOwnerProposalKey (hash) = (("proposal_owner" + "_") + hash)
45+
46+
47+func getArgumentsProposalKey (hash) = (("proposal_arguments" + "_") + hash)
48+
49+
50+func getVoteKey (owner,hash) = (((("proposal_vote" + "_") + owner) + "_") + hash)
51+
52+
53+func convertJsonArrayToList (jsonArray) = split(jsonArray, ",")
54+
55+
56+let neutrinoContract = addressFromStringValue(getStringByKey(NeutrinoContractKey))
57+
58+let controlContract = addressFromStringValue(getStringByAddressAndKey(neutrinoContract, ControlContractKey))
59+
60+let neutrinoAssetId = fromBase58String(getStringByAddressAndKey(neutrinoContract, NeutrinoAssetIdKey))
61+
62+let nsbtAssetIdStr = getStringByAddressAndKey(neutrinoContract, NsbtAssetIdKey)
63+
64+let nsbtAssetId = fromBase58String(nsbtAssetIdStr)
65+
66+func getContractBalance (assetId) = getNumberByKey(getContractBalanceKey(assetId))
67+
68+
69+func getUserBalance (owner,assetId) = getNumberByKey(getUserBalanceKey(owner, assetId))
2670
2771
2872 func getRewardsConfigKey (owner,share,receiver) = makeString(["stakingconfig", owner, toString(share), receiver], "_")
2973
3074
31-func getUserBalance (owner,assetId) = getNumberByKey(getUserBalanceKey(owner, assetId))
75+func getCurrentRewardsConfigKey (owner) = ("stakingconfig_current_" + owner)
76+
77+
78+func getRewardsConfigStartKey (configKey,isStart) = (configKey + (if (isStart)
79+ then "_start"
80+ else "_end"))
81+
82+
83+func getRewardConfigInitialShare (owner) = (owner + "_initialShare")
3284
3385
3486 func getValidStakingAssetOrFail (stakingType,assetId) = if (if ((stakingType == USDNTYPE))
3587 then (assetId != neutrinoAssetId)
3688 else false)
3789 then throw("can use USDN only")
3890 else if (if ((stakingType == NSBTTYPE))
3991 then (assetId != nsbtAssetId)
4092 else false)
4193 then throw("can use NSBT only")
4294 else if (if ((stakingType != USDNTYPE))
4395 then (stakingType != NSBTTYPE)
4496 else false)
4597 then throw(("unsupported staking type " + stakingType))
4698 else assetId
47-
48-
49-func getCurrentRewardsConfigKey (owner) = ("stakingconfig_current_" + owner)
50-
51-
52-func getRewardsConfigStartKey (configKey,isStart) = (configKey + (if (isStart)
53- then "_start"
54- else "_end"))
55-
56-
57-func getContractBalanceKey (assetId) = ((BalanceKey + "_") + assetId)
58-
59-
60-func getContractBalance (assetId) = getNumberByKey(getContractBalanceKey(assetId))
61-
62-
63-func internalUnlock (stakingType,i,unlockAmount,assetIdParam) = {
64- let account = toString(i.caller)
65- let assetId = getValidStakingAssetOrFail(stakingType, fromBase58String(assetIdParam))
66- let assetIdString = toBase58String(assetId)
67- let balance = (getUserBalance(account, assetIdString) - unlockAmount)
68- if ((0 > balance))
69- then throw("invalid amount")
70- else [IntegerEntry(getContractBalanceKey(assetIdString), (getContractBalance(assetIdString) - unlockAmount)), IntegerEntry(getUserBalanceKey(account, assetIdString), balance), ScriptTransfer(addressFromStringValue(account), unlockAmount, assetId)]
71- }
7299
73100
74101 func internalLockNeutrino (stakingType,i,receiver,share) = {
75102 let pmt = value(i.payments[0])
76103 let assetId = getValidStakingAssetOrFail(stakingType, value(pmt.assetId))
77104 if (!(isDefined(addressFromString(receiver))))
78105 then throw(("Invalid address format " + receiver))
79106 else if ((share > 100))
80107 then throw("staking rewards share cannot be higher than 100%")
81108 else if ((1 > share))
82109 then throw("staking rewards share cannot be lower than 1%")
83110 else {
84111 let account = toString(i.caller)
85112 let assetIdString = toBase58String(assetId)
86113 let currentConfig = getStringByKey(getCurrentRewardsConfigKey(account))
87114 let correctData = if ((currentConfig != ""))
88115 then {
89116 let currentConfigData = split(currentConfig, "_")
90117 let currShare = parseIntValue(currentConfigData[2])
91118 let currReceiver = currentConfigData[3]
92119 let notMigratedInitialShare = getNumberByKey(getRewardConfigInitialShare(account))
93120 let actualInitialShare = if ((notMigratedInitialShare == 0))
94121 then currShare
95122 else notMigratedInitialShare
96123 let newShare = if (if ((actualInitialShare > share))
97124 then true
98125 else (currReceiver != receiver))
99126 then actualInitialShare
100127 else share
101128 [toString(actualInitialShare), toString(newShare), currReceiver]
102129 }
103130 else [toString(share), toString(share), receiver]
104131 let correctInitialShare = parseIntValue(correctData[0])
105132 let correctShare = parseIntValue(correctData[1])
106133 let correctReceiver = correctData[2]
107134 let newCurrentConfig = getRewardsConfigKey(account, correctShare, correctReceiver)
108135 let isNewConfig = !((currentConfig == newCurrentConfig))
109136 let end = if (isNewConfig)
110137 then height
111138 else 0
112139 let start = if (isNewConfig)
113140 then height
114141 else getNumberByKey(getRewardsConfigStartKey(newCurrentConfig, true))
115-[IntegerEntry(getContractBalanceKey(assetIdString), (getContractBalance(assetIdString) + pmt.amount)), IntegerEntry(getUserBalanceKey(account, assetIdString), (getUserBalance(account, assetIdString) + pmt.amount)), IntegerEntry(getRewardsConfigStartKey(currentConfig, false), end), IntegerEntry(getRewardsConfigStartKey(newCurrentConfig, true), start), IntegerEntry(getRewardConfigInitialShare(account), correctInitialShare), StringEntry(getCurrentRewardsConfigKey(account), newCurrentConfig)]
142+ $Tuple2([IntegerEntry(getContractBalanceKey(assetIdString), (getContractBalance(assetIdString) + pmt.amount)), IntegerEntry(getUserBalanceKey(account, assetIdString), (getUserBalance(account, assetIdString) + pmt.amount)), IntegerEntry(getRewardsConfigStartKey(currentConfig, false), end), IntegerEntry(getRewardsConfigStartKey(newCurrentConfig, true), start), IntegerEntry(getRewardConfigInitialShare(account), correctInitialShare), StringEntry(getCurrentRewardsConfigKey(account), newCurrentConfig)], unit)
116143 }
117144 }
118145
119146
147+func internalUnlock (stakingType,i,unlockAmount,assetIdParam) = {
148+ let account = toString(i.caller)
149+ let assetId = getValidStakingAssetOrFail(stakingType, fromBase58String(assetIdParam))
150+ let assetIdString = toBase58String(assetId)
151+ let balance = (getUserBalance(account, assetIdString) - unlockAmount)
152+ if ((0 > balance))
153+ then throw("invalid amount")
154+ else $Tuple2([IntegerEntry(getContractBalanceKey(assetIdString), (getContractBalance(assetIdString) - unlockAmount)), IntegerEntry(getUserBalanceKey(account, assetIdString), balance), ScriptTransfer(addressFromStringValue(account), unlockAmount, assetId)], unit)
155+ }
156+
157+
158+@Callable(i)
159+func lockNeutrinoSP (receiver,share) = internalLockNeutrino(USDNTYPE, i, receiver, share)
160+
161+
162+
120163 @Callable(i)
121164 func lockNeutrino () = internalLockNeutrino(USDNTYPE, i, toString(i.caller), 100)
165+
166+
167+
168+@Callable(i)
169+func lockNsbtSP (receiver,share) = internalLockNeutrino(NSBTTYPE, i, receiver, share)
122170
123171
124172
125173 @Callable(i)
126174 func lockNsbt () = internalLockNeutrino(NSBTTYPE, i, toString(i.caller), 100)
127175
128176
129177
130178 @Callable(i)
131179 func unlockNeutrino (unlockAmount,assetIdString) = internalUnlock(USDNTYPE, i, unlockAmount, assetIdString)
132180
133181
134182
135183 @Callable(i)
136184 func unlockNsbt (unlockAmount,assetIdString) = internalUnlock(NSBTTYPE, i, unlockAmount, assetIdString)
137185
138186
139187 @Verifier(tx)
140-func verify () = match tx {
141- case _ =>
142- sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
143-}
188+func verify () = {
189+ let pubKeyAdminsList = ["GFmKZ2naZFRoCvNbwKAQVGmLb1uBeWGDgFabdGBuZiuy", "GmJXRyhRA79g8yUGgKBAVdnFfQFDMjQG98b1MmLDh5kk", "CFhbV6h41hVjbGHudGtS3fYUv7QAKRxFQzKNtx4B5PqP", "Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK"]
190+ let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0])))
191+ then 1
192+ else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1])))
193+ then 1
194+ else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2])))
195+ then 1
196+ else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3])))
197+ then 2
198+ else 0))
199+ (count >= 3)
200+ }
144201

github/deemru/w8io/026f985 
35.53 ms