tx · 7pvMHoQzHgSyGkLLr47ezpYn5Ros1wvkbzhuPYnyzkCA

3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw:  -0.01000000 Waves

2022.06.08 22:05 [2087784] smart account 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw > SELF 0.00000000 Waves

{ "type": 13, "id": "7pvMHoQzHgSyGkLLr47ezpYn5Ros1wvkbzhuPYnyzkCA", "fee": 1000000, "feeAssetId": null, "timestamp": 1654715144028, "version": 2, "chainId": 84, "sender": "3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw", "senderPublicKey": "GTKqLSK6nuFkRdebB5SmTwTU2DnTeLMvhymCFfT2CxX2", "proofs": [ "rWek4xioU3ZsLjXVWSaehWRQdyJZ8Kjpt8wDQKgCyRyjSA8FF6GhxTD9abZXPKQg4F28VVoU3UgFnbKz6zdLURz" ], "script": "base64:AAIFAAAAAAAAAAsIAhIAEgMKAQgSAAAAAA0AAAAABEhBU0gBAAAAIJklwE3i+u/bc48vf4d/BnVXhMLmuX4eB+81QVXPc36rAAAAAAhLcm9zc0NhcgEAAAAgNewIuJ8fl0L3aDIXfe5KYUI4pQbPPcpdLtTikAZosrsAAAAABlRvd2luZwEAAAAgLzVn9FxXOELHRV9NM7WHnRz83AP0i2FsXYU/kxb44koAAAAACGRBcHBGZWVzAQAAABoBV5prAZfpnthmNq2ZMbws44Htl6ZEmG28iwAAAAAJQWRtaW5kQXBwAQAAABoBV9BDQuIchL6bmoa833jKal/OBiGoZGoQDgAAAAAJTWluQW1vdW50AAAAAAAAAAK8AAAAAA5Lcm9zc0NhclJld2FyZAAAAAAAAAAAAQAAAAAMVG93aW5nUmV3YXJkAAAAAAAAAAABAAAAAApSZWZlcnJlVGlwAAAAAAAAAAABAAAAAAxtaW5Kb2luV2Vla3MAAAAAAAAAAAgAAAAAClRpbWVUb3dpbmcAAAAAAAAAAB4AAAAABFdlZWsAAAAAAAAAAAoAAAAAA0RheQAAAAAAAAAABQAAAAMA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CQAEGgAAAAIFAAAABHRoaXMFAAAAD0xhc3RUb3dpbmdCbG9jawMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAAAwMDCQAAZgAAAAIJAABoAAAAAgUAAAAJTWluQW1vdW50AAAAAAAF9eEACQAAaQAAAAIJAABoAAAAAgUAAAAGYW1vdW50CQAAZQAAAAIFAAAABmhlaWdodAUAAAARVXNlck1hdHVyaXR5VmFsdWUFAAAABFdlZWsGCQAAZgAAAAIJAABoAAAAAgUAAAAMbWluSm9pbldlZWtzBQAAAARXZWVrCQAAZQAAAAIFAAAABmhlaWdodAUAAAARVXNlck1hdHVyaXR5VmFsdWUGCQAAZgAAAAIJAABoAAAAAgUAAAAKVGltZVRvd2luZwUAAAADRGF5BQAAABRMYXN0VG93aW5nQmxvY2tWYWx1ZQkAAAIAAAABAgAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAABBfTGFzdFRvd2luZ0Jsb2NrBQAAAAZoZWlnaHQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCQAAaAAAAAIFAAAADFRvd2luZ1Jld2FyZAAAAAAABfXhAAUAAAAGVG93aW5nBQAAAANuaWwAAAAA0MBGXA==", "height": 2087784, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8JAb4SAbpHjUFHZYdy8xwKcqiceVgpwcoATMtTT1HX1i Next: 8wn6b7KHg9Xxt7x4Frs34WsdRdZg2nSba621tRE6U7TJ Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let HASH = base58'7RgM3A5AVCUZFbL3EwBicv1eHFCVsaY8z71yda77zrAv'
4+let HASH = base58'BJpmNoB9MABJ1ytHhbLNxuUaeoYcYVeTM1r7kh39P24i'
55
6-let KrossCar = base58'7RgM3A5AVCUZFbL3EwBicv1eHFCVsaY8z71yda77zrAv'
6+let KrossCar = base58'4dVMkKtzaWuHC21kmxBBUwKQ5LGayLZLV9snpkJxsGeW'
77
8-let Towing = base58'7RgM3A5AVCUZFbL3EwBicv1eHFCVsaY8z71yda77zrAv'
8+let Towing = base58'4BHPskP7pBoXLD7U8nk54CstqbsqRvuWr3SDP8uMrz5w'
99
1010 let dAppFees = base58'3PG1NyiC2rdgX46jb8c5zPGuEAzWXhr4L2W'
1111
2222 let minJoinWeeks = 8
2323
2424 let TimeTowing = 30
25+
26+let Week = 10
27+
28+let Day = 5
2529
2630 @Callable(i)
2731 func DepositHASH () = {
9498 case _ =>
9599 0
96100 }
97- if (if (if (((MinAmount * 100000000) > ((amount * (height - UserMaturityValue)) / (1440 * 7))))
101+ if (if (if (((MinAmount * 100000000) > ((amount * (height - UserMaturityValue)) / Week)))
98102 then true
99- else (((minJoinWeeks * 1440) * 7) > (height - UserMaturityValue)))
103+ else ((minJoinWeeks * Week) > (height - UserMaturityValue)))
100104 then true
101- else ((30 * 1440) > LastTowingBlockValue))
105+ else ((TimeTowing * Day) > LastTowingBlockValue))
102106 then throw("")
103107 else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastTowingBlock"), height), ScriptTransfer(i.caller, (TowingReward * 100000000), Towing)]
104108 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let HASH = base58'7RgM3A5AVCUZFbL3EwBicv1eHFCVsaY8z71yda77zrAv'
4+let HASH = base58'BJpmNoB9MABJ1ytHhbLNxuUaeoYcYVeTM1r7kh39P24i'
55
6-let KrossCar = base58'7RgM3A5AVCUZFbL3EwBicv1eHFCVsaY8z71yda77zrAv'
6+let KrossCar = base58'4dVMkKtzaWuHC21kmxBBUwKQ5LGayLZLV9snpkJxsGeW'
77
8-let Towing = base58'7RgM3A5AVCUZFbL3EwBicv1eHFCVsaY8z71yda77zrAv'
8+let Towing = base58'4BHPskP7pBoXLD7U8nk54CstqbsqRvuWr3SDP8uMrz5w'
99
1010 let dAppFees = base58'3PG1NyiC2rdgX46jb8c5zPGuEAzWXhr4L2W'
1111
1212 let AdmindApp = base58'3PLv5rYMqR4gSiP5ZSjrX2FStLhHTRgFPbb'
1313
1414 let MinAmount = 700
1515
1616 let KrossCarReward = 1
1717
1818 let TowingReward = 1
1919
2020 let ReferreTip = 1
2121
2222 let minJoinWeeks = 8
2323
2424 let TimeTowing = 30
25+
26+let Week = 10
27+
28+let Day = 5
2529
2630 @Callable(i)
2731 func DepositHASH () = {
2832 let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit")
2933 let amount = match getInteger(this, UserDeposit) {
3034 case a: Int =>
3135 a
3236 case _ =>
3337 0
3438 }
3539 if ((amount != 0))
3640 then throw("You have already deposited funds, deposits can only be done once")
3741 else {
3842 let pmt = if ((size(i.payments) == 1))
3943 then i.payments[0]
4044 else throw("Attached payment is required")
4145 if (if (((MinAmount * 100000000) >= pmt.amount))
4246 then true
4347 else (pmt.assetId != HASH))
4448 then throw("Can only deposit HASH tokens, and minimum amount is 700 HASH")
4549 else {
4650 let UserDepositValue = (amount + pmt.amount)
4751 [IntegerEntry((toBase58String(i.caller.bytes) + "_Deposit"), UserDepositValue), IntegerEntry((toBase58String(i.caller.bytes) + "_DepositBlock"), height), ScriptTransfer(i.caller, (KrossCarReward * 100000000), KrossCar)]
4852 }
4953 }
5054 }
5155
5256
5357
5458 @Callable(i)
5559 func RewardReferrer (UserWalletAddress) = {
5660 let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit")
5761 let TippedStatus = (toBase58String(i.caller.bytes) + "_TippedStatus")
5862 let amount = match getInteger(this, UserDeposit) {
5963 case a: Int =>
6064 a
6165 case _ =>
6266 0
6367 }
6468 let TippedStatusValue = getStringValue(this, TippedStatus)
6569 if ((TippedStatusValue == "YES"))
6670 then throw("You already tipped a User, you only can tip once a user")
6771 else if (((MinAmount * 100000000) > amount))
6872 then throw((("To tip your referrer you must have at least deposited: " + toString(MinAmount)) + " HASH"))
6973 else [StringEntry((toBase58String(i.caller.bytes) + "_TippedStatus"), "YES"), ScriptTransfer(i.caller, (ReferreTip * 100000000), KrossCar)]
7074 }
7175
7276
7377
7478 @Callable(i)
7579 func RequestTowing () = {
7680 let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit")
7781 let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock")
7882 let LastTowingBlock = (toBase58String(i.caller.bytes) + "_LastTowingBlock")
7983 let amount = match getInteger(this, UserDeposit) {
8084 case a: Int =>
8185 a
8286 case _ =>
8387 0
8488 }
8589 let UserMaturityValue = match getInteger(this, UserMaturity) {
8690 case a: Int =>
8791 a
8892 case _ =>
8993 0
9094 }
9195 let LastTowingBlockValue = match getInteger(this, LastTowingBlock) {
9296 case a: Int =>
9397 a
9498 case _ =>
9599 0
96100 }
97- if (if (if (((MinAmount * 100000000) > ((amount * (height - UserMaturityValue)) / (1440 * 7))))
101+ if (if (if (((MinAmount * 100000000) > ((amount * (height - UserMaturityValue)) / Week)))
98102 then true
99- else (((minJoinWeeks * 1440) * 7) > (height - UserMaturityValue)))
103+ else ((minJoinWeeks * Week) > (height - UserMaturityValue)))
100104 then true
101- else ((30 * 1440) > LastTowingBlockValue))
105+ else ((TimeTowing * Day) > LastTowingBlockValue))
102106 then throw("")
103107 else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastTowingBlock"), height), ScriptTransfer(i.caller, (TowingReward * 100000000), Towing)]
104108 }
105109
106110

github/deemru/w8io/169f3d6 
34.21 ms