tx · EBrqqg84f7UWAGAqPkfhpj5YxiGKUH85Z5SUnK2dEgxb

3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw:  -0.01100000 Waves

2022.06.12 21:20 [2093521] smart account 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw > SELF 0.00000000 Waves

{ "type": 13, "id": "EBrqqg84f7UWAGAqPkfhpj5YxiGKUH85Z5SUnK2dEgxb", "fee": 1100000, "feeAssetId": null, "timestamp": 1655058067191, "version": 2, "chainId": 84, "sender": "3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw", "senderPublicKey": "GTKqLSK6nuFkRdebB5SmTwTU2DnTeLMvhymCFfT2CxX2", "proofs": [ "4ECYxH3kbeEeH71aKMuqibkCy6HfJBXacPmneeh7AqkAdCBPzbwfbZQ6GVdS3UsNneMunZrQkUFQscWcnhhQApK3" ], "script": "base64:AAIFAAAAAAAAABcIAhIAEgASABIAEgMKAQgSABIAEgASAAAAABYAAAAABEhBU0gBAAAAIJklwE3i+u/bc48vf4d/BnVXhMLmuX4eB+81QVXPc36rAAAAAAhLcm9zc0NhcgEAAAAgNewIuJ8fl0L3aDIXfe5KYUI4pQbPPcpdLtTikAZosrsAAAAABlRvd2luZwEAAAAgLzVn9FxXOELHRV9NM7WHnRz83AP0i2FsXYU/kxb44koAAAAAB1R5cmVBaXIBAAAAIEvuhUcjs8nwlptF+3MJzdMO4zPQYwfXIFaIUK2eroEgAAAAAARGdWVsAQAAACCAZq+XD1uFtjJ9pE4zl3eJu0Qrua3EVPCqkO+MMmym1QAAAAAJQ2FyVW5sb2NrAQAAACAkwYOo0om66Y7VCFFToUliIsLfSrbZas+g4ATAz8e5qAAAAAAIZEFwcEZlZXMBAAAAGgFXmmsBl+me2GY2rZkxvCzjge2XpkSYbbyLAAAAAAlBZG1pbmRBcHABAAAAGgFX0ENC4hyEvpuahrzfeMpqX84GIahkahAOAAAAAAlNaW5BbW91bnQAAAAAAAAAArwAAAAADktyb3NzQ2FyUmV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Z2h0BQAAABFVc2VyTWF0dXJpdHlWYWx1ZQUAAAAEV2VlawkAAAIAAAABCQABLAAAAAICAAAAI1lvdSBzaG91bGQgaGF2IGRlcG9zaXRlZCBhdCBsZWFzdDogCQABpAAAAAEJAABpAAAAAgkAAGgAAAACBQAAAAlNaW5BbW91bnQJAABlAAAAAgUAAAAGaGVpZ2h0BQAAABFVc2VyTWF0dXJpdHlWYWx1ZQUAAAAEV2VlawMJAABmAAAAAgkAAGgAAAACBQAAAA1UaW1lQ2FyVW5sb2NrBQAAAANEYXkJAABpAAAAAgkAAGUAAAACBQAAAAZoZWlnaHQFAAAAF0xhc3RDYXJVbmxvY2tCbG9ja1ZhbHVlBQAAAANEYXkJAAACAAAAAQkAASwAAAACCQABLAAAAAICAAAAJFlvdSBjYW5ub3QgY2xhaW0gdGhlIHJld2FyZCBiZWZvcmU6IAkAAaQAAAABCQAAZQAAAAIFAAAADVRpbWVDYXJVbmxvY2sJAABpAAAAAgkAAGUAAAACBQAAAAZoZWlnaHQFAAAAF0xhc3RDYXJVbmxvY2tCbG9ja1ZhbHVlBQAAAANEYXkCAAAABSBkYXlzCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwIAAAATX0xhc3RDYXJVbmxvY2tCbG9jawUAAAAGaGVpZ2h0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgkAAGgAAAACBQAAAA9DYXJVbmxvY2tSZXdhcmQAAAAAAAX14QAFAAAACUNhclVubG9jawUAAAADbmlsAAAAAC2X70M=", "height": 2093521, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8ssoTi5JLm4cPyudrqCqFQsFb2ryPqUXeZkY4De7RWUG Next: 5PZW9yR5mMuwznDgDyozkCmgX6YCnPdYPtKrDRMFFgPk Diff:
OldNewDifferences
4444 let Week = 10
4545
4646 let Day = 5
47+
48+@Callable(i)
49+func ResetData () = [IntegerEntry((toBase58String(i.caller.bytes) + "_Deposit"), 0), IntegerEntry((toBase58String(i.caller.bytes) + "_DepositBlock"), 0), IntegerEntry((toBase58String(i.caller.bytes) + "_LastTowingBlock"), 0), IntegerEntry((toBase58String(i.caller.bytes) + "_LastTyreAirBlock"), 0), IntegerEntry((toBase58String(i.caller.bytes) + "_LastTyreAirBlock"), 0), IntegerEntry((toBase58String(i.caller.bytes) + "_LastFuelBlock"), 0), IntegerEntry((toBase58String(i.caller.bytes) + "_LastCarUnlockBlock"), 0)]
50+
51+
4752
4853 @Callable(i)
4954 func ReceiveFakeHASHForTest () = [ScriptTransfer(i.caller, (1000000 * 100000000), HASH)]
164169 case _ =>
165170 0
166171 }
167- if ((((height - UserMaturityValue) / Week) == 0))
168- then throw("The minimum period of a Week has not yet passed")
172+ if (((minJoinWeeks * Week) > (height - UserMaturityValue)))
173+ then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week))))
169174 else if ((amount >= (((MinAmount * 100000000) * (height - UserMaturityValue)) / Week)))
170175 then throw(("You should hav deposited at least: " + toString(((MinAmount * (height - UserMaturityValue)) / Week))))
171- else if (((minJoinWeeks * Week) > (height - UserMaturityValue)))
172- then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week))))
173- else if (((TimeTyreAir * Day) > ((height - LastTyreAirBlockValue) / Day)))
174- then throw((("You cannot claim the reward before: " + toString((TimeTyreAir - ((height - LastTyreAirBlockValue) / Day)))) + " days"))
175- else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastTyreAirBlock"), height), ScriptTransfer(i.caller, (TyreAirReward * 100000000), TyreAir)]
176+ else if (((TimeTyreAir * Day) > ((height - LastTyreAirBlockValue) / Day)))
177+ then throw((("You cannot claim the reward before: " + toString((TimeTyreAir - ((height - LastTyreAirBlockValue) / Day)))) + " days"))
178+ else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastTyreAirBlock"), height), ScriptTransfer(i.caller, (TyreAirReward * 100000000), TyreAir)]
176179 }
177180
178181
200203 case _ =>
201204 0
202205 }
203- if ((((height - UserMaturityValue) / Week) == 0))
204- then throw("The minimum period of a Week has not yet passed")
206+ if (((minJoinWeeks * Week) > (height - UserMaturityValue)))
207+ then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week))))
205208 else if ((amount >= (((MinAmount * 100000000) * (height - UserMaturityValue)) / Week)))
206209 then throw(("You should hav deposited at least: " + toString(((MinAmount * (height - UserMaturityValue)) / Week))))
207- else if (((minJoinWeeks * Week) > (height - UserMaturityValue)))
208- then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week))))
209- else if (((TimeFuel * Day) > ((height - LastFuelBlockValue) / Day)))
210- then throw((("You cannot claim the reward before: " + toString((TimeFuel - ((height - LastFuelBlockValue) / Day)))) + " days"))
211- else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastFuelBlock"), height), ScriptTransfer(i.caller, (FuelReward * 100000000), Fuel)]
210+ else if (((TimeFuel * Day) > ((height - LastFuelBlockValue) / Day)))
211+ then throw((("You cannot claim the reward before: " + toString((TimeFuel - ((height - LastFuelBlockValue) / Day)))) + " days"))
212+ else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastFuelBlock"), height), ScriptTransfer(i.caller, (FuelReward * 100000000), Fuel)]
212213 }
213214
214215
236237 case _ =>
237238 0
238239 }
239- if ((((height - UserMaturityValue) / Week) == 0))
240- then throw("The minimum period of a Week has not yet passed")
240+ if (((minJoinWeeks * Week) > (height - UserMaturityValue)))
241+ then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week))))
241242 else if ((amount >= (((MinAmount * 100000000) * (height - UserMaturityValue)) / Week)))
242243 then throw(("You should hav deposited at least: " + toString(((MinAmount * (height - UserMaturityValue)) / Week))))
243- else if (((minJoinWeeks * Week) > (height - UserMaturityValue)))
244- then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week))))
245- else if (((TimeCarUnlock * Day) > ((height - LastCarUnlockBlockValue) / Day)))
246- then throw((("You cannot claim the reward before: " + toString((TimeCarUnlock - ((height - LastCarUnlockBlockValue) / Day)))) + " days"))
247- else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastCarUnlockBlock"), height), ScriptTransfer(i.caller, (CarUnlockReward * 100000000), CarUnlock)]
244+ else if (((TimeCarUnlock * Day) > ((height - LastCarUnlockBlockValue) / Day)))
245+ then throw((("You cannot claim the reward before: " + toString((TimeCarUnlock - ((height - LastCarUnlockBlockValue) / Day)))) + " days"))
246+ else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastCarUnlockBlock"), height), ScriptTransfer(i.caller, (CarUnlockReward * 100000000), CarUnlock)]
248247 }
249248
250249
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let HASH = base58'BJpmNoB9MABJ1ytHhbLNxuUaeoYcYVeTM1r7kh39P24i'
55
66 let KrossCar = base58'4dVMkKtzaWuHC21kmxBBUwKQ5LGayLZLV9snpkJxsGeW'
77
88 let Towing = base58'4BHPskP7pBoXLD7U8nk54CstqbsqRvuWr3SDP8uMrz5w'
99
1010 let TyreAir = base58'67QXX3ztyyTEP2jqQ5XwmmuV3L9dmtXpWbTxf9Y81gpo'
1111
1212 let Fuel = base58'9eE15BVcRhp1XJBoYQUkxvktmq8tC3woRBUYyNymepZr'
1313
1414 let CarUnlock = base58'3UUpggubgyFEJWG62MbMsJsZMaR8aLaJUWJmKfL5UVuR'
1515
1616 let dAppFees = base58'3PG1NyiC2rdgX46jb8c5zPGuEAzWXhr4L2W'
1717
1818 let AdmindApp = base58'3PLv5rYMqR4gSiP5ZSjrX2FStLhHTRgFPbb'
1919
2020 let MinAmount = 700
2121
2222 let KrossCarReward = 1
2323
2424 let TowingReward = 1
2525
2626 let TyreAirReward = 1
2727
2828 let FuelReward = 1
2929
3030 let CarUnlockReward = 1
3131
3232 let ReferreTip = 1
3333
3434 let minJoinWeeks = 8
3535
3636 let TimeTowing = 2
3737
3838 let TimeTyreAir = 4
3939
4040 let TimeFuel = 2
4141
4242 let TimeCarUnlock = 6
4343
4444 let Week = 10
4545
4646 let Day = 5
47+
48+@Callable(i)
49+func ResetData () = [IntegerEntry((toBase58String(i.caller.bytes) + "_Deposit"), 0), IntegerEntry((toBase58String(i.caller.bytes) + "_DepositBlock"), 0), IntegerEntry((toBase58String(i.caller.bytes) + "_LastTowingBlock"), 0), IntegerEntry((toBase58String(i.caller.bytes) + "_LastTyreAirBlock"), 0), IntegerEntry((toBase58String(i.caller.bytes) + "_LastTyreAirBlock"), 0), IntegerEntry((toBase58String(i.caller.bytes) + "_LastFuelBlock"), 0), IntegerEntry((toBase58String(i.caller.bytes) + "_LastCarUnlockBlock"), 0)]
50+
51+
4752
4853 @Callable(i)
4954 func ReceiveFakeHASHForTest () = [ScriptTransfer(i.caller, (1000000 * 100000000), HASH)]
5055
5156
5257
5358 @Callable(i)
5459 func ShowMeTimersOfdApp () = throw(((((((((((((((("Timers in the dApp: " + "Minimum Join Weeks: ") + toString(minJoinWeeks)) + " min") + "Timer Towing: ") + toString(TimeTowing)) + " min") + "TimerTyreAire: ") + toString(TimeTyreAir)) + " min") + "Timer Fuel: ") + toString(TimeFuel)) + " min") + "Timer CarUnlock: ") + toString(TimeCarUnlock)) + " min"))
5560
5661
5762
5863 @Callable(i)
5964 func DepositHASH () = {
6065 let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit")
6166 let amount = match getInteger(this, UserDeposit) {
6267 case a: Int =>
6368 a
6469 case _ =>
6570 0
6671 }
6772 let pmt = if ((size(i.payments) == 1))
6873 then i.payments[0]
6974 else throw("Attached payment is required")
7075 if (if (((MinAmount * 100000000) > pmt.amount))
7176 then true
7277 else (pmt.assetId != HASH))
7378 then throw("Can only deposit HASH tokens, and minimum amount is 700 HASH")
7479 else {
7580 let UserDepositValue = (amount + pmt.amount)
7681 [IntegerEntry((toBase58String(i.caller.bytes) + "_Deposit"), UserDepositValue), IntegerEntry((toBase58String(i.caller.bytes) + "_DepositBlock"), height), ScriptTransfer(i.caller, (KrossCarReward * 100000000), KrossCar)]
7782 }
7883 }
7984
8085
8186
8287 @Callable(i)
8388 func RewardReferrer (UserWalletAddressStr) = if ((UserWalletAddressStr == ""))
8489 then throw("Referrer Wallet Address cannot be empty !")
8590 else {
8691 let UserWalletAddress = addressFromStringValue(UserWalletAddressStr)
8792 let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit")
8893 let TippedStatus = (toBase58String(i.caller.bytes) + "_TippedStatus")
8994 let amount = match getInteger(this, UserDeposit) {
9095 case a: Int =>
9196 a
9297 case _ =>
9398 0
9499 }
95100 let TippedStatusValue = match getString(this, TippedStatus) {
96101 case a: String =>
97102 a
98103 case _ =>
99104 "NO"
100105 }
101106 if ((TippedStatusValue == "YES"))
102107 then throw("You already tipped a User, you only can tip once a user")
103108 else if (((MinAmount * 100000000) > amount))
104109 then throw((("To tip your referrer you must have at least deposited: " + toString(MinAmount)) + " HASH"))
105110 else [StringEntry((toBase58String(i.caller.bytes) + "_TippedStatus"), "YES"), ScriptTransfer(UserWalletAddress, (ReferreTip * 100000000), KrossCar)]
106111 }
107112
108113
109114
110115 @Callable(i)
111116 func RequestTowing () = {
112117 let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit")
113118 let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock")
114119 let LastTowingBlock = (toBase58String(i.caller.bytes) + "_LastTowingBlock")
115120 let amount = match getInteger(this, UserDeposit) {
116121 case a: Int =>
117122 a
118123 case _ =>
119124 0
120125 }
121126 let UserMaturityValue = match getInteger(this, UserMaturity) {
122127 case a: Int =>
123128 a
124129 case _ =>
125130 0
126131 }
127132 let LastTowingBlockValue = match getInteger(this, LastTowingBlock) {
128133 case a: Int =>
129134 a
130135 case _ =>
131136 0
132137 }
133138 if (((minJoinWeeks * Week) > (height - UserMaturityValue)))
134139 then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week))))
135140 else if ((amount >= (((MinAmount * 100000000) * (height - UserMaturityValue)) / Week)))
136141 then throw(("You should have deposited at least: " + toString(((MinAmount * (height - UserMaturityValue)) / Week))))
137142 else if (((TimeTowing * Day) > ((height - LastTowingBlockValue) / Day)))
138143 then throw((("You cannot claim the reward before: " + toString((TimeTowing - ((height - LastTowingBlockValue) / Day)))) + " days"))
139144 else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastTowingBlock"), height), ScriptTransfer(i.caller, (TowingReward * 100000000), Towing)]
140145 }
141146
142147
143148
144149 @Callable(i)
145150 func RequestTyreAir () = {
146151 let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit")
147152 let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock")
148153 let LastTyreAirBlock = (toBase58String(i.caller.bytes) + "_LastTyreAirBlock")
149154 let amount = match getInteger(this, UserDeposit) {
150155 case a: Int =>
151156 a
152157 case _ =>
153158 0
154159 }
155160 let UserMaturityValue = match getInteger(this, UserMaturity) {
156161 case a: Int =>
157162 a
158163 case _ =>
159164 0
160165 }
161166 let LastTyreAirBlockValue = match getInteger(this, LastTyreAirBlock) {
162167 case a: Int =>
163168 a
164169 case _ =>
165170 0
166171 }
167- if ((((height - UserMaturityValue) / Week) == 0))
168- then throw("The minimum period of a Week has not yet passed")
172+ if (((minJoinWeeks * Week) > (height - UserMaturityValue)))
173+ then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week))))
169174 else if ((amount >= (((MinAmount * 100000000) * (height - UserMaturityValue)) / Week)))
170175 then throw(("You should hav deposited at least: " + toString(((MinAmount * (height - UserMaturityValue)) / Week))))
171- else if (((minJoinWeeks * Week) > (height - UserMaturityValue)))
172- then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week))))
173- else if (((TimeTyreAir * Day) > ((height - LastTyreAirBlockValue) / Day)))
174- then throw((("You cannot claim the reward before: " + toString((TimeTyreAir - ((height - LastTyreAirBlockValue) / Day)))) + " days"))
175- else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastTyreAirBlock"), height), ScriptTransfer(i.caller, (TyreAirReward * 100000000), TyreAir)]
176+ else if (((TimeTyreAir * Day) > ((height - LastTyreAirBlockValue) / Day)))
177+ then throw((("You cannot claim the reward before: " + toString((TimeTyreAir - ((height - LastTyreAirBlockValue) / Day)))) + " days"))
178+ else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastTyreAirBlock"), height), ScriptTransfer(i.caller, (TyreAirReward * 100000000), TyreAir)]
176179 }
177180
178181
179182
180183 @Callable(i)
181184 func RequestFuel () = {
182185 let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit")
183186 let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock")
184187 let LastFuelBlock = (toBase58String(i.caller.bytes) + "_LastFuelBlock")
185188 let amount = match getInteger(this, UserDeposit) {
186189 case a: Int =>
187190 a
188191 case _ =>
189192 0
190193 }
191194 let UserMaturityValue = match getInteger(this, UserMaturity) {
192195 case a: Int =>
193196 a
194197 case _ =>
195198 0
196199 }
197200 let LastFuelBlockValue = match getInteger(this, LastFuelBlock) {
198201 case a: Int =>
199202 a
200203 case _ =>
201204 0
202205 }
203- if ((((height - UserMaturityValue) / Week) == 0))
204- then throw("The minimum period of a Week has not yet passed")
206+ if (((minJoinWeeks * Week) > (height - UserMaturityValue)))
207+ then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week))))
205208 else if ((amount >= (((MinAmount * 100000000) * (height - UserMaturityValue)) / Week)))
206209 then throw(("You should hav deposited at least: " + toString(((MinAmount * (height - UserMaturityValue)) / Week))))
207- else if (((minJoinWeeks * Week) > (height - UserMaturityValue)))
208- then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week))))
209- else if (((TimeFuel * Day) > ((height - LastFuelBlockValue) / Day)))
210- then throw((("You cannot claim the reward before: " + toString((TimeFuel - ((height - LastFuelBlockValue) / Day)))) + " days"))
211- else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastFuelBlock"), height), ScriptTransfer(i.caller, (FuelReward * 100000000), Fuel)]
210+ else if (((TimeFuel * Day) > ((height - LastFuelBlockValue) / Day)))
211+ then throw((("You cannot claim the reward before: " + toString((TimeFuel - ((height - LastFuelBlockValue) / Day)))) + " days"))
212+ else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastFuelBlock"), height), ScriptTransfer(i.caller, (FuelReward * 100000000), Fuel)]
212213 }
213214
214215
215216
216217 @Callable(i)
217218 func RequestCarUnlock () = {
218219 let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit")
219220 let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock")
220221 let LastCarUnlockBlock = (toBase58String(i.caller.bytes) + "_LastCarUnlockBlock")
221222 let amount = match getInteger(this, UserDeposit) {
222223 case a: Int =>
223224 a
224225 case _ =>
225226 0
226227 }
227228 let UserMaturityValue = match getInteger(this, UserMaturity) {
228229 case a: Int =>
229230 a
230231 case _ =>
231232 0
232233 }
233234 let LastCarUnlockBlockValue = match getInteger(this, LastCarUnlockBlock) {
234235 case a: Int =>
235236 a
236237 case _ =>
237238 0
238239 }
239- if ((((height - UserMaturityValue) / Week) == 0))
240- then throw("The minimum period of a Week has not yet passed")
240+ if (((minJoinWeeks * Week) > (height - UserMaturityValue)))
241+ then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week))))
241242 else if ((amount >= (((MinAmount * 100000000) * (height - UserMaturityValue)) / Week)))
242243 then throw(("You should hav deposited at least: " + toString(((MinAmount * (height - UserMaturityValue)) / Week))))
243- else if (((minJoinWeeks * Week) > (height - UserMaturityValue)))
244- then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week))))
245- else if (((TimeCarUnlock * Day) > ((height - LastCarUnlockBlockValue) / Day)))
246- then throw((("You cannot claim the reward before: " + toString((TimeCarUnlock - ((height - LastCarUnlockBlockValue) / Day)))) + " days"))
247- else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastCarUnlockBlock"), height), ScriptTransfer(i.caller, (CarUnlockReward * 100000000), CarUnlock)]
244+ else if (((TimeCarUnlock * Day) > ((height - LastCarUnlockBlockValue) / Day)))
245+ then throw((("You cannot claim the reward before: " + toString((TimeCarUnlock - ((height - LastCarUnlockBlockValue) / Day)))) + " days"))
246+ else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastCarUnlockBlock"), height), ScriptTransfer(i.caller, (CarUnlockReward * 100000000), CarUnlock)]
248247 }
249248
250249

github/deemru/w8io/169f3d6 
39.51 ms