tx · CGFfGMD9cV3M9Kg7V5kM2jnNm2Jv3A1EQYCrbHshktSN 3N2uKeePNFjWTA1HgzWDRC1DTENWkn1S9ct: -0.01000000 Waves 2020.10.18 15:33 [1226025] smart account 3N2uKeePNFjWTA1HgzWDRC1DTENWkn1S9ct > SELF 0.00000000 Waves
{ "type": 13, "id": "CGFfGMD9cV3M9Kg7V5kM2jnNm2Jv3A1EQYCrbHshktSN", "fee": 1000000, "feeAssetId": null, "timestamp": 1603024428034, "version": 2, "chainId": 84, "sender": "3N2uKeePNFjWTA1HgzWDRC1DTENWkn1S9ct", "senderPublicKey": "2Zu93Nn4XQDQJh61td98RYfNB44AtMrZeguWMuNBS41n", "proofs": [ "62d4638RUQakaTwKZjsjY72qoAwcNqrXH7LEhEsV4VBoxUnJCv57zRsx4DwYmDGLGadCywX25p9kCeULjR3UY824" ], "script": "base64:AAIDAAAAAAAAAA8IARIAEgASABIDCgEBEgAAAAAAAAAABQAAAAFpAQAAAAhwYXlZaWVsZAAAAAAEAAAAC0dvdmVyblRva2VuAQAAACC8BnLNTH75zY/85pKTg3cOi9DRRgrZqRPS5vvLPGg8zQQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA1jdXJyZW50QW1vdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAACmN1cnJlbnRLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAMJAABmAAAAAgUAAAANY3VycmVudEFtb3VudAAAAAAAAAAAAAQAAAARR292ZXJuVG9rZW5BbW91bnQJAAPrAAAAAgUAAAAEdGhpcwUAAAALR292ZXJuVG9rZW4DCQAAZgAAAAIAAAAAAAAAAAEFAAAAEUdvdmVyblRva2VuQW1vdW50CQAAAgAAAAECAAAAIU5vIGVub3VnaCBHb3Zlcm5Ub2tlbiBJbiBDb250cmFjdA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AAAAQIAAAA0WW91IGFyZSBub3QgdGhlIHdpbm5lciBoZW5jZSBjYW5ub3QgY2xhaW0gdGhlIHJld2FyZAMDCQAAZgAAAAIFAAAAFVVzZXJHb3Zlcm5Ub2tlbkFtb3VudAAAAAAAAAAAZAkAAGYAAAACBQAAABVVc2VyU3Rha2VkVG9rZW5BbW91bnQAAAAAAAAAAAAHCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAALd2lubmVyUHJpemUFAAAAC1ByaXplQW1vdW50CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAdGdW5kQm94AAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABJVc2VyR292ZXJuVG9rZW5LZXkAAAAAAAAAAGQFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAp3aW5BZGRyZXNzBQAAAAtQcml6ZUFtb3VudAUAAAALU3Rha2VkVG9rZW4JAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAAAABkBQAAAAtHb3Zlcm5Ub2tlbgUAAAADbmlsCQAAAgAAAAECAAAAR1lvdSBuZWVkIHRvIGhhdmUgU1Rha2VkIGFuZCBHb3Zlcm5Ub2tlbiBpbiB0aGUgQ29udHJhY3QgdG8gY2xhaW0gcmV3YXJkAAAAAIawSJQ=", "height": 1226025, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: DfaJDAhf9BA8HXEhooEeDSCAr1A1HPqw1mVHopVpURFV Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | ||
5 | + | ||
6 | + | @Callable(a) | |
7 | + | func payYield () = { | |
8 | + | let b = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ' | |
9 | + | let c = toBase58String(a.caller.bytes) | |
10 | + | let d = { | |
11 | + | let e = getInteger(this, c) | |
12 | + | if ($isInstanceOf(e, "Int")) | |
13 | + | then { | |
14 | + | let f = e | |
15 | + | f | |
16 | + | } | |
17 | + | else 0 | |
18 | + | } | |
19 | + | if ((d > 0)) | |
20 | + | then { | |
21 | + | let g = assetBalance(this, b) | |
22 | + | if ((1 > g)) | |
23 | + | then throw("No enough GovernToken In Contract") | |
24 | + | else ScriptResult(WriteSet([DataEntry(c, 10)]), TransferSet([ScriptTransfer(a.caller, 1, b)])) | |
25 | + | } | |
26 | + | else throw("You need to deposit Collateral Token to receive Govern Token") | |
27 | + | } | |
28 | + | ||
29 | + | ||
30 | + | ||
31 | + | @Callable(a) | |
32 | + | func Stake () = { | |
33 | + | let h = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN' | |
34 | + | let b = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ' | |
35 | + | let i = extract(a.payment) | |
36 | + | if (if (isDefined(i.assetId)) | |
37 | + | then (extract(i.assetId) == h) | |
38 | + | else false) | |
39 | + | then { | |
40 | + | let c = ((toBase58String(a.caller.bytes) + "_") + toBase58String(h)) | |
41 | + | let d = { | |
42 | + | let e = getInteger(this, c) | |
43 | + | if ($isInstanceOf(e, "Int")) | |
44 | + | then { | |
45 | + | let f = e | |
46 | + | f | |
47 | + | } | |
48 | + | else 0 | |
49 | + | } | |
50 | + | let j = (d + i.amount) | |
51 | + | let g = assetBalance(this, b) | |
52 | + | if ((1 > g)) | |
53 | + | then throw("No enough GovernToken In Contract") | |
54 | + | else ScriptResult(WriteSet([DataEntry(c, 10), DataEntry(c, j)]), TransferSet([ScriptTransfer(a.caller, 10, b)])) | |
55 | + | } | |
56 | + | else throw("Can deposit only MyToken") | |
57 | + | } | |
58 | + | ||
59 | + | ||
60 | + | ||
61 | + | @Callable(a) | |
62 | + | func PayToken () = { | |
63 | + | let b = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ' | |
64 | + | let i = extract(a.payment) | |
65 | + | if (if (isDefined(i.assetId)) | |
66 | + | then (extract(i.assetId) == b) | |
67 | + | else false) | |
68 | + | then { | |
69 | + | let c = ((toBase58String(a.caller.bytes) + "_") + toBase58String(b)) | |
70 | + | let d = { | |
71 | + | let e = getInteger(this, c) | |
72 | + | if ($isInstanceOf(e, "Int")) | |
73 | + | then { | |
74 | + | let f = e | |
75 | + | f | |
76 | + | } | |
77 | + | else 0 | |
78 | + | } | |
79 | + | let j = (d + i.amount) | |
80 | + | let g = assetBalance(this, b) | |
81 | + | WriteSet([DataEntry(c, j)]) | |
82 | + | } | |
83 | + | else throw("Can deposit only Govern Token") | |
84 | + | } | |
85 | + | ||
86 | + | ||
87 | + | ||
88 | + | @Callable(a) | |
89 | + | func withdrawFunds (k) = { | |
90 | + | let h = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN' | |
91 | + | let b = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ' | |
92 | + | let c = toBase58String(a.caller.bytes) | |
93 | + | let d = { | |
94 | + | let e = getInteger(this, c) | |
95 | + | if ($isInstanceOf(e, "Int")) | |
96 | + | then { | |
97 | + | let f = e | |
98 | + | f | |
99 | + | } | |
100 | + | else 0 | |
101 | + | } | |
102 | + | let j = (d - k) | |
103 | + | if ((0 > k)) | |
104 | + | then throw("Can't withdraw negative amount") | |
105 | + | else if ((0 > j)) | |
106 | + | then throw("User cannot withdraw more than deposited funds") | |
107 | + | else { | |
108 | + | let g = assetBalance(this, b) | |
109 | + | if ((1 > g)) | |
110 | + | then throw("No enough GovernToken In Contract") | |
111 | + | else ScriptResult(WriteSet([DataEntry(c, 1), DataEntry(c, j)]), TransferSet([ScriptTransfer(a.caller, 1, b), ScriptTransfer(a.caller, k, h)])) | |
112 | + | } | |
113 | + | } | |
114 | + | ||
115 | + | ||
116 | + | ||
117 | + | @Callable(a) | |
118 | + | func ClaimPrize () = { | |
119 | + | let l = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN' | |
120 | + | let b = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ' | |
121 | + | let m = "3N1QzUHdfyXmKVFAn9TPHG7iuW4uK53pfXA" | |
122 | + | let n = Address(base58'3N1QzUHdfyXmKVFAn9TPHG7iuW4uK53pfXA') | |
123 | + | let o = Address(base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD') | |
124 | + | let p = "3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD" | |
125 | + | let q = ((toBase58String(a.caller.bytes) + "_") + toBase58String(b)) | |
126 | + | let r = ((toBase58String(a.caller.bytes) + "_") + toBase58String(b)) | |
127 | + | let s = { | |
128 | + | let e = getInteger(this, q) | |
129 | + | if ($isInstanceOf(e, "Int")) | |
130 | + | then { | |
131 | + | let f = e | |
132 | + | f | |
133 | + | } | |
134 | + | else 0 | |
135 | + | } | |
136 | + | let t = { | |
137 | + | let e = getInteger(this, r) | |
138 | + | if ($isInstanceOf(e, "Int")) | |
139 | + | then { | |
140 | + | let f = e | |
141 | + | f | |
142 | + | } | |
143 | + | else 0 | |
144 | + | } | |
145 | + | let u = { | |
146 | + | let e = getInteger(this, p) | |
147 | + | if ($isInstanceOf(e, "Int")) | |
148 | + | then { | |
149 | + | let f = e | |
150 | + | f | |
151 | + | } | |
152 | + | else 0 | |
153 | + | } | |
154 | + | if ((u == 0)) | |
155 | + | then throw("No prize to Claim") | |
156 | + | else if ((q != m)) | |
157 | + | then throw("You are not the winner hence cannot claim the reward") | |
158 | + | else if (if ((s > 100)) | |
159 | + | then (t > 0) | |
160 | + | else false) | |
161 | + | then ScriptResult(WriteSet([DataEntry(m, u), DataEntry(p, 0), DataEntry(q, 100)]), TransferSet([ScriptTransfer(n, u, l), ScriptTransfer(a.caller, 100, b)])) | |
162 | + | else throw("You need to have STaked and GovernToken in the Contract to claim reward") | |
163 | + | } | |
164 | + | ||
165 | + |
github/deemru/w8io/169f3d6 33.69 ms ◑