tx · Be3dpEERHSM258dLx36HP5GFcCtvpYeUwPjWCCaDNefk 3N7Ceyu23j5bYLLkou2xqucWC8f5Ma5b3WL: -0.01660000 Waves 2020.10.21 21:16 [1230673] smart account 3N7Ceyu23j5bYLLkou2xqucWC8f5Ma5b3WL > SELF 0.00000000 Waves
{ "type": 13, "id": "Be3dpEERHSM258dLx36HP5GFcCtvpYeUwPjWCCaDNefk", "fee": 1660000, "feeAssetId": null, "timestamp": 1603304214342, "version": 2, "chainId": 84, "sender": "3N7Ceyu23j5bYLLkou2xqucWC8f5Ma5b3WL", "senderPublicKey": "4sCkx8qKE5wmxM8E1kfvNPCWnrTM2A6TTPYUQTsAWwwm", "proofs": [ "2EKYYehLycgJMgNBgLpLsR9dcfMqrkoYX933AUS4jYVYmk3RWxAeM1gACf2kZvJYzYn1tyyG1jdBQJvViMwrHiin" ], "script": "base64:AAIDAAAAAAAAABEIARIAEgASABIAEgMKAQESAAAAAAAAAAAGAAAAAWkBAAAAFFJlYWRNYXhHb3Zlcm5EZXBvc2l0AAAAAAQAAAAOR292ZXJuVG9rZW5LZXkCAAAAFUdvdmVyblRva2VuTWF4RGVwb3NpdAQAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkCAAAAGk1heEdvdmVyblRva2VuRGVwb3NpdGVyS2V5BAAAAAtTdGFrZWRUb2tlbgEAAAAgRcBshwjyRR7E4jbQIGP2jvCbtpj52Gvg2osXltv2/UMEAAAAC0dvdmVyblRva2VuAQAAACC8BnLNTH75zY/85pKTg3cOi9DRRgrZqRPS5vvLPGg8zQQAAAASVXNlclN0YWtlZFRva2VuS2V5CQABLAAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAAAFfCQACWAAAAAEFAAAAC1N0YWtlZFRva2VuBAAAABJVc2VyR292ZXJuVG9rZW5LZXkJAAEsAAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAA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W1vdW50AwkAAGYAAAACBQAAABVVc2VyR292ZXJuVG9rZW5BbW91bnQAAAAAAAAAAGQJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAtQcml6ZVdpbm5lcgUAAAALUHJpemVBbW91bnQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAEkZ1bmRCb3hTdGFrZWRUb2tlbgAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAOR292ZXJuVG9rZW5LZXkAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAElVzZXJHb3Zlcm5Ub2tlbktleQAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkCAAAAAAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAALUHJpemVBbW91bnQFAAAAC1N0YWtlZFRva2VuCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAZAUAAAALR292ZXJuVG9rZW4FAAAAA25pbAkAAAIAAAABCQABLAAAAAICAAAAR1lvdSBoYXZlIHRvIGRlcG9zaXQgMTAwIEdvdmVyblRva2VuIHRvIGNsYWltIFJld2FyZCAKIFlvdXIgQmFsYW5jZSBpczogCQABpAAAAAEFAAAAFVVzZXJHb3Zlcm5Ub2tlbkFtb3VudAAAAAAAvnFa", "height": 1230673, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4YDn6KZuPQLTJX6wcNHg3HYuJtwNrwH9owp5hEVaHMbs Next: GajDzuzNFKMxCeL17RaLgKBcgBQXX8vvy7yameqq2X4H Diff:
Old | New | Differences | |
---|---|---|---|
32 | 32 | case _ => | |
33 | 33 | 0 | |
34 | 34 | } | |
35 | - | throw((((("Winner is.....: " + Winner) + " Balance is: ") + toString(MaxGovernTokenDeposit)) + toString(currentAmount))) | |
35 | + | throw(((((("Winner is.....: " + Winner) + " Balance is: ") + toString(MaxGovernTokenDeposit)) + " | |
36 | + | Your Balance of StakedToken is: ") + toString(currentAmount))) | |
36 | 37 | } | |
37 | 38 | ||
38 | 39 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func ReadMaxGovernDeposit () = { | |
8 | 8 | let GovernTokenKey = "GovernTokenMaxDeposit" | |
9 | 9 | let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey" | |
10 | 10 | let StakedToken = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN' | |
11 | 11 | let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ' | |
12 | 12 | let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken)) | |
13 | 13 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
14 | 14 | let Winner = getStringValue(this, MaxGovernTokenDepositerKey) | |
15 | 15 | let MaxGovernTokenDeposit = match getInteger(this, GovernTokenKey) { | |
16 | 16 | case a: Int => | |
17 | 17 | a | |
18 | 18 | case _ => | |
19 | 19 | 0 | |
20 | 20 | } | |
21 | 21 | let ReadUserGovernTokenKey = getStringValue(this, UserGovernTokenKey) | |
22 | 22 | let UserGovernTokenBalance = match getInteger(this, ReadUserGovernTokenKey) { | |
23 | 23 | case a: Int => | |
24 | 24 | a | |
25 | 25 | case _ => | |
26 | 26 | 0 | |
27 | 27 | } | |
28 | 28 | let ReadUserStakedTokenKey = getStringValue(this, UserStakedTokenKey) | |
29 | 29 | let currentAmount = match getInteger(this, UserStakedTokenKey) { | |
30 | 30 | case a: Int => | |
31 | 31 | a | |
32 | 32 | case _ => | |
33 | 33 | 0 | |
34 | 34 | } | |
35 | - | throw((((("Winner is.....: " + Winner) + " Balance is: ") + toString(MaxGovernTokenDeposit)) + toString(currentAmount))) | |
35 | + | throw(((((("Winner is.....: " + Winner) + " Balance is: ") + toString(MaxGovernTokenDeposit)) + " | |
36 | + | Your Balance of StakedToken is: ") + toString(currentAmount))) | |
36 | 37 | } | |
37 | 38 | ||
38 | 39 | ||
39 | 40 | ||
40 | 41 | @Callable(i) | |
41 | 42 | func payYield () = { | |
42 | 43 | let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ' | |
43 | 44 | let currentKey = toBase58String(i.caller.bytes) | |
44 | 45 | let currentAmount = match getInteger(this, currentKey) { | |
45 | 46 | case a: Int => | |
46 | 47 | a | |
47 | 48 | case _ => | |
48 | 49 | 0 | |
49 | 50 | } | |
50 | 51 | if ((currentAmount > 0)) | |
51 | 52 | then { | |
52 | 53 | let GovernTokenAmount = assetBalance(this, GovernToken) | |
53 | 54 | if ((1 > GovernTokenAmount)) | |
54 | 55 | then throw("No enough GovernToken In Contract") | |
55 | 56 | else ScriptResult(WriteSet([DataEntry(currentKey, 10)]), TransferSet([ScriptTransfer(i.caller, 1, GovernToken)])) | |
56 | 57 | } | |
57 | 58 | else throw("You need to deposit Collateral Token to receive Govern Token") | |
58 | 59 | } | |
59 | 60 | ||
60 | 61 | ||
61 | 62 | ||
62 | 63 | @Callable(i) | |
63 | 64 | func Stake () = { | |
64 | 65 | let StakedToken = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN' | |
65 | 66 | let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ' | |
66 | 67 | let pmt = extract(i.payment) | |
67 | 68 | if (if (isDefined(pmt.assetId)) | |
68 | 69 | then (extract(pmt.assetId) == StakedToken) | |
69 | 70 | else false) | |
70 | 71 | then { | |
71 | 72 | let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken)) | |
72 | 73 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
73 | 74 | let currentAmount = match getInteger(this, UserStakedTokenKey) { | |
74 | 75 | case a: Int => | |
75 | 76 | a | |
76 | 77 | case _ => | |
77 | 78 | 0 | |
78 | 79 | } | |
79 | 80 | let newAmount = (currentAmount + pmt.amount) | |
80 | 81 | let GovernTokenSmartContractBalance = assetBalance(this, GovernToken) | |
81 | 82 | if ((1 > GovernTokenSmartContractBalance)) | |
82 | 83 | then throw("No enough GovernToken In Contract") | |
83 | 84 | else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, 10), DataEntry(UserStakedTokenKey, newAmount)]), TransferSet([ScriptTransfer(i.caller, 10, GovernToken)])) | |
84 | 85 | } | |
85 | 86 | else throw("Can deposit only StakeToken") | |
86 | 87 | } | |
87 | 88 | ||
88 | 89 | ||
89 | 90 | ||
90 | 91 | @Callable(i) | |
91 | 92 | func DepositGovernToken () = { | |
92 | 93 | let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ' | |
93 | 94 | let GovernTokenMaxDeposit = toBase58String(GovernToken) | |
94 | 95 | let pmt = extract(i.payment) | |
95 | 96 | if (if (isDefined(pmt.assetId)) | |
96 | 97 | then (extract(pmt.assetId) == GovernToken) | |
97 | 98 | else false) | |
98 | 99 | then { | |
99 | 100 | let currentKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
100 | 101 | let currentAmount = match getInteger(this, currentKey) { | |
101 | 102 | case a: Int => | |
102 | 103 | a | |
103 | 104 | case _ => | |
104 | 105 | 0 | |
105 | 106 | } | |
106 | 107 | let CurrrentGovernTokenDeposit = (currentAmount + pmt.amount) | |
107 | 108 | let GovernTokenKey = "GovernTokenMaxDeposit" | |
108 | 109 | let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey" | |
109 | 110 | let MaxGovernTokenDeposit = match getInteger(this, GovernTokenKey) { | |
110 | 111 | case a: Int => | |
111 | 112 | a | |
112 | 113 | case _ => | |
113 | 114 | 0 | |
114 | 115 | } | |
115 | 116 | if ((CurrrentGovernTokenDeposit > MaxGovernTokenDeposit)) | |
116 | 117 | then WriteSet([DataEntry(currentKey, CurrrentGovernTokenDeposit), DataEntry(GovernTokenKey, CurrrentGovernTokenDeposit), DataEntry(MaxGovernTokenDepositerKey, currentKey)]) | |
117 | 118 | else WriteSet([DataEntry(currentKey, CurrrentGovernTokenDeposit)]) | |
118 | 119 | } | |
119 | 120 | else throw("Can deposit only Govern Token") | |
120 | 121 | } | |
121 | 122 | ||
122 | 123 | ||
123 | 124 | ||
124 | 125 | @Callable(i) | |
125 | 126 | func WithdrawStakedFunds (amount) = { | |
126 | 127 | let CollateralToken = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN' | |
127 | 128 | let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ' | |
128 | 129 | let currentKey = toBase58String(i.caller.bytes) | |
129 | 130 | let currentAmount = match getInteger(this, currentKey) { | |
130 | 131 | case a: Int => | |
131 | 132 | a | |
132 | 133 | case _ => | |
133 | 134 | 0 | |
134 | 135 | } | |
135 | 136 | let newAmount = (currentAmount - amount) | |
136 | 137 | if ((0 > amount)) | |
137 | 138 | then throw("Can't withdraw negative amount") | |
138 | 139 | else if ((0 > newAmount)) | |
139 | 140 | then throw("User cannot withdraw more than deposited funds") | |
140 | 141 | else { | |
141 | 142 | let GovernTokenAmount = assetBalance(this, GovernToken) | |
142 | 143 | if ((1 > GovernTokenAmount)) | |
143 | 144 | then throw("No enough GovernToken In Contract") | |
144 | 145 | else ScriptResult(WriteSet([DataEntry(currentKey, 1), DataEntry(currentKey, newAmount)]), TransferSet([ScriptTransfer(i.caller, 1, GovernToken), ScriptTransfer(i.caller, amount, CollateralToken)])) | |
145 | 146 | } | |
146 | 147 | } | |
147 | 148 | ||
148 | 149 | ||
149 | 150 | ||
150 | 151 | @Callable(i) | |
151 | 152 | func ClaimPrize () = { | |
152 | 153 | let StakedToken = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN' | |
153 | 154 | let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ' | |
154 | 155 | let FundBoxAddress58 = base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD' | |
155 | 156 | let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken)) | |
156 | 157 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
157 | 158 | let FundBoxStakedToken = ((toBase58String(FundBoxAddress58) + "_") + toBase58String(StakedToken)) | |
158 | 159 | let UserGovernTokenAmount = match getInteger(this, UserGovernTokenKey) { | |
159 | 160 | case a: Int => | |
160 | 161 | a | |
161 | 162 | case _ => | |
162 | 163 | 0 | |
163 | 164 | } | |
164 | 165 | let UserStakedTokenAmount = match getInteger(this, UserStakedTokenKey) { | |
165 | 166 | case a: Int => | |
166 | 167 | a | |
167 | 168 | case _ => | |
168 | 169 | 0 | |
169 | 170 | } | |
170 | 171 | let PrizeAmount = match getInteger(this, FundBoxStakedToken) { | |
171 | 172 | case a: Int => | |
172 | 173 | a | |
173 | 174 | case _ => | |
174 | 175 | 0 | |
175 | 176 | } | |
176 | 177 | let GovernTokenKey = "GovernTokenMaxDeposit" | |
177 | 178 | let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey" | |
178 | 179 | let PrizeWinner = getStringValue(this, MaxGovernTokenDepositerKey) | |
179 | 180 | if ((PrizeAmount == 0)) | |
180 | 181 | then throw("No prize to Claim") | |
181 | 182 | else if ((UserGovernTokenKey != PrizeWinner)) | |
182 | 183 | then throw("You are not the winner hence cannot claim the reward ") | |
183 | 184 | else if ((1 > UserStakedTokenAmount)) | |
184 | 185 | then throw(("You have to Stake StakedToken to claim reward | |
185 | 186 | Your Balance of Staked Tokens is: " + toString(UserStakedTokenAmount))) | |
186 | 187 | else if ((UserGovernTokenAmount > 100)) | |
187 | 188 | then ScriptResult(WriteSet([DataEntry(PrizeWinner, PrizeAmount), DataEntry(FundBoxStakedToken, 0), DataEntry(GovernTokenKey, 0), DataEntry(UserGovernTokenKey, 0), DataEntry(MaxGovernTokenDepositerKey, "")]), TransferSet([ScriptTransfer(i.caller, PrizeAmount, StakedToken), ScriptTransfer(i.caller, 100, GovernToken)])) | |
188 | 189 | else throw(("You have to deposit 100 GovernToken to claim Reward | |
189 | 190 | Your Balance is: " + toString(UserGovernTokenAmount))) | |
190 | 191 | } | |
191 | 192 | ||
192 | 193 |
github/deemru/w8io/026f985 32.71 ms ◑