tx · 3FUvAP5dSmbnVpL9MLJdKQB9aaQVZHHbvvj7SWnvtH1F

3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw:  -0.01000000 Waves

2022.06.08 22:36 [2087820] smart account 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw > SELF 0.00000000 Waves

{ "type": 13, "id": "3FUvAP5dSmbnVpL9MLJdKQB9aaQVZHHbvvj7SWnvtH1F", "fee": 1000000, "feeAssetId": null, "timestamp": 1654716995497, "version": 2, "chainId": 84, "sender": "3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw", "senderPublicKey": "GTKqLSK6nuFkRdebB5SmTwTU2DnTeLMvhymCFfT2CxX2", "proofs": [ "2Puoj5FWJ4KYbotzQHd2UwTMU2524M5QRPcqzvUUi3Wgmfuv2KAFECqzk6dXZZitzd1igg9aK2TjfRbRHkLfrZuS" ], "script": "base64:AAIFAAAAAAAAAAsIAhIAEgMKAQgSAAAAAA0AAAAABEhBU0gBAAAAIJklwE3i+u/bc48vf4d/BnVXhMLmuX4eB+81QVXPc36rAAAAAAhLcm9zc0NhcgEAAAAgNewIuJ8fl0L3aDIXfe5KYUI4pQbPPcpdLtTikAZosrsAAAAABlRvd2luZwEAAAAgLzVn9FxXOELHRV9NM7WHnRz83AP0i2FsXYU/kxb44koAAAAACGRBcHBGZWVzAQAAABoBV5prAZfpnthmNq2ZMbws44Htl6ZEmG28iwAAAAAJQWRtaW5kQXBwAQAAABoBV9BDQuIchL6bmoa833jKal/OBiGoZGoQDgAAAAAJTWluQW1vdW50AAAAAAAAAAK8AAAAAA5Lcm9zc0NhclJld2FyZAAAAAAAAAAAAQAAAAAMVG93aW5nUmV3YXJkAAAAAAAAAAABAAAAAApSZWZlcnJlVGlwAAAAAAAAAAABAAAAAAxtaW5Kb2luV2Vla3MAAAAAAAAAAAgAAAAAClRpbWVUb3dpbmcAAAAAAAAAAB4AAAAABFdlZWsJAABoAAAAAgAAAAAAAAAFoAAAAAAAAAAABwAAAA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dWUEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAAMVXNlck1hdHVyaXR5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAAFExhc3RUb3dpbmdCbG9ja1ZhbHVlBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAD0xhc3RUb3dpbmdCbG9jawMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAAAwMDCQAAZgAAAAIJAABoAAAAAgUAAAAJTWluQW1vdW50AAAAAAAF9eEACQAAaQAAAAIJAABoAAAAAgUAAAAGYW1vdW50CQAAZQAAAAIFAAAABmhlaWdodAUAAAARVXNlck1hdHVyaXR5VmFsdWUFAAAABFdlZWsGCQAAZgAAAAIJAABoAAAAAgUAAAAMbWluSm9pbldlZWtzBQAAAARXZWVrCQAAZQAAAAIFAAAABmhlaWdodAUAAAARVXNlck1hdHVyaXR5VmFsdWUGCQAAZgAAAAIJAABoAAAAAgUAAAAKVGltZVRvd2luZwUAAAADRGF5BQAAABRMYXN0VG93aW5nQmxvY2tWYWx1ZQkAAAIAAAABAgAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAABBfTGFzdFRvd2luZ0Jsb2NrBQAAAAZoZWlnaHQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCQAAaAAAAAIFAAAADFRvd2luZ1Jld2FyZAAAAAAABfXhAAUAAAAGVG93aW5nBQAAAANuaWwAAAAAp3fTmw==", "height": 2087820, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GrrCbUqpU5ZSbAqpcZJcyNF78TGQx4HC8tR3aSves91K Next: G6uiKSNZ7NZA6KtZ9qk6mKZkY99ZqaDQPfzNzdLjzBCf Diff:
OldNewDifferences
2323
2424 let k = 30
2525
26-let l = 10
26+let l = (1440 * 7)
2727
28-let m = 5
28+let m = 1440
2929
3030 @Callable(n)
3131 func DepositHASH () = {
126126 then true
127127 else ((k * m) > B))
128128 then throw("")
129- else throw("777777777777")
129+ else [IntegerEntry((toBase58String(n.caller.bytes) + "_LastTowingBlock"), height), ScriptTransfer(n.caller, (h * 100000000), c)]
130130 }
131131
132132
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'BJpmNoB9MABJ1ytHhbLNxuUaeoYcYVeTM1r7kh39P24i'
55
66 let b = base58'4dVMkKtzaWuHC21kmxBBUwKQ5LGayLZLV9snpkJxsGeW'
77
88 let c = base58'4BHPskP7pBoXLD7U8nk54CstqbsqRvuWr3SDP8uMrz5w'
99
1010 let d = base58'3PG1NyiC2rdgX46jb8c5zPGuEAzWXhr4L2W'
1111
1212 let e = base58'3PLv5rYMqR4gSiP5ZSjrX2FStLhHTRgFPbb'
1313
1414 let f = 700
1515
1616 let g = 1
1717
1818 let h = 1
1919
2020 let i = 1
2121
2222 let j = 8
2323
2424 let k = 30
2525
26-let l = 10
26+let l = (1440 * 7)
2727
28-let m = 5
28+let m = 1440
2929
3030 @Callable(n)
3131 func DepositHASH () = {
3232 let o = (toBase58String(n.caller.bytes) + "_Deposit")
3333 let p = {
3434 let q = getInteger(this, o)
3535 if ($isInstanceOf(q, "Int"))
3636 then {
3737 let r = q
3838 r
3939 }
4040 else 0
4141 }
4242 let s = if ((size(n.payments) == 1))
4343 then n.payments[0]
4444 else throw("Attached payment is required")
4545 if (if (((f * 100000000) > s.amount))
4646 then true
4747 else (s.assetId != a))
4848 then throw("Can only deposit HASH tokens, and minimum amount is 700 HASH")
4949 else {
5050 let t = (p + s.amount)
5151 [IntegerEntry((toBase58String(n.caller.bytes) + "_Deposit"), t), IntegerEntry((toBase58String(n.caller.bytes) + "_DepositBlock"), height), ScriptTransfer(n.caller, (g * 100000000), b)]
5252 }
5353 }
5454
5555
5656
5757 @Callable(n)
5858 func RewardReferrer (u) = if ((u == ""))
5959 then throw("Referrer Wallet Address cannot be empty !")
6060 else {
6161 let v = addressFromStringValue(u)
6262 let o = (toBase58String(n.caller.bytes) + "_Deposit")
6363 let w = (toBase58String(n.caller.bytes) + "_TippedStatus")
6464 let p = {
6565 let q = getInteger(this, o)
6666 if ($isInstanceOf(q, "Int"))
6767 then {
6868 let r = q
6969 r
7070 }
7171 else 0
7272 }
7373 let x = {
7474 let q = getString(this, w)
7575 if ($isInstanceOf(q, "String"))
7676 then {
7777 let r = q
7878 r
7979 }
8080 else "NO"
8181 }
8282 if ((x == "YES"))
8383 then throw("You already tipped a User, you only can tip once a user")
8484 else if (((f * 100000000) > p))
8585 then throw((("To tip your referrer you must have at least deposited: " + toString(f)) + " HASH"))
8686 else [StringEntry((toBase58String(n.caller.bytes) + "_TippedStatus"), "YES"), ScriptTransfer(v, (i * 100000000), b)]
8787 }
8888
8989
9090
9191 @Callable(n)
9292 func RequestTowing () = {
9393 let o = (toBase58String(n.caller.bytes) + "_Deposit")
9494 let y = (toBase58String(n.caller.bytes) + "_DepositBlock")
9595 let z = (toBase58String(n.caller.bytes) + "_LastTowingBlock")
9696 let p = {
9797 let q = getInteger(this, o)
9898 if ($isInstanceOf(q, "Int"))
9999 then {
100100 let r = q
101101 r
102102 }
103103 else 0
104104 }
105105 let A = {
106106 let q = getInteger(this, y)
107107 if ($isInstanceOf(q, "Int"))
108108 then {
109109 let r = q
110110 r
111111 }
112112 else 0
113113 }
114114 let B = {
115115 let q = getInteger(this, z)
116116 if ($isInstanceOf(q, "Int"))
117117 then {
118118 let r = q
119119 r
120120 }
121121 else 0
122122 }
123123 if (if (if (((f * 100000000) > ((p * (height - A)) / l)))
124124 then true
125125 else ((j * l) > (height - A)))
126126 then true
127127 else ((k * m) > B))
128128 then throw("")
129- else throw("777777777777")
129+ else [IntegerEntry((toBase58String(n.caller.bytes) + "_LastTowingBlock"), height), ScriptTransfer(n.caller, (h * 100000000), c)]
130130 }
131131
132132

github/deemru/w8io/169f3d6 
45.63 ms