tx · BkcwhRGszZj1UQSZxT8maECjXwz4j5whpkaRS36Pfq2u 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw: -0.01000000 Waves 2022.06.09 20:57 [2089172] smart account 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw > SELF 0.00000000 Waves
{ "type": 13, "id": "BkcwhRGszZj1UQSZxT8maECjXwz4j5whpkaRS36Pfq2u", "fee": 1000000, "feeAssetId": null, "timestamp": 1654797466073, "version": 2, "chainId": 84, "sender": "3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw", "senderPublicKey": "GTKqLSK6nuFkRdebB5SmTwTU2DnTeLMvhymCFfT2CxX2", "proofs": [ "3Hzb3rKz9uWk9KWUy1efdwJUrggZ1Ukx2zzQozcu5FvQ4F2iLb7rK7u2AWgspa1J8ZZdxMQywrds5pv2qmKVboQB" ], "script": "base64:AAIFAAAAAAAAABMIAhIAEgASAwoBCBIAEgASABIAAAAAFgAAAAAESEFTSAEAAAAgmSXATeL679tzjy9/h38GdVeEwua5fh4H7zVBVc9zfqsAAAAACEtyb3NzQ2FyAQAAACA17Ai4nx+XQvdoMhd97kphQjilBs89yl0u1OKQBmiyuwAAAAAGVG93aW5nAQAAACAvNWf0XFc4QsdFX00ztYedHPzcA/SLYWxdhT+TFvjiSgAAAAAHVHlyZUFpcgEAAAAgS+6FRyOzyfCWm0X7cwnN0w7jM9BjB9cgVohQrZ6ugSAAAAAABEZ1ZWwBAAAAIIBmr5cPW4W2Mn2kTjOXd4m7RCu5rcRU8KqQ74wybKbVAAAAAAlDYXJVbmxvY2sBAAAAICTBg6jSibrpjtUIUVOhSWIiwt9Kttlqz6DgBMDPx7moAAAAAAhkQXBwRmVlcwEAAAAaAVeaawGX6Z7YZjatmTG8LOOB7ZemRJhtvIsAAAAACUFkbWluZEFwcAEAAAAaAVfQQ0LiHIS+m5qGvN94ympfzgYhqGRqEA4AAAAACU1pbkFtb3VudAAAAAAAAAACvAAAAAAOS3Jvc3NDYXJ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WUFAAAAA0RheQkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAkWW91IGNhbm5vdCBjbGFpbSB0aGUgcmV3YXJkIGJlZm9yZTogCQABpAAAAAEJAABpAAAAAgkAAGUAAAACBQAAAAZoZWlnaHQFAAAAF0xhc3RDYXJVbmxvY2tCbG9ja1ZhbHVlBQAAAANEYXkCAAAABSBkYXlzCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwIAAAATX0xhc3RDYXJVbmxvY2tCbG9jawUAAAAGaGVpZ2h0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgkAAGgAAAACBQAAAA9DYXJVbmxvY2tSZXdhcmQAAAAAAAX14QAFAAAACUNhclVubG9jawUAAAADbmlsAAAAAG2PKDE=", "height": 2089172, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7MyNfWvTthGaMoHkBeyWkUzM4NSpAVGzu5HdCybpZRax Next: PSCavEapiEhFsqjfh9A7MWyFp69BzGP7aLXEsEXxF4R Diff:
Old | New | Differences | |
---|---|---|---|
6 | 6 | let KrossCar = base58'4dVMkKtzaWuHC21kmxBBUwKQ5LGayLZLV9snpkJxsGeW' | |
7 | 7 | ||
8 | 8 | let Towing = base58'4BHPskP7pBoXLD7U8nk54CstqbsqRvuWr3SDP8uMrz5w' | |
9 | + | ||
10 | + | let TyreAir = base58'67QXX3ztyyTEP2jqQ5XwmmuV3L9dmtXpWbTxf9Y81gpo' | |
11 | + | ||
12 | + | let Fuel = base58'9eE15BVcRhp1XJBoYQUkxvktmq8tC3woRBUYyNymepZr' | |
13 | + | ||
14 | + | let CarUnlock = base58'3UUpggubgyFEJWG62MbMsJsZMaR8aLaJUWJmKfL5UVuR' | |
9 | 15 | ||
10 | 16 | let dAppFees = base58'3PG1NyiC2rdgX46jb8c5zPGuEAzWXhr4L2W' | |
11 | 17 | ||
17 | 23 | ||
18 | 24 | let TowingReward = 1 | |
19 | 25 | ||
26 | + | let TyreAirReward = 1 | |
27 | + | ||
28 | + | let FuelReward = 1 | |
29 | + | ||
30 | + | let CarUnlockReward = 1 | |
31 | + | ||
20 | 32 | let ReferreTip = 1 | |
21 | 33 | ||
22 | 34 | let minJoinWeeks = 8 | |
23 | 35 | ||
24 | 36 | let TimeTowing = 2 | |
37 | + | ||
38 | + | let TimeTyreAir = 4 | |
39 | + | ||
40 | + | let TimeFuel = 2 | |
41 | + | ||
42 | + | let TimeCarUnlock = 6 | |
25 | 43 | ||
26 | 44 | let Week = 10 | |
27 | 45 | ||
117 | 135 | } | |
118 | 136 | ||
119 | 137 | ||
138 | + | ||
139 | + | @Callable(i) | |
140 | + | func RequestTyreAir () = { | |
141 | + | let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit") | |
142 | + | let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock") | |
143 | + | let LastTyreAirBlock = (toBase58String(i.caller.bytes) + "_LastTyreAirBlock") | |
144 | + | let amount = match getInteger(this, UserDeposit) { | |
145 | + | case a: Int => | |
146 | + | a | |
147 | + | case _ => | |
148 | + | 0 | |
149 | + | } | |
150 | + | let UserMaturityValue = match getInteger(this, UserMaturity) { | |
151 | + | case a: Int => | |
152 | + | a | |
153 | + | case _ => | |
154 | + | 0 | |
155 | + | } | |
156 | + | let LastTyreAirBlockValue = match getInteger(this, LastTyreAirBlock) { | |
157 | + | case a: Int => | |
158 | + | a | |
159 | + | case _ => | |
160 | + | 0 | |
161 | + | } | |
162 | + | if (((MinAmount * 100000000) > ((amount * (height - UserMaturityValue)) / Week))) | |
163 | + | then throw(("You should hav deposited at least: " + toString((MinAmount * 100000000)))) | |
164 | + | else if (((minJoinWeeks * Week) > (height - UserMaturityValue))) | |
165 | + | then throw((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks")) | |
166 | + | else if (((TimeTyreAir * Day) > ((height - LastTyreAirBlockValue) / Day))) | |
167 | + | then throw((("You cannot claim the reward before: " + toString(((height - LastTyreAirBlockValue) / Day))) + " days")) | |
168 | + | else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastTyreAirBlock"), height), ScriptTransfer(i.caller, (TyreAirReward * 100000000), TyreAir)] | |
169 | + | } | |
170 | + | ||
171 | + | ||
172 | + | ||
173 | + | @Callable(i) | |
174 | + | func RequestFuel () = { | |
175 | + | let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit") | |
176 | + | let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock") | |
177 | + | let LastFuelBlock = (toBase58String(i.caller.bytes) + "_LastFuelBlock") | |
178 | + | let amount = match getInteger(this, UserDeposit) { | |
179 | + | case a: Int => | |
180 | + | a | |
181 | + | case _ => | |
182 | + | 0 | |
183 | + | } | |
184 | + | let UserMaturityValue = match getInteger(this, UserMaturity) { | |
185 | + | case a: Int => | |
186 | + | a | |
187 | + | case _ => | |
188 | + | 0 | |
189 | + | } | |
190 | + | let LastFuelBlockValue = match getInteger(this, LastFuelBlock) { | |
191 | + | case a: Int => | |
192 | + | a | |
193 | + | case _ => | |
194 | + | 0 | |
195 | + | } | |
196 | + | if (((MinAmount * 100000000) > ((amount * (height - UserMaturityValue)) / Week))) | |
197 | + | then throw(("You should hav deposited at least: " + toString((MinAmount * 100000000)))) | |
198 | + | else if (((minJoinWeeks * Week) > (height - UserMaturityValue))) | |
199 | + | then throw((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks")) | |
200 | + | else if (((TimeFuel * Day) > ((height - LastFuelBlockValue) / Day))) | |
201 | + | then throw((("You cannot claim the reward before: " + toString(((height - LastFuelBlockValue) / Day))) + " days")) | |
202 | + | else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastFuelBlock"), height), ScriptTransfer(i.caller, (FuelReward * 100000000), Fuel)] | |
203 | + | } | |
204 | + | ||
205 | + | ||
206 | + | ||
207 | + | @Callable(i) | |
208 | + | func RequestCarUnlock () = { | |
209 | + | let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit") | |
210 | + | let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock") | |
211 | + | let LastCarUnlockBlock = (toBase58String(i.caller.bytes) + "_LastCarUnlockBlock") | |
212 | + | let amount = match getInteger(this, UserDeposit) { | |
213 | + | case a: Int => | |
214 | + | a | |
215 | + | case _ => | |
216 | + | 0 | |
217 | + | } | |
218 | + | let UserMaturityValue = match getInteger(this, UserMaturity) { | |
219 | + | case a: Int => | |
220 | + | a | |
221 | + | case _ => | |
222 | + | 0 | |
223 | + | } | |
224 | + | let LastCarUnlockBlockValue = match getInteger(this, LastCarUnlockBlock) { | |
225 | + | case a: Int => | |
226 | + | a | |
227 | + | case _ => | |
228 | + | 0 | |
229 | + | } | |
230 | + | if (((MinAmount * 100000000) > ((amount * (height - UserMaturityValue)) / Week))) | |
231 | + | then throw(("You should hav deposited at least: " + toString((MinAmount * 100000000)))) | |
232 | + | else if (((minJoinWeeks * Week) > (height - UserMaturityValue))) | |
233 | + | then throw((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks")) | |
234 | + | else if (((TimeCarUnlock * Day) > ((height - LastCarUnlockBlockValue) / Day))) | |
235 | + | then throw((("You cannot claim the reward before: " + toString(((height - LastCarUnlockBlockValue) / Day))) + " days")) | |
236 | + | else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastCarUnlockBlock"), height), ScriptTransfer(i.caller, (CarUnlockReward * 100000000), CarUnlock)] | |
237 | + | } | |
238 | + | ||
239 | + |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let HASH = base58'BJpmNoB9MABJ1ytHhbLNxuUaeoYcYVeTM1r7kh39P24i' | |
5 | 5 | ||
6 | 6 | let KrossCar = base58'4dVMkKtzaWuHC21kmxBBUwKQ5LGayLZLV9snpkJxsGeW' | |
7 | 7 | ||
8 | 8 | let Towing = base58'4BHPskP7pBoXLD7U8nk54CstqbsqRvuWr3SDP8uMrz5w' | |
9 | + | ||
10 | + | let TyreAir = base58'67QXX3ztyyTEP2jqQ5XwmmuV3L9dmtXpWbTxf9Y81gpo' | |
11 | + | ||
12 | + | let Fuel = base58'9eE15BVcRhp1XJBoYQUkxvktmq8tC3woRBUYyNymepZr' | |
13 | + | ||
14 | + | let CarUnlock = base58'3UUpggubgyFEJWG62MbMsJsZMaR8aLaJUWJmKfL5UVuR' | |
9 | 15 | ||
10 | 16 | let dAppFees = base58'3PG1NyiC2rdgX46jb8c5zPGuEAzWXhr4L2W' | |
11 | 17 | ||
12 | 18 | let AdmindApp = base58'3PLv5rYMqR4gSiP5ZSjrX2FStLhHTRgFPbb' | |
13 | 19 | ||
14 | 20 | let MinAmount = 700 | |
15 | 21 | ||
16 | 22 | let KrossCarReward = 1 | |
17 | 23 | ||
18 | 24 | let TowingReward = 1 | |
19 | 25 | ||
26 | + | let TyreAirReward = 1 | |
27 | + | ||
28 | + | let FuelReward = 1 | |
29 | + | ||
30 | + | let CarUnlockReward = 1 | |
31 | + | ||
20 | 32 | let ReferreTip = 1 | |
21 | 33 | ||
22 | 34 | let minJoinWeeks = 8 | |
23 | 35 | ||
24 | 36 | let TimeTowing = 2 | |
37 | + | ||
38 | + | let TimeTyreAir = 4 | |
39 | + | ||
40 | + | let TimeFuel = 2 | |
41 | + | ||
42 | + | let TimeCarUnlock = 6 | |
25 | 43 | ||
26 | 44 | let Week = 10 | |
27 | 45 | ||
28 | 46 | let Day = 5 | |
29 | 47 | ||
30 | 48 | @Callable(i) | |
31 | 49 | func ReceiveFakeHASHForTest () = [ScriptTransfer(i.caller, (10000 * 100000000), HASH)] | |
32 | 50 | ||
33 | 51 | ||
34 | 52 | ||
35 | 53 | @Callable(i) | |
36 | 54 | func DepositHASH () = { | |
37 | 55 | let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit") | |
38 | 56 | let amount = match getInteger(this, UserDeposit) { | |
39 | 57 | case a: Int => | |
40 | 58 | a | |
41 | 59 | case _ => | |
42 | 60 | 0 | |
43 | 61 | } | |
44 | 62 | let pmt = if ((size(i.payments) == 1)) | |
45 | 63 | then i.payments[0] | |
46 | 64 | else throw("Attached payment is required") | |
47 | 65 | if (if (((MinAmount * 100000000) > pmt.amount)) | |
48 | 66 | then true | |
49 | 67 | else (pmt.assetId != HASH)) | |
50 | 68 | then throw("Can only deposit HASH tokens, and minimum amount is 700 HASH") | |
51 | 69 | else { | |
52 | 70 | let UserDepositValue = (amount + pmt.amount) | |
53 | 71 | [IntegerEntry((toBase58String(i.caller.bytes) + "_Deposit"), UserDepositValue), IntegerEntry((toBase58String(i.caller.bytes) + "_DepositBlock"), height), ScriptTransfer(i.caller, (KrossCarReward * 100000000), KrossCar)] | |
54 | 72 | } | |
55 | 73 | } | |
56 | 74 | ||
57 | 75 | ||
58 | 76 | ||
59 | 77 | @Callable(i) | |
60 | 78 | func RewardReferrer (UserWalletAddressStr) = if ((UserWalletAddressStr == "")) | |
61 | 79 | then throw("Referrer Wallet Address cannot be empty !") | |
62 | 80 | else { | |
63 | 81 | let UserWalletAddress = addressFromStringValue(UserWalletAddressStr) | |
64 | 82 | let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit") | |
65 | 83 | let TippedStatus = (toBase58String(i.caller.bytes) + "_TippedStatus") | |
66 | 84 | let amount = match getInteger(this, UserDeposit) { | |
67 | 85 | case a: Int => | |
68 | 86 | a | |
69 | 87 | case _ => | |
70 | 88 | 0 | |
71 | 89 | } | |
72 | 90 | let TippedStatusValue = match getString(this, TippedStatus) { | |
73 | 91 | case a: String => | |
74 | 92 | a | |
75 | 93 | case _ => | |
76 | 94 | "NO" | |
77 | 95 | } | |
78 | 96 | if ((TippedStatusValue == "YES")) | |
79 | 97 | then throw("You already tipped a User, you only can tip once a user") | |
80 | 98 | else if (((MinAmount * 100000000) > amount)) | |
81 | 99 | then throw((("To tip your referrer you must have at least deposited: " + toString(MinAmount)) + " HASH")) | |
82 | 100 | else [StringEntry((toBase58String(i.caller.bytes) + "_TippedStatus"), "YES"), ScriptTransfer(UserWalletAddress, (ReferreTip * 100000000), KrossCar)] | |
83 | 101 | } | |
84 | 102 | ||
85 | 103 | ||
86 | 104 | ||
87 | 105 | @Callable(i) | |
88 | 106 | func RequestTowing () = { | |
89 | 107 | let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit") | |
90 | 108 | let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock") | |
91 | 109 | let LastTowingBlock = (toBase58String(i.caller.bytes) + "_LastTowingBlock") | |
92 | 110 | let amount = match getInteger(this, UserDeposit) { | |
93 | 111 | case a: Int => | |
94 | 112 | a | |
95 | 113 | case _ => | |
96 | 114 | 0 | |
97 | 115 | } | |
98 | 116 | let UserMaturityValue = match getInteger(this, UserMaturity) { | |
99 | 117 | case a: Int => | |
100 | 118 | a | |
101 | 119 | case _ => | |
102 | 120 | 0 | |
103 | 121 | } | |
104 | 122 | let LastTowingBlockValue = match getInteger(this, LastTowingBlock) { | |
105 | 123 | case a: Int => | |
106 | 124 | a | |
107 | 125 | case _ => | |
108 | 126 | 0 | |
109 | 127 | } | |
110 | 128 | if (((MinAmount * 100000000) > ((amount * (height - UserMaturityValue)) / Week))) | |
111 | 129 | then throw(("You should hav deposited at least: " + toString((MinAmount * 100000000)))) | |
112 | 130 | else if (((minJoinWeeks * Week) > (height - UserMaturityValue))) | |
113 | 131 | then throw((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks")) | |
114 | 132 | else if (((TimeTowing * Day) > ((height - LastTowingBlockValue) / Day))) | |
115 | 133 | then throw((("You cannot claim the reward before: " + toString(((height - LastTowingBlockValue) / Day))) + " days")) | |
116 | 134 | else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastTowingBlock"), height), ScriptTransfer(i.caller, (TowingReward * 100000000), Towing)] | |
117 | 135 | } | |
118 | 136 | ||
119 | 137 | ||
138 | + | ||
139 | + | @Callable(i) | |
140 | + | func RequestTyreAir () = { | |
141 | + | let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit") | |
142 | + | let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock") | |
143 | + | let LastTyreAirBlock = (toBase58String(i.caller.bytes) + "_LastTyreAirBlock") | |
144 | + | let amount = match getInteger(this, UserDeposit) { | |
145 | + | case a: Int => | |
146 | + | a | |
147 | + | case _ => | |
148 | + | 0 | |
149 | + | } | |
150 | + | let UserMaturityValue = match getInteger(this, UserMaturity) { | |
151 | + | case a: Int => | |
152 | + | a | |
153 | + | case _ => | |
154 | + | 0 | |
155 | + | } | |
156 | + | let LastTyreAirBlockValue = match getInteger(this, LastTyreAirBlock) { | |
157 | + | case a: Int => | |
158 | + | a | |
159 | + | case _ => | |
160 | + | 0 | |
161 | + | } | |
162 | + | if (((MinAmount * 100000000) > ((amount * (height - UserMaturityValue)) / Week))) | |
163 | + | then throw(("You should hav deposited at least: " + toString((MinAmount * 100000000)))) | |
164 | + | else if (((minJoinWeeks * Week) > (height - UserMaturityValue))) | |
165 | + | then throw((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks")) | |
166 | + | else if (((TimeTyreAir * Day) > ((height - LastTyreAirBlockValue) / Day))) | |
167 | + | then throw((("You cannot claim the reward before: " + toString(((height - LastTyreAirBlockValue) / Day))) + " days")) | |
168 | + | else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastTyreAirBlock"), height), ScriptTransfer(i.caller, (TyreAirReward * 100000000), TyreAir)] | |
169 | + | } | |
170 | + | ||
171 | + | ||
172 | + | ||
173 | + | @Callable(i) | |
174 | + | func RequestFuel () = { | |
175 | + | let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit") | |
176 | + | let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock") | |
177 | + | let LastFuelBlock = (toBase58String(i.caller.bytes) + "_LastFuelBlock") | |
178 | + | let amount = match getInteger(this, UserDeposit) { | |
179 | + | case a: Int => | |
180 | + | a | |
181 | + | case _ => | |
182 | + | 0 | |
183 | + | } | |
184 | + | let UserMaturityValue = match getInteger(this, UserMaturity) { | |
185 | + | case a: Int => | |
186 | + | a | |
187 | + | case _ => | |
188 | + | 0 | |
189 | + | } | |
190 | + | let LastFuelBlockValue = match getInteger(this, LastFuelBlock) { | |
191 | + | case a: Int => | |
192 | + | a | |
193 | + | case _ => | |
194 | + | 0 | |
195 | + | } | |
196 | + | if (((MinAmount * 100000000) > ((amount * (height - UserMaturityValue)) / Week))) | |
197 | + | then throw(("You should hav deposited at least: " + toString((MinAmount * 100000000)))) | |
198 | + | else if (((minJoinWeeks * Week) > (height - UserMaturityValue))) | |
199 | + | then throw((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks")) | |
200 | + | else if (((TimeFuel * Day) > ((height - LastFuelBlockValue) / Day))) | |
201 | + | then throw((("You cannot claim the reward before: " + toString(((height - LastFuelBlockValue) / Day))) + " days")) | |
202 | + | else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastFuelBlock"), height), ScriptTransfer(i.caller, (FuelReward * 100000000), Fuel)] | |
203 | + | } | |
204 | + | ||
205 | + | ||
206 | + | ||
207 | + | @Callable(i) | |
208 | + | func RequestCarUnlock () = { | |
209 | + | let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit") | |
210 | + | let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock") | |
211 | + | let LastCarUnlockBlock = (toBase58String(i.caller.bytes) + "_LastCarUnlockBlock") | |
212 | + | let amount = match getInteger(this, UserDeposit) { | |
213 | + | case a: Int => | |
214 | + | a | |
215 | + | case _ => | |
216 | + | 0 | |
217 | + | } | |
218 | + | let UserMaturityValue = match getInteger(this, UserMaturity) { | |
219 | + | case a: Int => | |
220 | + | a | |
221 | + | case _ => | |
222 | + | 0 | |
223 | + | } | |
224 | + | let LastCarUnlockBlockValue = match getInteger(this, LastCarUnlockBlock) { | |
225 | + | case a: Int => | |
226 | + | a | |
227 | + | case _ => | |
228 | + | 0 | |
229 | + | } | |
230 | + | if (((MinAmount * 100000000) > ((amount * (height - UserMaturityValue)) / Week))) | |
231 | + | then throw(("You should hav deposited at least: " + toString((MinAmount * 100000000)))) | |
232 | + | else if (((minJoinWeeks * Week) > (height - UserMaturityValue))) | |
233 | + | then throw((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks")) | |
234 | + | else if (((TimeCarUnlock * Day) > ((height - LastCarUnlockBlockValue) / Day))) | |
235 | + | then throw((("You cannot claim the reward before: " + toString(((height - LastCarUnlockBlockValue) / Day))) + " days")) | |
236 | + | else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastCarUnlockBlock"), height), ScriptTransfer(i.caller, (CarUnlockReward * 100000000), CarUnlock)] | |
237 | + | } | |
238 | + | ||
239 | + |
github/deemru/w8io/169f3d6 48.53 ms ◑