tx · 7MyNfWvTthGaMoHkBeyWkUzM4NSpAVGzu5HdCybpZRax

3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw:  -0.01000000 Waves

2022.06.09 17:32 [2088966] smart account 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw > SELF 0.00000000 Waves

{ "type": 13, "id": "7MyNfWvTthGaMoHkBeyWkUzM4NSpAVGzu5HdCybpZRax", "fee": 1000000, "feeAssetId": null, "timestamp": 1654785165121, "version": 2, "chainId": 84, "sender": "3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw", "senderPublicKey": "GTKqLSK6nuFkRdebB5SmTwTU2DnTeLMvhymCFfT2CxX2", "proofs": [ "4j8pnaQr46N8LgQa4A6TyJ2CwBHmVNeX8yZhQs9zUVwto4JcbAa5EjAZbm21g58E6V97w552ZF55QzQ4feJfZWCp" ], "script": "base64:AAIFAAAAAAAAAA0IAhIAEgASAwoBCBIAAAAADQAAAAAESEFTSAEAAAAgmSXATeL679tzjy9/h38GdVeEwua5fh4H7zVBVc9zfqsAAAAACEtyb3NzQ2FyAQAAACA17Ai4nx+XQvdoMhd97kphQjilBs89yl0u1OKQBmiyuwAAAAAGVG93aW5nAQAAACAvNWf0XFc4QsdFX00ztYedHPzcA/SLYWxdhT+TFvjiSgAAAAAIZEFwcEZlZXMBAAAAGgFXmmsBl+me2GY2rZkxvCzjge2XpkSYbbyLAAAAAAlBZG1pbmRBcHABAAAAGgFX0ENC4hyEvpuahrzfeMpqX84GIahkahAOAAAAAAlNaW5BbW91bnQAAAAAAAAAArwAAAAADktyb3NzQ2FyUmV3YXJkAAAAAAAAAAABAAAAAAxUb3dpbmdSZXdhcmQAAAAAAAAAAAEAAAAAClJlZmVycmVUaXAAAAAAAAAAAAEAAAAADG1pbkpvaW5XZWVrcwAAAAAAAAAACAAAAAAKVGltZVRvd2luZwAAAAAAAAAAAgAAAAAEV2VlawAAAAAAAAAACgAAAAADRGF5AAAAAAAAAAAFAAAABAAAAAFpAQ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Z2h0BQAAABRMYXN0VG93aW5nQmxvY2tWYWx1ZQUAAAADRGF5CQAAAgAAAAEJAAEsAAAAAgkAASwAAAACAgAAACRZb3UgY2Fubm90IGNsYWltIHRoZSByZXdhcmQgYmVmb3JlOiAJAAGkAAAAAQkAAGkAAAACCQAAZQAAAAIFAAAABmhlaWdodAUAAAAUTGFzdFRvd2luZ0Jsb2NrVmFsdWUFAAAAA0RheQIAAAAFIGRheXMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAABBfTGFzdFRvd2luZ0Jsb2NrBQAAAAZoZWlnaHQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCQAAaAAAAAIFAAAADFRvd2luZ1Jld2FyZAAAAAAABfXhAAUAAAAGVG93aW5nBQAAAANuaWwAAAAAv+NkZQ==", "height": 2088966, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Bs3eFB1nEf5JHF9FbKZnqhRuAwfrbcHSB8aLtktFPn9d Next: BkcwhRGszZj1UQSZxT8maECjXwz4j5whpkaRS36Pfq2u Diff:
OldNewDifferences
2626 let l = 10
2727
2828 let m = 5
29+
30+@Callable(n)
31+func ReceiveFakeHASHForTest () = [ScriptTransfer(n.caller, (10000 * 100000000), a)]
32+
33+
2934
3035 @Callable(n)
3136 func DepositHASH () = {
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 = 2
2525
2626 let l = 10
2727
2828 let m = 5
29+
30+@Callable(n)
31+func ReceiveFakeHASHForTest () = [ScriptTransfer(n.caller, (10000 * 100000000), a)]
32+
33+
2934
3035 @Callable(n)
3136 func DepositHASH () = {
3237 let o = (toBase58String(n.caller.bytes) + "_Deposit")
3338 let p = {
3439 let q = getInteger(this, o)
3540 if ($isInstanceOf(q, "Int"))
3641 then {
3742 let r = q
3843 r
3944 }
4045 else 0
4146 }
4247 let s = if ((size(n.payments) == 1))
4348 then n.payments[0]
4449 else throw("Attached payment is required")
4550 if (if (((f * 100000000) > s.amount))
4651 then true
4752 else (s.assetId != a))
4853 then throw("Can only deposit HASH tokens, and minimum amount is 700 HASH")
4954 else {
5055 let t = (p + s.amount)
5156 [IntegerEntry((toBase58String(n.caller.bytes) + "_Deposit"), t), IntegerEntry((toBase58String(n.caller.bytes) + "_DepositBlock"), height), ScriptTransfer(n.caller, (g * 100000000), b)]
5257 }
5358 }
5459
5560
5661
5762 @Callable(n)
5863 func RewardReferrer (u) = if ((u == ""))
5964 then throw("Referrer Wallet Address cannot be empty !")
6065 else {
6166 let v = addressFromStringValue(u)
6267 let o = (toBase58String(n.caller.bytes) + "_Deposit")
6368 let w = (toBase58String(n.caller.bytes) + "_TippedStatus")
6469 let p = {
6570 let q = getInteger(this, o)
6671 if ($isInstanceOf(q, "Int"))
6772 then {
6873 let r = q
6974 r
7075 }
7176 else 0
7277 }
7378 let x = {
7479 let q = getString(this, w)
7580 if ($isInstanceOf(q, "String"))
7681 then {
7782 let r = q
7883 r
7984 }
8085 else "NO"
8186 }
8287 if ((x == "YES"))
8388 then throw("You already tipped a User, you only can tip once a user")
8489 else if (((f * 100000000) > p))
8590 then throw((("To tip your referrer you must have at least deposited: " + toString(f)) + " HASH"))
8691 else [StringEntry((toBase58String(n.caller.bytes) + "_TippedStatus"), "YES"), ScriptTransfer(v, (i * 100000000), b)]
8792 }
8893
8994
9095
9196 @Callable(n)
9297 func RequestTowing () = {
9398 let o = (toBase58String(n.caller.bytes) + "_Deposit")
9499 let y = (toBase58String(n.caller.bytes) + "_DepositBlock")
95100 let z = (toBase58String(n.caller.bytes) + "_LastTowingBlock")
96101 let p = {
97102 let q = getInteger(this, o)
98103 if ($isInstanceOf(q, "Int"))
99104 then {
100105 let r = q
101106 r
102107 }
103108 else 0
104109 }
105110 let A = {
106111 let q = getInteger(this, y)
107112 if ($isInstanceOf(q, "Int"))
108113 then {
109114 let r = q
110115 r
111116 }
112117 else 0
113118 }
114119 let B = {
115120 let q = getInteger(this, z)
116121 if ($isInstanceOf(q, "Int"))
117122 then {
118123 let r = q
119124 r
120125 }
121126 else 0
122127 }
123128 if (((f * 100000000) > ((p * (height - A)) / l)))
124129 then throw(("You should hav deposited at least: " + toString((f * 100000000))))
125130 else if (((j * l) > (height - A)))
126131 then throw((("You should at least be a member of " + toString(j)) + " Weeks"))
127132 else if (((k * m) > ((height - B) / m)))
128133 then throw((("You cannot claim the reward before: " + toString(((height - B) / m))) + " days"))
129134 else [IntegerEntry((toBase58String(n.caller.bytes) + "_LastTowingBlock"), height), ScriptTransfer(n.caller, (h * 100000000), c)]
130135 }
131136
132137

github/deemru/w8io/169f3d6 
50.66 ms