tx · HXhCWcTPfxBjG9SJEiqG3XwWDgfubBxrWKxoe55NwkKR

3N5rNyYSAsaP9QL2eQq286RhevB8msHFffu:  -0.05000000 Waves

2020.11.18 09:59 [1270466] smart account 3N5rNyYSAsaP9QL2eQq286RhevB8msHFffu > SELF 0.00000000 Waves

{ "type": 13, "id": "HXhCWcTPfxBjG9SJEiqG3XwWDgfubBxrWKxoe55NwkKR", "fee": 5000000, "feeAssetId": null, "timestamp": 1605682819142, "version": 2, "chainId": 84, "sender": "3N5rNyYSAsaP9QL2eQq286RhevB8msHFffu", "senderPublicKey": "CBTEuFN6ku1LNaPuGHHTMh2CBb3kPa5D73XXTJvKydun", "proofs": [ "4KSva7rSG7962k1VFizNgUgHVLKJ4hjfYm5seypGGaTWQJud4P7v2nS9xYFUjXk5iyZ3JircbxN6nMNZ6d2x3jfd" ], "script": "base64:AAIDAAAAAAAAACcIARIHCgUICAgICBIECgIICBIDCgEIEgMKAQgSABIDCgEBEgMKAQEAAAAQAAAAAAZ1cFZvdGUCAAAABnVwdm90ZQAAAAAMYWRtaW5BZGRyZXNzAQAAABoBVDi2IViANlgIPSCUAVQpoGSXhJ2Tw/Y0iwAAAAAFZHl6SWQBAAAAIH6rQdnOUsq3YY00nk9jVDL2OOQ/e846gXAImq8xTxZrAQAAAA9nZXRTdGFrZVBvb2xLZXkAAAAAAgAAAApzdGFrZV9wb29sAQAAAAxnZXRTdGFrZVBvb2wAAAAABAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMJAQAAAA9nZXRTdGFrZVBvb2xLZXkAAAAAAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAABAAAADGdldFN0YWtlcktleQAAAAEAAAAGc3Rha2VyCQABLAAAAAIFAAAABnN0YWtlcgIAAAAGX3N0YWtlAQAAAA9nZXRDdXJyZW50U3Rha2UAAAABAAAABnN0YWtlcgQAAAAHJG1hdGNoMAkAB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WdhaW4gbGF0ZXIDCQAAZgAAAAIFAAAABnJld2FyZAUAAAAJc3Rha2VQb29sCQAAAgAAAAECAAAAF05vIHJld2FyZHMgYXQgdGhpcyB0aW1lBAAAAAxuZXdTdGFrZVBvb2wJAABlAAAAAgUAAAAJc3Rha2VQb29sBQAAAAZyZXdhcmQEAAAADm5ld1N0YWtlQW1vdW50CQAAZQAAAAIFAAAADGN1cnJlbnRTdGFrZQUAAAAGcmV3YXJkCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAADGdldFN0YWtlcktleQAAAAEFAAAABnN0YWtlcgUAAAAObmV3U3Rha2VBbW91bnQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAAA9nZXRTdGFrZVBvb2xLZXkAAAAABQAAAAxuZXdTdGFrZVBvb2wFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAABnJld2FyZAUAAAAFZHl6SWQFAAAAA25pbAAAAACRSpmW", "height": 1270466, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HiW16mYq6KyiLmdMS3vLGTRWu8widLEP9dKFYCw9kpxg Next: 6XH57mNapFhK5QeFe4fpMET2nkXmFf9d3z95KVKQVR9D Diff:
OldNewDifferences
163163 then throw("You can only stake with DYZRUPT token")
164164 else {
165165 let J = j(i)
166- let K = fraction(G.amount, 10, 100)
166+ let K = fraction(G.amount, 5, 100)
167167 let L = (G.amount - K)
168168 let M = (J + L)
169169 let N = e()
183183 else if ((P > J))
184184 then throw("You can't withdraw an amount higher than you staked")
185185 else {
186- let Q = fraction(P, 20, 100)
186+ let Q = fraction(P, 10, 100)
187187 let R = (P - Q)
188188 let S = (J - P)
189189 let N = e()
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "upvote"
55
66 let b = base58'3Mu5woJ54s7vHJgaeNcJ4C9ByfdmMF2jpjC'
77
88 let c = base58'9XTqBQeJvdMs8VNHv6rXiJLJichg2acG7wCfYcTajQ1G'
99
1010 func d () = "stake_pool"
1111
1212
1313 func e () = {
1414 let f = getInteger(this, d())
1515 if ($isInstanceOf(f, "Int"))
1616 then {
1717 let g = f
1818 g
1919 }
2020 else 0
2121 }
2222
2323
2424 func h (i) = (i + "_stake")
2525
2626
2727 func j (i) = {
2828 let f = getInteger(this, h(i))
2929 if ($isInstanceOf(f, "Int"))
3030 then {
3131 let g = f
3232 g
3333 }
3434 else 0
3535 }
3636
3737
3838 func k (l) = (l + "_entrepreneurProfile")
3939
4040
4141 func m (l) = (l + "_status")
4242
4343
4444 func n (l,o) = if ((o == "upvote"))
4545 then (l + "_upvote")
4646 else throw("Invalid vote type")
4747
4848
4949 func p (l) = {
5050 let f = getString(this, k(l))
5151 if ($isInstanceOf(f, "String"))
5252 then {
5353 let g = f
5454 true
5555 }
5656 else false
5757 }
5858
5959
6060 func q (r) = {
6161 let f = getString(this, m(r))
6262 if ($isInstanceOf(f, "String"))
6363 then {
6464 let g = f
6565 g
6666 }
6767 else false
6868 }
6969
7070
7171 func s (r,t) = {
7272 let f = getInteger(this, n(r, t))
7373 if ($isInstanceOf(f, "Int"))
7474 then {
7575 let g = f
7676 g
7777 }
7878 else throw("Not a valid vote ID")
7979 }
8080
8181
8282 func u (v,r) = ((((v + "_") + r) + "_") + "vote")
8383
8484
8585 func w (v,r) = {
8686 let f = getString(this, u(v, r))
8787 if ($isInstanceOf(f, "String"))
8888 then {
8989 let g = f
9090 g
9191 }
9292 else ""
9393 }
9494
9595
9696 func x (v,r) = {
9797 let y = w(v, r)
9898 if ((y == ""))
9999 then true
100100 else false
101101 }
102102
103103
104104 @Callable(z)
105105 func addEntrepreneurProfile (A,B,C,D,E) = if ((z.caller.bytes != b))
106106 then throw("Only Dyzrupt Admin can call this dApp function")
107107 else {
108108 let F = toBase58String(z.transactionId)
109109 WriteSet([DataEntry(k(F), ((((((((A + "_") + B) + "_") + C) + "_") + D) + "_") + E)), DataEntry(n(F, "upvote"), 0), DataEntry(m(F), "open")])
110110 }
111111
112112
113113
114114 @Callable(z)
115115 func vote (r,t) = {
116116 let G = extract(z.payment)
117117 if ((G.amount == 0))
118118 then throw("You cannot vote without paying voting fee")
119119 else if ((G.assetId != base58'9XTqBQeJvdMs8VNHv6rXiJLJichg2acG7wCfYcTajQ1G'))
120120 then throw("You can only vote with DYZRUPT token")
121121 else if (x(toBase58String(z.caller.bytes), r))
122122 then if (p(r))
123123 then if ((q(r) == "open"))
124124 then if ((t == a))
125125 then {
126126 let H = s(r, t)
127127 let I = (H + 1)
128128 ScriptResult(WriteSet([DataEntry(n(r, t), I), DataEntry(u(toBase58String(z.caller.bytes), r), r)]), TransferSet([ScriptTransfer(this, G.amount, c)]))
129129 }
130130 else throw("Not a valid vote value")
131131 else throw("This profile is not open for voting")
132132 else throw("Invalid Profile")
133133 else throw("You can't vote twice")
134134 }
135135
136136
137137
138138 @Callable(z)
139139 func openVote (r) = if ((z.caller.bytes != b))
140140 then throw("Only Dyzrupt Admin can call this dApp function")
141141 else if (p(r))
142142 then WriteSet([DataEntry(m(r), "open")])
143143 else throw("Invalid ID")
144144
145145
146146
147147 @Callable(z)
148148 func closeVote (r) = if ((z.caller.bytes != b))
149149 then throw("Only Dyzrupt Admin can call this dApp function")
150150 else if (p(r))
151151 then WriteSet([DataEntry(m(r), "closed")])
152152 else throw("Invalid ID")
153153
154154
155155
156156 @Callable(z)
157157 func stake () = {
158158 let i = toBase58String(z.caller.bytes)
159159 let G = extract(z.payment)
160160 if ((G.amount == 0))
161161 then throw("Stake amount too low")
162162 else if ((G.assetId != base58'9XTqBQeJvdMs8VNHv6rXiJLJichg2acG7wCfYcTajQ1G'))
163163 then throw("You can only stake with DYZRUPT token")
164164 else {
165165 let J = j(i)
166- let K = fraction(G.amount, 10, 100)
166+ let K = fraction(G.amount, 5, 100)
167167 let L = (G.amount - K)
168168 let M = (J + L)
169169 let N = e()
170170 let O = (N + K)
171171 ScriptResult(WriteSet([DataEntry(h(i), M), DataEntry(d(), O)]), TransferSet(nil))
172172 }
173173 }
174174
175175
176176
177177 @Callable(z)
178178 func unstake (P) = {
179179 let i = toBase58String(z.caller.bytes)
180180 let J = j(i)
181181 if ((J == 0))
182182 then throw("You don't have any stakes")
183183 else if ((P > J))
184184 then throw("You can't withdraw an amount higher than you staked")
185185 else {
186- let Q = fraction(P, 20, 100)
186+ let Q = fraction(P, 10, 100)
187187 let R = (P - Q)
188188 let S = (J - P)
189189 let N = e()
190190 let O = (N + Q)
191191 ScriptResult(WriteSet([DataEntry(h(i), S), DataEntry(d(), O)]), TransferSet([ScriptTransfer(z.caller, R, c)]))
192192 }
193193 }
194194
195195
196196
197197 @Callable(z)
198198 func claimDailyStakeReward (T) = {
199199 let i = toBase58String(z.caller.bytes)
200200 let J = j(i)
201201 let N = e()
202202 if ((J == 0))
203203 then throw("You don't have any stakes")
204204 else if ((N == 0))
205205 then throw("Nothing in Stake pool at this time. Try again later")
206206 else if ((T > N))
207207 then throw("No rewards at this time")
208208 else {
209209 let O = (N - T)
210210 let U = (J - T)
211211 ScriptResult(WriteSet([DataEntry(h(i), U), DataEntry(d(), O)]), TransferSet([ScriptTransfer(z.caller, T, c)]))
212212 }
213213 }
214214
215215

github/deemru/w8io/169f3d6 
50.14 ms