tx · Gmmduagmq3zSqbcDVeqYDrdTVZQUiGgJhK5o7cut4ryr

3NCLRHPm5VYMStKzvP2kkc5mxGSH9wtWAtK:  -0.01000000 Waves

2022.05.26 20:47 [2068962] smart account 3NCLRHPm5VYMStKzvP2kkc5mxGSH9wtWAtK > SELF 0.00000000 Waves

{ "type": 13, "id": "Gmmduagmq3zSqbcDVeqYDrdTVZQUiGgJhK5o7cut4ryr", "fee": 1000000, "feeAssetId": null, "timestamp": 1653587274092, "version": 2, "chainId": 84, "sender": "3NCLRHPm5VYMStKzvP2kkc5mxGSH9wtWAtK", "senderPublicKey": "2bV4VobJC5a6L6e7or9PFXQhQ1KtkZW1UYzjAvMzs6A8", "proofs": [ "2MuCYMSFvdWiC8hsbAPLrDMZrC1uMxT2k1aKzJg1T8LVGosyxsMhhXrcCdk3anCBpJu88hYEAVhyskwfb8YPEuHD" ], "script": "base64:AAIFAAAAAAAAABkIAhIAEgUKAwgICBIDCgEBEgcKBQgIAQEBAAAACwAAAAAEQlVzZAEAAAAgl0pBq34KfUugAqFVxnXIAChne47NFwAe2d/wiUR5CAEAAAAABFVTRFQBAAAAIJdKQat+Cn1LoAKhVcZ1yAAoZ3uOzRcAHtnf8IlEeQgBAAAAAARVU0RDAQAAACCXSkGrfgp9S6ACoVXGdcgAKGd7js0XAB7Z3/CJRHkIAQAAAAADQlRDAQAAACCXSkGrfgp9S6ACoVXGdcgAKGd7js0XAB7Z3/CJRHkIAQAAAAADRVRIAQAAACCXSkGrfgp9S6ACoVXGdcgAKGd7js0XAB7Z3/CJRHkIAQAAAAADQk5CAQAAACCXSkGrfgp9S6ACoVXGdcgAKGd7js0XAB7Z3/CJRHkIAQAAAAAEVVNETgEAAAAgl0pBq34KfUugAqFVxnXIAChne47NFwAe2d/wiUR5CAEAAAAABEhBU0gBAAAAIJdKQat+Cn1LoAKhVcZ1yAAoZ3uOzRcAHtnf8IlEeQgBAAAAAARLVVNEAQAAACCXSkGrfgp9S6ACoVXGdcgAKGd7js0X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VzZGMgY2Fubm90IHJlYWxpemUgYW55IHBheW1lbnQJAAUUAAAAAgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACBQAAAARVc2VyAgAAAAhfUGF5bWVudAAAAAAAAAAAAAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAABFBZGRyZXNzRnJlZUxhbmNlcgkAAGkAAAACCQAAaAAAAAIFAAAADFRvRnJlZWxhbmNlcgUAAAAGYW1vdW50AAAAAAAAAABkBQAAAAlBc3NldFVzZWQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAALQWRkcmVzc1VzZXIJAABpAAAAAgkAAGgAAAACBQAAAAZUb1VzZXIFAAAABmFtb3VudAAAAAAAAAAAZAUAAAAJQXNzZXRVc2VkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAACWRBcHBGcmVlcwkAAGkAAAACCQAAaAAAAAIFAAAACEFkbWluRmVlBQAAAAZhbW91bnQAAAAAAAAAAGQFAAAACUFzc2V0VXNlZAUAAAADbmlsBQAAAAlBc3NldFVzZWQAAAAAiBuIlA==", "height": 2068962, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Dqbu1nz8dSjKedPj8xLzQPABgp7tSF2KkFMHgRZdUoWq Next: DGFsNrb4gZ5xz9rqtEM1oF8boPDFCYm2uvzDia6D9Hwh Diff:
OldNewDifferences
3232 func DepositFunds (m,n,o) = {
3333 let p = (toBase58String(l.caller.bytes) + "_Payment")
3434 let q = {
35- let r = addressFromString(o)
35+ let r = addressFromStringValue(o)
3636 if ($isInstanceOf(r, "Address"))
3737 then {
3838 let s = r
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 Reset () = [IntegerEntry((toBase58String(l.caller.bytes) + "_Payment"), 0), IntegerEntry((toBase58String(l.caller.bytes) + "_Paidtrx"), 0)]
2828
2929
3030
3131 @Callable(l)
3232 func DepositFunds (m,n,o) = {
3333 let p = (toBase58String(l.caller.bytes) + "_Payment")
3434 let q = {
35- let r = addressFromString(o)
35+ let r = addressFromStringValue(o)
3636 if ($isInstanceOf(r, "Address"))
3737 then {
3838 let s = r
3939 s
4040 }
4141 else throw("Freelancer is not valid, should be a Waves Wallet Address")
4242 }
4343 let t = {
4444 let r = getInteger(this, p)
4545 if ($isInstanceOf(r, "Int"))
4646 then {
4747 let s = r
4848 s
4949 }
5050 else 0
5151 }
5252 if ((t != 0))
5353 then throw("You have already deposited funds, deposits can only be done once")
5454 else {
5555 let u = if ((size(l.payments) == 1))
5656 then l.payments[0]
5757 else throw("Attached payment is required")
5858 if (if (if (if (if (if (if (if (if (if ((u.assetId != a))
5959 then (u.assetId != b)
6060 else false)
6161 then (u.assetId != c)
6262 else false)
6363 then (u.assetId != d)
6464 else false)
6565 then (u.assetId != e)
6666 else false)
6767 then (u.assetId != f)
6868 else false)
6969 then (u.assetId != g)
7070 else false)
7171 then (u.assetId != h)
7272 else false)
7373 then (u.assetId != i)
7474 else false)
7575 then isDefined(u.assetId)
7676 else false)
7777 then throw("Can only deposit accepted tokens")
7878 else if (if (if ((m == ""))
7979 then true
8080 else (n == ""))
8181 then true
8282 else (o == ""))
8383 then throw("Job Scope, Deliverables desc and Freelancer Wallet Address cannot be empty")
8484 else {
8585 let v = if (isDefined(u.assetId))
8686 then toBase58String(value(u.assetId))
8787 else "Waves"
8888 [StringEntry((toBase58String(l.caller.bytes) + "_Scope"), m), StringEntry((toBase58String(l.caller.bytes) + "_Deliv"), n), StringEntry((toBase58String(l.caller.bytes) + "_Asset"), v), StringEntry((toBase58String(l.caller.bytes) + "_Freelancer"), o), IntegerEntry((toBase58String(l.caller.bytes) + "_Payment"), u.amount)]
8989 }
9090 }
9191 }
9292
9393
9494
9595 @Callable(l)
9696 func PayFreelancer (w) = {
9797 let p = (toBase58String(l.caller.bytes) + "_Payment")
9898 let o = (toBase58String(l.caller.bytes) + "_Freelancer")
9999 let x = (toBase58String(l.caller.bytes) + "_Asset")
100100 let y = (toBase58String(l.caller.bytes) + "_Paidtrx")
101101 let t = {
102102 let r = getInteger(this, p)
103103 if ($isInstanceOf(r, "Int"))
104104 then {
105105 let s = r
106106 s
107107 }
108108 else 0
109109 }
110110 let z = {
111111 let r = getInteger(this, y)
112112 if ($isInstanceOf(r, "Int"))
113113 then {
114114 let s = r
115115 s
116116 }
117117 else 0
118118 }
119119 let A = getStringValue(this, o)
120120 let B = getStringValue(this, x)
121121 let C = addressFromStringValue(A)
122122 let D = Address(j)
123123 let v = if ((B == "Waves"))
124124 then unit
125125 else fromBase58String(B)
126126 if ((0 >= (((95 * t) / 100) - (w * 100000000))))
127127 then throw(("You do not have enough funds to make payment, your available funds are: " + toString((t / 100000000))))
128128 else if (if ((z >= 12))
129129 then (t > 0)
130130 else false)
131131 then throw("You have already done 12 payments, you cannot make more payments")
132132 else {
133133 let E = if ((z == 11))
134134 then 0
135135 else (t - (w * 100000000))
136136 let F = if ((z == 11))
137137 then ((95 * t) / 100)
138138 else ((95 * w) * 1000000)
139139 let G = if ((z == 11))
140140 then ((5 * t) / 100)
141141 else ((5 * w) * 1000000)
142142 let H = if ((z == 11))
143143 then 0
144144 else (z + 1)
145145 $Tuple2([IntegerEntry((toBase58String(l.caller.bytes) + "_Payment"), E), IntegerEntry((toBase58String(l.caller.bytes) + "_Paidtrx"), H), ScriptTransfer(C, F, v), ScriptTransfer(D, G, v)], v)
146146 }
147147 }
148148
149149
150150
151151 @Callable(l)
152152 func AdminTransfer (I,J,K,L,M) = if ((l.caller.bytes != k))
153153 then throw("Only Admin can do this")
154154 else if ((((L + K) + M) != 100))
155155 then throw("Total of Percentages cannot be different from 100%")
156156 else {
157157 let p = (I + "_Payment")
158158 let o = (I + "_Freelancer")
159159 let x = (toBase58String(l.caller.bytes) + "_Asset")
160160 let t = {
161161 let r = getInteger(this, p)
162162 if ($isInstanceOf(r, "Int"))
163163 then {
164164 let s = r
165165 s
166166 }
167167 else 0
168168 }
169169 let A = getStringValue(this, o)
170170 let C = addressFromStringValue(A)
171171 let B = getStringValue(this, x)
172172 let D = Address(j)
173173 let N = addressFromStringValue(I)
174174 let v = if ((B == "Waves"))
175175 then unit
176176 else fromBase58String(B)
177177 if ((t == 0))
178178 then throw("User's balance is 0 BUsdc cannot realize any payment")
179179 else $Tuple2([IntegerEntry((I + "_Payment"), 0), ScriptTransfer(C, ((K * t) / 100), v), ScriptTransfer(N, ((L * t) / 100), v), ScriptTransfer(D, ((M * t) / 100), v)], v)
180180 }
181181
182182

github/deemru/w8io/169f3d6 
36.37 ms