tx · BRZkBjRwoZ5cScvpEWR5kJSB29WQMbRuF3sxz7wUSWWQ 3NARdCrmQCEs9RNtwCSRc6JCoThQGyXjrAj: -0.01400000 Waves 2021.11.09 01:18 [1782627] smart account 3NARdCrmQCEs9RNtwCSRc6JCoThQGyXjrAj > SELF 0.00000000 Waves
{ "type": 13, "id": "BRZkBjRwoZ5cScvpEWR5kJSB29WQMbRuF3sxz7wUSWWQ", "fee": 1400000, "feeAssetId": null, "timestamp": 1636409935979, "version": 2, "chainId": 84, "sender": "3NARdCrmQCEs9RNtwCSRc6JCoThQGyXjrAj", "senderPublicKey": "C246qxhuyo9DBk1pjMzEQSVAWmiqYupG2swGkxTeAvLV", "proofs": [ "4orMNqXiFZGbtqbgpT2LfTAGm1UzMx3yGonAndk56CZsQVZTmz5E9x841FX6xwAFkCY4e5e9sCiEjxCncPUZHEs6" ], "script": "base64:AAIEAAAAAAAAAA8IAhIAEgASAwoBARIAEgAAAAAHAAAAAApBNEFBc3NldElEAQAAACD+xBrh3u/naSJ9Eujvd+1d33EPvCCH0lpodP3xbghYNwAAAAALVVNEVEFzc2V0SUQBAAAAIAhlhLcP8IpqGvPiaOguCJAkw9MnWAPNLPYuXgvf2hWkAAAAAAtDT0RFQXNzZXRJRAEAAAAg0ARhGkWctBlceTsA9ujm1aKPVhDZwbdH9Q3XZNNMfvcAAAAACkZlZUFkZHJlc3MBAAAAIFKD2aCL15CSOzPl4EBEchtzseD8Xh+YHSzFnrJIx+IgAAAAAApkZXZBZGRyZXNzAQAAACBxPzntQa7CXqUpHrNREofekMqtlOVQyxdZBdjFyNZ4GwAAAAAMYWRtaW5QdWJLZXkxAQAAACA+yiT1G2Titjyu3xV7oQeDd58TcUoK9vchtoj7Ba3wdwAAAAAMYWRtaW5QdWJLZXkyAQAAACCjtaSeUVhAbk0T+akFnLGoDh+X4aR50o/42ilEuU4EFgAAAAUAAAABaQEAAAAISXNzdWVBNEEAAAAABAAAAANwbXQJAQAAAAV2YWx1ZQAAAAEJA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AADGFkbWluUHViS2V5MQAAAAAAAAAAAQAAAAAAAAAAAAQAAAASYWRtaW5QdWJLZXkyU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAADGFkbWluUHViS2V5MgAAAAAAAAAAAQAAAAAAAAAAAAkAAGcAAAACCQAAZAAAAAIFAAAAEmFkbWluUHViS2V5MVNpZ25lZAUAAAASYWRtaW5QdWJLZXkyU2lnbmVkAAAAAAAAAAAC8lM/PQ==", "height": 1782627, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GfUtvE5hWSAh69wnXDwpkuAkhot97LpwMXLNM6mFpZXL Next: none Diff:
Old | New | Differences | |
---|---|---|---|
10 | 10 | let FeeAddress = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR' | |
11 | 11 | ||
12 | 12 | let devAddress = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene' | |
13 | + | ||
14 | + | let adminPubKey1 = base58'5E74BDoH1TWjnaLoRTzgV8r2eMJvyyJr4dCAcRHXonaS' | |
15 | + | ||
16 | + | let adminPubKey2 = base58'C246qxhuyo9DBk1pjMzEQSVAWmiqYupG2swGkxTeAvLV' | |
13 | 17 | ||
14 | 18 | @Callable(i) | |
15 | 19 | func IssueA4A () = { | |
164 | 168 | ||
165 | 169 | ||
166 | 170 | @Verifier(tx) | |
167 | - | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
171 | + | func verify () = match tx { | |
172 | + | case _ => | |
173 | + | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
174 | + | then 1 | |
175 | + | else 0 | |
176 | + | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
177 | + | then 1 | |
178 | + | else 0 | |
179 | + | ((adminPubKey1Signed + adminPubKey2Signed) >= 2) | |
180 | + | } | |
168 | 181 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let A4AAssetID = base58'J9VzWPfRSQyCbEv5oWpxLSihigbpbJsGBHJZV9Ct8ook' | |
5 | 5 | ||
6 | 6 | let USDTAssetID = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H' | |
7 | 7 | ||
8 | 8 | let CODEAssetID = base58'F11g74azdw3SZN83raygbu9useimfTwSQ7HmTLggAq26' | |
9 | 9 | ||
10 | 10 | let FeeAddress = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR' | |
11 | 11 | ||
12 | 12 | let devAddress = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene' | |
13 | + | ||
14 | + | let adminPubKey1 = base58'5E74BDoH1TWjnaLoRTzgV8r2eMJvyyJr4dCAcRHXonaS' | |
15 | + | ||
16 | + | let adminPubKey2 = base58'C246qxhuyo9DBk1pjMzEQSVAWmiqYupG2swGkxTeAvLV' | |
13 | 17 | ||
14 | 18 | @Callable(i) | |
15 | 19 | func IssueA4A () = { | |
16 | 20 | let pmt = value(i.payments[0]) | |
17 | 21 | let currentKey = toBase58String(i.caller.bytes) | |
18 | 22 | let PricePerA4A = getIntegerValue(this, "A4A/TN") | |
19 | 23 | let A4AHardCap = getIntegerValue(this, "A4AHardCap") | |
20 | 24 | let NewA4AToUser = fraction(100000, pmt.amount, PricePerA4A) | |
21 | 25 | let PreviousIssuedA4A = getIntegerValue(this, "Total_Issued_A4A:") | |
22 | 26 | let TotalIssuedA4A = (PreviousIssuedA4A + NewA4AToUser) | |
23 | 27 | let PendingMinting = (A4AHardCap - TotalIssuedA4A) | |
24 | 28 | let PreviousA4AReserveValue = getIntegerValue(this, "Total_A4A_Reserve_In_TN:") | |
25 | 29 | let A4AReserveValue = (PreviousA4AReserveValue + pmt.amount) | |
26 | 30 | let PreviousA4ABackupPrice = getIntegerValue(this, "A4A_Backup_Value_In_TN:") | |
27 | 31 | let A4ABackupPrice = fraction(100000, A4AReserveValue, TotalIssuedA4A) | |
28 | 32 | if (isDefined(pmt.assetId)) | |
29 | 33 | then throw("Incorrect asset attached, please attach TN.") | |
30 | 34 | else if ((5000000 > pmt.amount)) | |
31 | 35 | then throw("Please Attach minimum 0.05 TN To Issue A4A Asset.") | |
32 | 36 | else if ((TotalIssuedA4A > A4AHardCap)) | |
33 | 37 | then throw((((((("A4A Minting is about to reach the Hard Cap of " + toString(A4AHardCap)) + "/10^8 A4A. Please Reduce your Minting Order by ") + toString(PendingMinting)) + " or put ") + toString((A4AHardCap - PreviousIssuedA4A))) + "/10^8")) | |
34 | 38 | else [IntegerEntry("Total_Issued_A4A:", TotalIssuedA4A), IntegerEntry("Balance_Minting_A4A:", PendingMinting), IntegerEntry("Total_A4A_Reserve_In_TN:", A4AReserveValue), IntegerEntry("A4A_Backup_Value_In_TN:", A4ABackupPrice), StringEntry("message", "<h1>A4A Issued Successfully!</h1><br>"), Reissue(A4AAssetID, NewA4AToUser, true), ScriptTransfer(i.caller, ((NewA4AToUser * 990) / 1000), A4AAssetID), ScriptTransfer(addressFromPublicKey(FeeAddress), ((NewA4AToUser * 9) / 1000), A4AAssetID), ScriptTransfer(addressFromPublicKey(devAddress), ((NewA4AToUser * 1) / 1000), A4AAssetID)] | |
35 | 39 | } | |
36 | 40 | ||
37 | 41 | ||
38 | 42 | ||
39 | 43 | @Callable(i) | |
40 | 44 | func Liquidate () = { | |
41 | 45 | let currentKey = toBase58String(i.callerPublicKey) | |
42 | 46 | let pmt = value(i.payments[0]) | |
43 | 47 | let PreviousIssuedA4A = getIntegerValue(this, "Total_Issued_A4A:") | |
44 | 48 | let PreviousBurnedA4A = getIntegerValue(this, "Total_Burned_A4A:") | |
45 | 49 | let TotalIssuedA4A = (PreviousIssuedA4A - pmt.amount) | |
46 | 50 | let TotalBurnedA4A = (PreviousBurnedA4A + pmt.amount) | |
47 | 51 | let PreviousA4AReserveValue = getIntegerValue(this, "Total_A4A_Reserve_In_TN:") | |
48 | 52 | let PreviousA4ABackupPrice = getIntegerValue(this, "A4A_Backup_Value_In_TN:") | |
49 | 53 | let calculateburnvalue = fraction(PreviousA4ABackupPrice, pmt.amount, 100000) | |
50 | 54 | let A4AReserveValue = (PreviousA4AReserveValue - calculateburnvalue) | |
51 | 55 | let A4ABackupPrice = fraction(100000, A4AReserveValue, TotalIssuedA4A) | |
52 | 56 | if ((pmt.assetId != A4AAssetID)) | |
53 | 57 | then throw("Kindly Deposit Only 8hdsVCxPBVEmVUZyyX8Sd98Z9hU7Fny26W96sjKiTw8g (A4A).") | |
54 | 58 | else if ((100000 > pmt.amount)) | |
55 | 59 | then throw("Attach Amount must be greater than 0.001 A4A.") | |
56 | 60 | else [Burn(A4AAssetID, pmt.amount), IntegerEntry("Total_Issued_A4A:", TotalIssuedA4A), IntegerEntry("Total_Burned_A4A:", TotalBurnedA4A), IntegerEntry("Total_A4A_Reserve_In_TN:", A4AReserveValue), IntegerEntry("A4A_Backup_Value_In_TN:", A4ABackupPrice), StringEntry("message", "<h1>A4A Liquidated Successfully!</h1><br>"), ScriptTransfer(i.caller, ((calculateburnvalue * 990) / 1000), unit), ScriptTransfer(addressFromPublicKey(FeeAddress), ((calculateburnvalue * 9) / 1000), unit), ScriptTransfer(addressFromPublicKey(devAddress), ((calculateburnvalue * 1) / 1000), unit)] | |
57 | 61 | } | |
58 | 62 | ||
59 | 63 | ||
60 | 64 | ||
61 | 65 | @Callable(i) | |
62 | 66 | func Deposit (days) = { | |
63 | 67 | let pmt = if ((size(i.payments) == 1)) | |
64 | 68 | then i.payments[0] | |
65 | 69 | else throw("No payment attached, Please Attach A4A Token as per TIER in payment[1].") | |
66 | 70 | let currentKey = toBase58String(i.caller.bytes) | |
67 | 71 | let maximumlockdays = 90 | |
68 | 72 | let lockstatus = "LOCKED" | |
69 | 73 | let ULBT = 99999999999 | |
70 | 74 | let ULST = 599999999999 | |
71 | 75 | let ULGT = 1199999999999 | |
72 | 76 | let ULDT = 1200000000000 | |
73 | 77 | let oneday = 1440 | |
74 | 78 | let actualblocks = (oneday * days) | |
75 | 79 | let totallockblocks = (height + actualblocks) | |
76 | 80 | let Tier1 = 36000 | |
77 | 81 | let Tier1rewards = fraction(fraction((Tier1 * 2), pmt.amount, pow(10, 0, 8, 0, 0, UP)), actualblocks, pow(10, 0, 6, 0, 0, UP)) | |
78 | 82 | let Tier2rewards = fraction(fraction((Tier1 * 4), pmt.amount, pow(10, 0, 8, 0, 0, UP)), actualblocks, pow(10, 0, 6, 0, 0, UP)) | |
79 | 83 | let Tier3rewards = fraction(fraction((Tier1 * 8), pmt.amount, pow(10, 0, 8, 0, 0, UP)), actualblocks, pow(10, 0, 6, 0, 0, UP)) | |
80 | 84 | let StakedA4AAmount = match getInteger(this, "Staked_Amount") { | |
81 | 85 | case a: Int => | |
82 | 86 | a | |
83 | 87 | case _ => | |
84 | 88 | 0 | |
85 | 89 | } | |
86 | 90 | let newStakedA4AAmount = (StakedA4AAmount + pmt.amount) | |
87 | 91 | let currentA4AAmount = match getInteger(this, ("Deposit_Amount_Of_" + currentKey)) { | |
88 | 92 | case a: Int => | |
89 | 93 | a | |
90 | 94 | case _ => | |
91 | 95 | 0 | |
92 | 96 | } | |
93 | 97 | let newA4AAmount = (currentA4AAmount + pmt.amount) | |
94 | 98 | if ((pmt.assetId != A4AAssetID)) | |
95 | 99 | then throw((("Incorrect asset attached, please attach " + toBase58String(A4AAssetID)) + " only.")) | |
96 | 100 | else if ((6 >= days)) | |
97 | 101 | then throw("Choose Locking days in between 7 to 90.") | |
98 | 102 | else if ((days > maximumlockdays)) | |
99 | 103 | then throw("You Entered days greater than 90 please Enter no. of days in between 7 to 90.") | |
100 | 104 | else if ((7700000000 > pmt.amount)) | |
101 | 105 | then throw("Please Attach minimum 77 A4A To Achieve BRONZE TIER.") | |
102 | 106 | else if ((ULBT >= pmt.amount)) | |
103 | 107 | then [StringEntry(("Tier_Of_" + currentKey), "BRONZE"), IntegerEntry(("Deposit_height_Of_" + currentKey), height), IntegerEntry("Staked_Amount", newStakedA4AAmount), IntegerEntry(("Deposit_Amount_Of_" + currentKey), newA4AAmount), IntegerEntry(("Total_Lock_Blocks_Of_" + currentKey), totallockblocks), StringEntry(("Lock_Status_Of_" + currentKey), lockstatus), IntegerEntry(("Rewards_Of_" + currentKey), fraction(fraction(Tier1, pmt.amount, pow(10, 0, 8, 0, 0, UP)), actualblocks, pow(10, 0, 6, 0, 0, UP)))] | |
104 | 108 | else if ((ULST >= pmt.amount)) | |
105 | 109 | then [StringEntry(("Tier_Of_" + currentKey), "SILVER"), IntegerEntry(("Deposit_height_Of_" + currentKey), height), IntegerEntry("Staked_Amount", newStakedA4AAmount), IntegerEntry(("Deposit_Amount_Of_" + currentKey), newA4AAmount), IntegerEntry(("Total_Lock_Blocks_Of_" + currentKey), totallockblocks), StringEntry(("Lock_Status_Of_" + currentKey), lockstatus), IntegerEntry(("Rewards_Of_" + currentKey), Tier1rewards)] | |
106 | 110 | else if ((ULGT >= pmt.amount)) | |
107 | 111 | then [StringEntry(("Tier_Of_" + currentKey), "GOLD"), IntegerEntry(("Deposit_height_Of_" + currentKey), height), IntegerEntry("Staked_Amount", newStakedA4AAmount), IntegerEntry(("Deposit_Amount_Of_" + currentKey), newA4AAmount), IntegerEntry(("Total_Lock_Blocks_Of_" + currentKey), totallockblocks), StringEntry(("Lock_Status_Of_" + currentKey), lockstatus), IntegerEntry(("Rewards_Of_" + currentKey), Tier2rewards)] | |
108 | 112 | else if ((ULDT == pmt.amount)) | |
109 | 113 | then [StringEntry(("Tier_Of_" + currentKey), "DIAMOND"), IntegerEntry(("Deposit_height_Of_" + currentKey), height), IntegerEntry("Staked_Amount", newStakedA4AAmount), IntegerEntry(("Deposit_Amount_Of_" + currentKey), newA4AAmount), IntegerEntry(("Total_Lock_Blocks_Of_" + currentKey), totallockblocks), StringEntry(("Lock_Status_Of_" + currentKey), lockstatus), IntegerEntry(("Rewards_Of_" + currentKey), Tier3rewards)] | |
110 | 114 | else throw("Please Choose a Range Between 77-12000.") | |
111 | 115 | } | |
112 | 116 | ||
113 | 117 | ||
114 | 118 | ||
115 | 119 | @Callable(i) | |
116 | 120 | func Withdraw () = { | |
117 | 121 | let currentKey = toBase58String(i.caller.bytes) | |
118 | 122 | let checkdepositvalue = getIntegerValue(this, ("Deposit_Amount_Of_" + currentKey)) | |
119 | 123 | let checkstakedvalue = getIntegerValue(this, "Staked_Amount") | |
120 | 124 | let newstakedvalue = (checkstakedvalue - checkdepositvalue) | |
121 | 125 | let check90Dgap = (getIntegerValue(this, ("Total_Lock_Blocks_Of_" + currentKey)) - getIntegerValue(this, ("Deposit_height_Of_" + currentKey))) | |
122 | 126 | let fetchRewardData = getIntegerValue(this, "Total_USDT_Claimed:") | |
123 | 127 | let totalrewardclaimed = (fetchRewardData + getIntegerValue(this, ("Rewards_Of_" + currentKey))) | |
124 | 128 | if ((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + currentKey)) > height)) | |
125 | 129 | then throw(((("Your " + toString(getIntegerValue(this, ("Deposit_Amount_Of_" + currentKey)))) + " A4A are Under Lock. Consider last 8 digits as value after Decimals. Token will be Unlocked after ") + toString((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + currentKey)) - height)))) | |
126 | 130 | else if ((checkdepositvalue == 0)) | |
127 | 131 | then throw("You Have Already Withdraw your Amount.") | |
128 | 132 | else if (if ((1200000000000 > checkdepositvalue)) | |
129 | 133 | then (check90Dgap == 129600) | |
130 | 134 | else false) | |
131 | 135 | then [ScriptTransfer(i.caller, getIntegerValue(this, ("Deposit_Amount_Of_" + currentKey)), A4AAssetID), ScriptTransfer(i.caller, getIntegerValue(this, ("Rewards_Of_" + currentKey)), USDTAssetID), ScriptTransfer(i.caller, ((checkdepositvalue * 3) / 1000), CODEAssetID), StringEntry(("Tier_Of_" + currentKey), "NONE"), IntegerEntry(("Deposit_height_Of_" + currentKey), 0), IntegerEntry("Staked_Amount", newstakedvalue), IntegerEntry(("Deposit_Amount_Of_" + currentKey), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + currentKey), 0), StringEntry(("Lock_Status_Of_" + currentKey), "UNLOCK"), IntegerEntry(("Rewards_Of_" + currentKey), 0), IntegerEntry("Total_USDT_Claimed:", totalrewardclaimed)] | |
132 | 136 | else if (if ((checkdepositvalue > 1200000000000)) | |
133 | 137 | then (check90Dgap == 129600) | |
134 | 138 | else false) | |
135 | 139 | then [ScriptTransfer(i.caller, getIntegerValue(this, ("Deposit_Amount_Of_" + currentKey)), A4AAssetID), ScriptTransfer(i.caller, getIntegerValue(this, ("Rewards_Of_" + currentKey)), USDTAssetID), ScriptTransfer(i.caller, ((1200000000000 * 3) / 1000), CODEAssetID), StringEntry(("Tier_Of_" + currentKey), "NONE"), IntegerEntry(("Deposit_height_Of_" + currentKey), 0), IntegerEntry("Staked_Amount", newstakedvalue), IntegerEntry(("Deposit_Amount_Of_" + currentKey), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + currentKey), 0), StringEntry(("Lock_Status_Of_" + currentKey), "UNLOCK"), IntegerEntry(("Rewards_Of_" + currentKey), 0), IntegerEntry("Total_USDT_Claimed:", totalrewardclaimed)] | |
136 | 140 | else [ScriptTransfer(i.caller, getIntegerValue(this, ("Deposit_Amount_Of_" + currentKey)), A4AAssetID), ScriptTransfer(i.caller, getIntegerValue(this, ("Rewards_Of_" + currentKey)), USDTAssetID), StringEntry(("Tier_Of_" + currentKey), "NONE"), IntegerEntry(("Deposit_height_Of_" + currentKey), 0), IntegerEntry("Staked_Amount", newstakedvalue), IntegerEntry(("Deposit_Amount_Of_" + currentKey), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + currentKey), 0), StringEntry(("Lock_Status_Of_" + currentKey), "UNLOCK"), IntegerEntry(("Rewards_Of_" + currentKey), 0), IntegerEntry("Total_USDT_Claimed:", totalrewardclaimed)] | |
137 | 141 | } | |
138 | 142 | ||
139 | 143 | ||
140 | 144 | ||
141 | 145 | @Callable(i) | |
142 | 146 | func DepositUSDT () = { | |
143 | 147 | let pmt = if ((size(i.payments) == 1)) | |
144 | 148 | then i.payments[0] | |
145 | 149 | else throw("No payment attached, Please Attach USDT Token in payment[1].") | |
146 | 150 | let calleraddress = toBase58String(i.caller.bytes) | |
147 | 151 | let USDTdepositor = getStringValue(this, "Funding_Address") | |
148 | 152 | let fetcholdUSDTbal = getIntegerValue(this, "USDT_Balance") | |
149 | 153 | let oldUSDTbal = match getInteger(this, "USDT_Balance") { | |
150 | 154 | case a: Int => | |
151 | 155 | a | |
152 | 156 | case _ => | |
153 | 157 | 0 | |
154 | 158 | } | |
155 | 159 | let newUSDTbal = (oldUSDTbal + pmt.amount) | |
156 | 160 | if ((USDTdepositor != calleraddress)) | |
157 | 161 | then throw((("I know You are not An Admin. Only " + USDTdepositor) + " has rights to add USDT Funds.")) | |
158 | 162 | else if ((pmt.assetId != USDTAssetID)) | |
159 | 163 | then throw((("Kindly Deposit Only USDT " + toBase58String(USDTAssetID)) + " AssetID.")) | |
160 | 164 | else if ((1000000 > pmt.amount)) | |
161 | 165 | then throw("Attach minimum 1 USDT atleast For Payment.") | |
162 | 166 | else [IntegerEntry("USDT_Balance", newUSDTbal)] | |
163 | 167 | } | |
164 | 168 | ||
165 | 169 | ||
166 | 170 | @Verifier(tx) | |
167 | - | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
171 | + | func verify () = match tx { | |
172 | + | case _ => | |
173 | + | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
174 | + | then 1 | |
175 | + | else 0 | |
176 | + | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
177 | + | then 1 | |
178 | + | else 0 | |
179 | + | ((adminPubKey1Signed + adminPubKey2Signed) >= 2) | |
180 | + | } | |
168 | 181 |
github/deemru/w8io/026f985 38.00 ms ◑