tx · B4NCscQpUgg42CJw4mjsafahK7ecC9RwyWYNm2RgKxP9

3NCLRHPm5VYMStKzvP2kkc5mxGSH9wtWAtK:  -0.01000000 Waves

2022.05.22 16:25 [2062940] smart account 3NCLRHPm5VYMStKzvP2kkc5mxGSH9wtWAtK > SELF 0.00000000 Waves

{ "type": 13, "id": "B4NCscQpUgg42CJw4mjsafahK7ecC9RwyWYNm2RgKxP9", "fee": 1000000, "feeAssetId": null, "timestamp": 1653225928664, "version": 2, "chainId": 84, "sender": "3NCLRHPm5VYMStKzvP2kkc5mxGSH9wtWAtK", "senderPublicKey": "2bV4VobJC5a6L6e7or9PFXQhQ1KtkZW1UYzjAvMzs6A8", "proofs": [ "2gWW8R4Toqru69wPw6SQbZdbtSY5hzSjiRxDsFp4HF7SvYYmhgY7YutG3gT8Y8438pcLQTPD4xSLLchX9oJLDQ5w" ], "script": "base64:AAIFAAAAAAAAABEIAhIFCgMICAgSABIECgIICAAAAAIAAAAABEJVc2QBAAAAIJdKQat+Cn1LoAKhVcZ1yAAoZ3uOzRcAHtnf8IlEeQgBAAAAAAhkQXBwRmVlcwEAAAAaAVTVEO4dXi2WWBlfa2VnxLZIutJS/g3SExoAAAADAAAAAWkBAAAADERlcG9zaXRGdW5kcwAAAAMAAAAJU2NvcGVEZXNjAAAADERlbGl2ZXJhYmxlcwAAABFGcmVlbGFuY2VyQWRkcmVzcwQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAHEF0dGFjaGVkIHBheW1lbnQgaXMgcmVxdWlyZWQDCQAAZgAAAAIJAABoAAAAAgAAAAAAAAAAMgAAAAAABfXhAAkAA/AAAAACCAUAAAABaQAAAAZjYWxsZXIFAAAABEJVc2QJAAACAAAAAQIAAAApWW91IG11c3QgaGF2ZSA1MCBCVXNkIGF0IGxlYXN0IHRvIGRlc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50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAEUZyZWVMYW5jZXJQYXltZW50AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAAFEZyZWVsYW5jZXJBZGRyZXNzU3RyCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzBQAAABFGcmVlbGFuY2VyQWRkcmVzcwQAAAARQWRkcmVzc0ZyZWVMYW5jZXIJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAAFEZyZWVsYW5jZXJBZGRyZXNzU3RyBAAAAAlkQXBwRnJlZXMJAQAAAAdBZGRyZXNzAAAAAQUAAAAIZEFwcEZlZXMDCQAAAAAAAAIFAAAABmFtb3VudAAAAAAAAAAAAAkAAAIAAAABAgAAADRVc2VyJ3MgYmFsYW5jZSBpcyAwIEJVc2RjIGNhbm5vdCByZWFsaXplIGFueSBwYXltZW50CQAFFAAAAAIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgUAAAAEVXNlcgIAAAAIX1BheW1lbnQAAAAAAAAAAAAJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAARQWRkcmVzc0ZyZWVMYW5jZXIJAABoAAAAAgkAAGgAAAACAAAAAAAAAABfBQAAAAZhbW91bnQAAAAAAAAPQkAFAAAABEJVc2QJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAJZEFwcEZyZWVzCQAAaAAAAAIJAABoAAAAAgAAAAAAAAAABQUAAAAGYW1vdW50AAAAAAAAD0JABQAAAARCVXNkBQAAAANuaWwFAAAABEJVc2QAAAAArWLMFA==", "height": 2062940, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GGiabJz4uaPQR7zk6f1P4Kdr6EeL4dCUxjGEiZZQRXcf Next: 97ds3z8imM8aug4XfbqRCEj9h3EFSSfoiqExdeLom6P Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k'
55
6-@Callable(b)
7-func DepositFunds (c,d,e) = {
8- let f = if ((size(b.payments) == 1))
9- then b.payments[0]
6+let b = base58'3N9Lfz79kZAEUupwESSboYFyygo1nQguVXo'
7+
8+@Callable(c)
9+func DepositFunds (d,e,f) = {
10+ let g = if ((size(c.payments) == 1))
11+ then c.payments[0]
1012 else throw("Attached payment is required")
11- if (((50 * 100000000) > assetBalance(b.caller, a)))
13+ if (((50 * 100000000) > assetBalance(c.caller, a)))
1214 then throw("You must have 50 BUsd at least to deposit")
13- else if ((50 > f.amount))
15+ else if ((50 > g.amount))
1416 then throw("Cannot deposit less than 50 Busd")
15- else if (if (if ((c == ""))
16- then true
17- else (d == ""))
17+ else if (if (if ((d == ""))
1818 then true
1919 else (e == ""))
20+ then true
21+ else (f == ""))
2022 then throw("Job Scope, Deliverables desc and Freelancer Wallet Address cannot be empty")
21- else [StringEntry((toBase58String(b.caller.bytes) + "_Scope"), c), StringEntry((toBase58String(b.caller.bytes) + "_Deliv"), d), StringEntry((toBase58String(b.caller.bytes) + "_Freelancer"), e), IntegerEntry((toBase58String(b.caller.bytes) + "_Payment"), f.amount)]
23+ else [StringEntry((toBase58String(c.caller.bytes) + "_Scope"), d), StringEntry((toBase58String(c.caller.bytes) + "_Deliv"), e), StringEntry((toBase58String(c.caller.bytes) + "_Freelancer"), f), IntegerEntry((toBase58String(c.caller.bytes) + "_Payment"), g.amount)]
2224 }
2325
2426
2527
26-@Callable(b)
28+@Callable(c)
2729 func PayFreelancer () = {
28- let g = (toBase58String(b.caller.bytes) + "_Payment")
29- let e = (toBase58String(b.caller.bytes) + "_Freelancer")
30- let h = {
31- let i = getInteger(this, g)
32- if ($isInstanceOf(i, "Int"))
30+ let h = (toBase58String(c.caller.bytes) + "_Payment")
31+ let f = (toBase58String(c.caller.bytes) + "_Freelancer")
32+ let i = {
33+ let j = getInteger(this, h)
34+ if ($isInstanceOf(j, "Int"))
3335 then {
34- let j = i
35- j
36+ let k = j
37+ k
3638 }
3739 else 0
3840 }
39- let k = getStringValue(this, e)
40- let l = addressFromStringValue(k)
41- if ((h == 0))
41+ let l = getStringValue(this, f)
42+ let m = addressFromStringValue(l)
43+ if ((i == 0))
4244 then throw("Your balance is 0 BUsdc cannot realize any payment")
43- else $Tuple2([IntegerEntry((toBase58String(b.caller.bytes) + "_Payment"), 0), ScriptTransfer(l, h, a)], a)
45+ else $Tuple2([IntegerEntry((toBase58String(c.caller.bytes) + "_Payment"), 0), ScriptTransfer(m, i, a)], a)
4446 }
4547
4648
4749
48-@Callable(b)
49-func AdminTransfer (m,n) = {
50- let g = (m + "_Payment")
51- let e = (m + "_Freelancer")
52- let h = {
53- let i = getInteger(this, g)
54- if ($isInstanceOf(i, "Int"))
50+@Callable(c)
51+func AdminTransfer (n,o) = {
52+ let h = (n + "_Payment")
53+ let f = (n + "_Freelancer")
54+ let i = {
55+ let j = getInteger(this, h)
56+ if ($isInstanceOf(j, "Int"))
5557 then {
56- let j = i
57- j
58+ let k = j
59+ k
5860 }
5961 else 0
6062 }
61- let k = getStringValue(this, e)
62- let l = addressFromStringValue(k)
63- let o = getStringValue(this, e)
64- let p = addressFromStringValue(o)
65- if ((h == 0))
63+ let l = getStringValue(this, f)
64+ let m = addressFromStringValue(l)
65+ let p = Address(b)
66+ if ((i == 0))
6667 then throw("User's balance is 0 BUsdc cannot realize any payment")
67- else $Tuple2([IntegerEntry((m + "_Payment"), 0), ScriptTransfer(l, h, a)], a)
68+ else $Tuple2([IntegerEntry((n + "_Payment"), 0), ScriptTransfer(m, ((95 * i) * 1000000), a), ScriptTransfer(p, ((5 * i) * 1000000), a)], a)
6869 }
6970
7071
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k'
55
6-@Callable(b)
7-func DepositFunds (c,d,e) = {
8- let f = if ((size(b.payments) == 1))
9- then b.payments[0]
6+let b = base58'3N9Lfz79kZAEUupwESSboYFyygo1nQguVXo'
7+
8+@Callable(c)
9+func DepositFunds (d,e,f) = {
10+ let g = if ((size(c.payments) == 1))
11+ then c.payments[0]
1012 else throw("Attached payment is required")
11- if (((50 * 100000000) > assetBalance(b.caller, a)))
13+ if (((50 * 100000000) > assetBalance(c.caller, a)))
1214 then throw("You must have 50 BUsd at least to deposit")
13- else if ((50 > f.amount))
15+ else if ((50 > g.amount))
1416 then throw("Cannot deposit less than 50 Busd")
15- else if (if (if ((c == ""))
16- then true
17- else (d == ""))
17+ else if (if (if ((d == ""))
1818 then true
1919 else (e == ""))
20+ then true
21+ else (f == ""))
2022 then throw("Job Scope, Deliverables desc and Freelancer Wallet Address cannot be empty")
21- else [StringEntry((toBase58String(b.caller.bytes) + "_Scope"), c), StringEntry((toBase58String(b.caller.bytes) + "_Deliv"), d), StringEntry((toBase58String(b.caller.bytes) + "_Freelancer"), e), IntegerEntry((toBase58String(b.caller.bytes) + "_Payment"), f.amount)]
23+ else [StringEntry((toBase58String(c.caller.bytes) + "_Scope"), d), StringEntry((toBase58String(c.caller.bytes) + "_Deliv"), e), StringEntry((toBase58String(c.caller.bytes) + "_Freelancer"), f), IntegerEntry((toBase58String(c.caller.bytes) + "_Payment"), g.amount)]
2224 }
2325
2426
2527
26-@Callable(b)
28+@Callable(c)
2729 func PayFreelancer () = {
28- let g = (toBase58String(b.caller.bytes) + "_Payment")
29- let e = (toBase58String(b.caller.bytes) + "_Freelancer")
30- let h = {
31- let i = getInteger(this, g)
32- if ($isInstanceOf(i, "Int"))
30+ let h = (toBase58String(c.caller.bytes) + "_Payment")
31+ let f = (toBase58String(c.caller.bytes) + "_Freelancer")
32+ let i = {
33+ let j = getInteger(this, h)
34+ if ($isInstanceOf(j, "Int"))
3335 then {
34- let j = i
35- j
36+ let k = j
37+ k
3638 }
3739 else 0
3840 }
39- let k = getStringValue(this, e)
40- let l = addressFromStringValue(k)
41- if ((h == 0))
41+ let l = getStringValue(this, f)
42+ let m = addressFromStringValue(l)
43+ if ((i == 0))
4244 then throw("Your balance is 0 BUsdc cannot realize any payment")
43- else $Tuple2([IntegerEntry((toBase58String(b.caller.bytes) + "_Payment"), 0), ScriptTransfer(l, h, a)], a)
45+ else $Tuple2([IntegerEntry((toBase58String(c.caller.bytes) + "_Payment"), 0), ScriptTransfer(m, i, a)], a)
4446 }
4547
4648
4749
48-@Callable(b)
49-func AdminTransfer (m,n) = {
50- let g = (m + "_Payment")
51- let e = (m + "_Freelancer")
52- let h = {
53- let i = getInteger(this, g)
54- if ($isInstanceOf(i, "Int"))
50+@Callable(c)
51+func AdminTransfer (n,o) = {
52+ let h = (n + "_Payment")
53+ let f = (n + "_Freelancer")
54+ let i = {
55+ let j = getInteger(this, h)
56+ if ($isInstanceOf(j, "Int"))
5557 then {
56- let j = i
57- j
58+ let k = j
59+ k
5860 }
5961 else 0
6062 }
61- let k = getStringValue(this, e)
62- let l = addressFromStringValue(k)
63- let o = getStringValue(this, e)
64- let p = addressFromStringValue(o)
65- if ((h == 0))
63+ let l = getStringValue(this, f)
64+ let m = addressFromStringValue(l)
65+ let p = Address(b)
66+ if ((i == 0))
6667 then throw("User's balance is 0 BUsdc cannot realize any payment")
67- else $Tuple2([IntegerEntry((m + "_Payment"), 0), ScriptTransfer(l, h, a)], a)
68+ else $Tuple2([IntegerEntry((n + "_Payment"), 0), ScriptTransfer(m, ((95 * i) * 1000000), a), ScriptTransfer(p, ((5 * i) * 1000000), a)], a)
6869 }
6970
7071

github/deemru/w8io/169f3d6 
36.47 ms