tx · HwW2NWCQKXQyZQ5C7ULZVk4SBW1932oc9D6q8cxKLCAU

3NCLRHPm5VYMStKzvP2kkc5mxGSH9wtWAtK:  -0.01000000 Waves

2022.05.23 19:06 [2064550] smart account 3NCLRHPm5VYMStKzvP2kkc5mxGSH9wtWAtK > SELF 0.00000000 Waves

{ "type": 13, "id": "HwW2NWCQKXQyZQ5C7ULZVk4SBW1932oc9D6q8cxKLCAU", "fee": 1000000, "feeAssetId": null, "timestamp": 1653321971227, "version": 2, "chainId": 84, "sender": "3NCLRHPm5VYMStKzvP2kkc5mxGSH9wtWAtK", "senderPublicKey": "2bV4VobJC5a6L6e7or9PFXQhQ1KtkZW1UYzjAvMzs6A8", "proofs": [ "ZFYFSXxbKtMMtoB2sjrwz36aWNRZgp7g2W8DqgHB6Eka6usZi8siYsUuBJaVgUMH4ZgVdVqjBgAWDuZt9i9ktv6" ], "script": "base64:AAIFAAAAAAAAABUIAhIFCgMICAgSAwoBARIFCgMICAEAAAALAAAAAARCVXNkAQAAACCXSkGrfgp9S6ACoVXGdcgAKGd7js0XAB7Z3/CJRHkIAQAAAAAEVVNEVAEAAAAgl0pBq34KfUugAqFVxnXIAChne47NFwAe2d/wiUR5CAEAAAAABFVTREMBAAAAIJdKQat+Cn1LoAKhVcZ1yAAoZ3uOzRcAHtnf8IlEeQgBAAAAAANCVEMBAAAAIJdKQat+Cn1LoAKhVcZ1yAAoZ3uOzRcAHtnf8IlEeQgBAAAAAANFVEgBAAAAIJdKQat+Cn1LoAKhVcZ1yAAoZ3uOzRcAHtnf8IlEeQgBAAAAAANCTkIBAAAAIJdKQat+Cn1LoAKhVcZ1yAAoZ3uOzRcAHtnf8IlEeQgBAAAAAARVU0ROAQAAACCXSkGrfgp9S6ACoVXGdcgAKGd7js0XAB7Z3/CJRHkIAQAAAAAESEFTSAEAAAAgl0pBq34KfUugAqFVxnXIAChne47NFwAe2d/wiUR5CAEAAAAABEtVU0QBAAAAIJdKQat+Cn1LoAKhVcZ1yAAoZ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5zZmVyAAAAAwUAAAAJZEFwcEZyZWVzCQAAaQAAAAIJAABoAAAAAgAAAAAAAAAABQUAAAAGYW1vdW50AAAAAAAAAABkBQAAAARCVXNkBQAAAANuaWwFAAAABEJVc2QAAAAAb7QgVQ==", "height": 2064550, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5EvwzSL3Mw6aZNm7SzXGx1nLLSXB5dE6kNJo8E9RpdU4 Next: Gn7frxoYTVgijfn9n2MkD4HmnzA5R5exDpwvXttFE3sP Diff:
OldNewDifferences
2828 let p = if ((size(l.payments) == 1))
2929 then l.payments[0]
3030 else throw("Attached payment is required")
31- if (if (if (if (if (if (if (if (if (if ((p.assetId != a))
31+ if (if (if (if (if (if (if (if (if ((p.assetId != a))
3232 then (p.assetId != b)
3333 else false)
3434 then (p.assetId != c)
4444 then (p.assetId != h)
4545 else false)
4646 then (p.assetId != i)
47- else false)
48- then isDefined(p.assetId)
4947 else false)
5048 then if (if (if ((m == ""))
5149 then true
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k'
55
66 let b = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k'
77
88 let c = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k'
99
1010 let d = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k'
1111
1212 let e = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k'
1313
1414 let f = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k'
1515
1616 let g = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k'
1717
1818 let h = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k'
1919
2020 let i = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k'
2121
2222 let j = base58'3N9Lfz79kZAEUupwESSboYFyygo1nQguVXo'
2323
2424 let k = base58'3Mx3pn4yMcBccM59UrDGjbbAkVsRYBw38tB'
2525
2626 @Callable(l)
2727 func DepositFunds (m,n,o) = {
2828 let p = if ((size(l.payments) == 1))
2929 then l.payments[0]
3030 else throw("Attached payment is required")
31- if (if (if (if (if (if (if (if (if (if ((p.assetId != a))
31+ if (if (if (if (if (if (if (if (if ((p.assetId != a))
3232 then (p.assetId != b)
3333 else false)
3434 then (p.assetId != c)
3535 else false)
3636 then (p.assetId != d)
3737 else false)
3838 then (p.assetId != e)
3939 else false)
4040 then (p.assetId != f)
4141 else false)
4242 then (p.assetId != g)
4343 else false)
4444 then (p.assetId != h)
4545 else false)
4646 then (p.assetId != i)
47- else false)
48- then isDefined(p.assetId)
4947 else false)
5048 then if (if (if ((m == ""))
5149 then true
5250 else (n == ""))
5351 then true
5452 else (o == ""))
5553 then throw("Job Scope, Deliverables desc and Freelancer Wallet Address cannot be empty")
5654 else [StringEntry((toBase58String(l.caller.bytes) + "_Scope"), m), StringEntry((toBase58String(l.caller.bytes) + "_Deliv"), n), StringEntry((toBase58String(l.caller.bytes) + "_Freelancer"), o), IntegerEntry((toBase58String(l.caller.bytes) + "_Payment"), p.amount)]
5755 else throw("Can only deposit accepted tokens")
5856 }
5957
6058
6159
6260 @Callable(l)
6361 func PayFreelancer (q) = {
6462 let r = (toBase58String(l.caller.bytes) + "_Payment")
6563 let o = (toBase58String(l.caller.bytes) + "_Freelancer")
6664 let s = (toBase58String(l.caller.bytes) + "_Paidtrx")
6765 let t = {
6866 let u = getInteger(this, r)
6967 if ($isInstanceOf(u, "Int"))
7068 then {
7169 let v = u
7270 v
7371 }
7472 else 0
7573 }
7674 let w = {
7775 let u = getInteger(this, s)
7876 if ($isInstanceOf(u, "Int"))
7977 then {
8078 let v = u
8179 v
8280 }
8381 else 0
8482 }
8583 let x = getStringValue(this, o)
8684 let y = addressFromStringValue(x)
8785 let z = Address(j)
8886 if ((0 >= (t - q)))
8987 then throw(("You do not have enough funds to make payment, your available funds are: " + toString((t / 100000000))))
9088 else if ((w > 12))
9189 then throw("You have already done 12 payments, you cannot make more payments")
9290 else {
9391 let A = if ((w == 11))
9492 then t
9593 else (t - q)
9694 $Tuple2([IntegerEntry((toBase58String(l.caller.bytes) + "_Payment"), A), IntegerEntry((toBase58String(l.caller.bytes) + "_Paidtrx"), (w + 1)), ScriptTransfer(y, ((95 * t) / 100), a), ScriptTransfer(z, ((5 * t) / 100), a)], a)
9795 }
9896 }
9997
10098
10199
102100 @Callable(l)
103101 func AdminTransfer (B,C,D) = if ((l.caller.bytes != k))
104102 then throw("Only Admin can do this")
105103 else {
106104 let r = (B + "_Payment")
107105 let o = (B + "_Freelancer")
108106 let t = {
109107 let u = getInteger(this, r)
110108 if ($isInstanceOf(u, "Int"))
111109 then {
112110 let v = u
113111 v
114112 }
115113 else 0
116114 }
117115 let x = getStringValue(this, o)
118116 let y = addressFromStringValue(x)
119117 let z = Address(j)
120118 let E = addressFromStringValue(B)
121119 if ((t == 0))
122120 then throw("User's balance is 0 BUsdc cannot realize any payment")
123121 else $Tuple2([IntegerEntry((B + "_Payment"), 0), ScriptTransfer(y, ((D * (95 * t)) / 10000), a), ScriptTransfer(E, (((100 - D) * (95 * t)) / 10000), a), ScriptTransfer(z, ((5 * t) / 100), a)], a)
124122 }
125123
126124

github/deemru/w8io/169f3d6 
51.67 ms