tx · 4BxDD6WGarBj4GWjncLxdfRXf6TMQ3R8n14h3uKMev79 3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u: -0.01440000 Waves 2021.01.26 19:57 [1370743] smart account 3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u > SELF 0.00000000 Waves
{ "type": 13, "id": "4BxDD6WGarBj4GWjncLxdfRXf6TMQ3R8n14h3uKMev79", "fee": 1440000, "feeAssetId": null, "timestamp": 1611680227234, "version": 2, "chainId": 84, "sender": "3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u", "senderPublicKey": "FFDorDp8bC9dyUK2w8hYPWPVEcbbk9zYkpHn3gcq9svn", "proofs": [ "9JttFGsPp5Kvnhg5XuKK8eSzqjBZ6vErGvn3r6fu5xQry7t87ucSP9pR4hGkKK4PPHoGoZosFfANtUAohYuSgXu" ], "script": "base64:AAIDAAAAAAAAAAsIARIAEgASAwoBAQAAAAAAAAADAAAAAWkBAAAAClB1c2hSZXdhcmQAAAAABAAAAAtTdGFrZWRUb2tlbgEAAAAgtdEoYbzmBKc83jS/KKdye173/DgIlmcoGG447AQsIbIEAAAAC0dvdmVyblRva2VuAQAAACAQgPg4uhu9buXgRp+zjv1718k6u+xhGgBJPw0oxb5duQQAAAAMbWluUHVzaEJsb2NrAAAAAAAAAAAKBAAAAA1taW5TdGFrZUJsb2NrAAAAAAAAAAAHBAAAAA5EZWxheUFmdGVyUHVzaAAAAAAAAAAAFAQAAAADcG10CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAFpAAAAB3BheW1lbnQDAwkAAGYAAAACCAUAAAADcG10AAAABmFtb3VudAAAAAAAAAAAAAkAAAAAAAACCAUAAAADcG10AAAAB2Fzc2V0SWQFAAAAC0dvdmVyblRva2VuBwQAAAAIVXNlclB1c2gJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAAAVfUHVzaAQAAAARVXNlckxhc3RQdXNoQmxvY2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QAAAABCQAAaQAAAAIFAAAADWN1cnJlbnRBbW91bnQAAAAAAAX14QADCQAAZgAAAAIJAAPrAAAAAgUAAAAEdGhpcwUAAAALR292ZXJuVG9rZW4AAAAAAAX14QAJAAACAAAAAQkAASwAAAACAgAAACROb3QgZW5vdWdoIEdvdmVyblRva2VuIEluIENvbnRyYWN0OiAJAAGkAAAAAQkAA+sAAAACBQAAAAR0aGlzBQAAAAtHb3Zlcm5Ub2tlbgkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAElVzZXJHb3Zlcm5Ub2tlbktleQAAAAAABfXhAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAASVXNlclN0YWtlZFRva2VuS2V5BQAAAAluZXdBbW91bnQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAADFN0YWtlQmFsYW5jZQUAAAASU3Rha2VCYWxhbmNlQW1vdW50CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAdGdW5kQm94BQAAAAtQcml6ZUFtb3VudAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAALUHJpemVIZWlnaHQFAAAAEFByaXplSGVpZ2h0VmFsdWUFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAX14QAFAAAAC0dvdmVyblRva2VuCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAGYW1vdW50BQAAAAtTdGFrZWRUb2tlbgUAAAADbmlsAAAAAPRVWSs=", "height": 1370743, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3ktCiR6y9Vumie3VmMfpLEcAA9hZPrE8HF19nkrzXRgz Next: 6quCktLpL6HnYU16zTzVxzAWDYGWfU1EXvXxGVVYH6dn Diff:
Old | New | Differences | |
---|---|---|---|
242 | 242 | else if ((0 > newAmount)) | |
243 | 243 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
244 | 244 | else if ((assetBalance(this, GovernToken) > 100000000)) | |
245 | - | then throw(" | |
245 | + | then throw(("Not enough GovernToken In Contract: " + toString(assetBalance(this, GovernToken)))) | |
246 | 246 | else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, 100000000), DataEntry(UserStakedTokenKey, newAmount), DataEntry("StakeBalance", StakeBalanceAmount), DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", PrizeHeightValue)]), TransferSet([ScriptTransfer(i.caller, 100000000, GovernToken), ScriptTransfer(i.caller, amount, StakedToken)])) | |
247 | 247 | } | |
248 | 248 |
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 PushReward () = { | |
8 | 8 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
9 | 9 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
10 | 10 | let minPushBlock = 10 | |
11 | 11 | let minStakeBlock = 7 | |
12 | 12 | let DelayAfterPush = 20 | |
13 | 13 | let pmt = extract(i.payment) | |
14 | 14 | if (if ((pmt.amount > 0)) | |
15 | 15 | then (pmt.assetId == GovernToken) | |
16 | 16 | else false) | |
17 | 17 | then { | |
18 | 18 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
19 | 19 | let UserLastPushBlock = (toBase58String(i.caller.bytes) + "_UserLastPushBlock") | |
20 | 20 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
21 | 21 | let UserStake = (toBase58String(i.caller.bytes) + "_Staking") | |
22 | 22 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
23 | 23 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
24 | 24 | case a: Int => | |
25 | 25 | a | |
26 | 26 | case _ => | |
27 | 27 | 0 | |
28 | 28 | } | |
29 | 29 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
30 | 30 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
31 | 31 | case a: Int => | |
32 | 32 | a | |
33 | 33 | case _ => | |
34 | 34 | 0 | |
35 | 35 | } | |
36 | 36 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
37 | 37 | then (PrizeAmount == 0) | |
38 | 38 | else false) | |
39 | 39 | then 0 | |
40 | 40 | else if (if ((HeightTransactFundBox == 0)) | |
41 | 41 | then (PrizeAmount != 0) | |
42 | 42 | else false) | |
43 | 43 | then height | |
44 | 44 | else if (if ((HeightTransactFundBox != 0)) | |
45 | 45 | then (PrizeAmount != 0) | |
46 | 46 | else false) | |
47 | 47 | then HeightTransactFundBox | |
48 | 48 | else 0 | |
49 | 49 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
50 | 50 | case a: Int => | |
51 | 51 | a | |
52 | 52 | case _ => | |
53 | 53 | 0 | |
54 | 54 | } | |
55 | 55 | let UserLastPushvalue = match getInteger(this, UserPush) { | |
56 | 56 | case a: Int => | |
57 | 57 | a | |
58 | 58 | case _ => | |
59 | 59 | 0 | |
60 | 60 | } | |
61 | 61 | let ActualDelay = match getInteger(this, "Delay") { | |
62 | 62 | case a: Int => | |
63 | 63 | a | |
64 | 64 | case _ => | |
65 | 65 | 0 | |
66 | 66 | } | |
67 | 67 | let NewDelay = (ActualDelay + DelayAfterPush) | |
68 | 68 | let HighestPushAddress = match getInteger(this, "HighestPushAddress") { | |
69 | 69 | case a: Int => | |
70 | 70 | a | |
71 | 71 | case _ => | |
72 | 72 | 0 | |
73 | 73 | } | |
74 | 74 | let UserLastPushBlockValue = match getInteger(this, UserLastPushBlock) { | |
75 | 75 | case a: Int => | |
76 | 76 | a | |
77 | 77 | case _ => | |
78 | 78 | 0 | |
79 | 79 | } | |
80 | 80 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
81 | 81 | case a: Int => | |
82 | 82 | a | |
83 | 83 | case _ => | |
84 | 84 | 0 | |
85 | 85 | } | |
86 | 86 | let UserStakeValue = match getInteger(this, UserStake) { | |
87 | 87 | case a: Int => | |
88 | 88 | a | |
89 | 89 | case _ => | |
90 | 90 | 0 | |
91 | 91 | } | |
92 | 92 | let UserPushvalue = (pmt.amount + UserLastPushvalue) | |
93 | 93 | if (if (if (if (if ((UserPushvalue > 0)) | |
94 | 94 | then ((height - UserLastStakeBlockValue) > (1440 * minStakeBlock)) | |
95 | 95 | else false) | |
96 | 96 | then ((height - UserLastPushBlockValue) > minPushBlock) | |
97 | 97 | else false) | |
98 | 98 | then (UserPushvalue > HighestPushValue) | |
99 | 99 | else false) | |
100 | 100 | then (UserStakeValue > 0) | |
101 | 101 | else false) | |
102 | 102 | then WriteSet([DataEntry(UserPush, UserPushvalue), DataEntry("HighestPushAddress", toBase58String(i.caller.bytes)), DataEntry("HighestPush", UserPushvalue), DataEntry("PrizeHeight", height), DataEntry("Delay", NewDelay)]) | |
103 | 103 | else throw((("Your Push dot not comply one of the following conditions: " + " | |
104 | 104 | 1. Positive Value | |
105 | 105 | 2. Must Staked ASIMI Token for a minimum of week | |
106 | 106 | ") + "3. Should be Higher than last Highest Push | |
107 | 107 | 4. Should wait required time between Pushes")) | |
108 | 108 | } | |
109 | 109 | else throw("Can deposit only positive amounts of ASIMI Token") | |
110 | 110 | } | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | ||
114 | 114 | @Callable(i) | |
115 | 115 | func Stake () = { | |
116 | 116 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
117 | 117 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
118 | 118 | let pmt = extract(i.payment) | |
119 | 119 | if (if ((pmt.amount > 0)) | |
120 | 120 | then (pmt.assetId == StakedToken) | |
121 | 121 | else false) | |
122 | 122 | then { | |
123 | 123 | let GovernTokenSmartContractBalance = assetBalance(this, GovernToken) | |
124 | 124 | let UserAPY = (toBase58String(i.caller.bytes) + "_APY") | |
125 | 125 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
126 | 126 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
127 | 127 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
128 | 128 | let UserStakeTransactionsKey = (toBase58String(i.caller.bytes) + "_StakedTransactions") | |
129 | 129 | let AddressHeight = (toBase58String(i.caller.bytes) + "_PrizeHeight") | |
130 | 130 | let UserStakeTransactions = match getInteger(this, UserStakeTransactionsKey) { | |
131 | 131 | case a: Int => | |
132 | 132 | a | |
133 | 133 | case _ => | |
134 | 134 | 0 | |
135 | 135 | } | |
136 | 136 | let NewUserStakeTransactions = (UserStakeTransactions + 1) | |
137 | 137 | let currentAmountStakedToken = match getInteger(this, UserStakedTokenKey) { | |
138 | 138 | case a: Int => | |
139 | 139 | a | |
140 | 140 | case _ => | |
141 | 141 | 0 | |
142 | 142 | } | |
143 | 143 | let newAmountStakedToken = (currentAmountStakedToken + pmt.amount) | |
144 | 144 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
145 | 145 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
146 | 146 | case a: Int => | |
147 | 147 | a | |
148 | 148 | case _ => | |
149 | 149 | 0 | |
150 | 150 | } | |
151 | 151 | let StakeBalanceAmount = (StakeBalance + pmt.amount) | |
152 | 152 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
153 | 153 | let currentAmountGovernToken = match getInteger(this, UserGovernTokenKey) { | |
154 | 154 | case a: Int => | |
155 | 155 | a | |
156 | 156 | case _ => | |
157 | 157 | 0 | |
158 | 158 | } | |
159 | 159 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
160 | 160 | case a: Int => | |
161 | 161 | a | |
162 | 162 | case _ => | |
163 | 163 | 0 | |
164 | 164 | } | |
165 | 165 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
166 | 166 | then (PrizeAmount == 0) | |
167 | 167 | else false) | |
168 | 168 | then 0 | |
169 | 169 | else if (if ((HeightTransactFundBox == 0)) | |
170 | 170 | then (PrizeAmount != 0) | |
171 | 171 | else false) | |
172 | 172 | then height | |
173 | 173 | else if (if ((HeightTransactFundBox != 0)) | |
174 | 174 | then (PrizeAmount != 0) | |
175 | 175 | else false) | |
176 | 176 | then HeightTransactFundBox | |
177 | 177 | else 0 | |
178 | 178 | if ((100000000 > GovernTokenSmartContractBalance)) | |
179 | 179 | then throw("No enough GovernToken In Contract, Please deposit GovernTokens") | |
180 | 180 | else { | |
181 | 181 | let Reward = if ((StakeBalance == 0)) | |
182 | 182 | then 10000 | |
183 | 183 | else if ((NewUserStakeTransactions > 10)) | |
184 | 184 | then ((10000 * NewUserStakeTransactions) * (1 + (newAmountStakedToken / StakeBalance))) | |
185 | 185 | else (10000 * (1 + (newAmountStakedToken / StakeBalance))) | |
186 | 186 | let UserAPYValue = if ((currentAmountGovernToken > 0)) | |
187 | 187 | then ((100 * Reward) / currentAmountGovernToken) | |
188 | 188 | else 0 | |
189 | 189 | let newAmountGovernToken = (currentAmountGovernToken + Reward) | |
190 | 190 | ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmountGovernToken), DataEntry(UserStakedTokenKey, newAmountStakedToken), DataEntry(UserStakeTransactionsKey, NewUserStakeTransactions), DataEntry("StakeBalance", StakeBalanceAmount), DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry(UserAPY, UserAPYValue), DataEntry(UserLastStakeBlock, height)]), TransferSet([ScriptTransfer(i.caller, Reward, GovernToken)])) | |
191 | 191 | } | |
192 | 192 | } | |
193 | 193 | else throw("Can deposit only StakeToken") | |
194 | 194 | } | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | ||
198 | 198 | @Callable(i) | |
199 | 199 | func WithdrawStakedFunds (amount) = { | |
200 | 200 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
201 | 201 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
202 | 202 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
203 | 203 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
204 | 204 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
205 | 205 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
206 | 206 | case a: Int => | |
207 | 207 | a | |
208 | 208 | case _ => | |
209 | 209 | 0 | |
210 | 210 | } | |
211 | 211 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
212 | 212 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
213 | 213 | case a: Int => | |
214 | 214 | a | |
215 | 215 | case _ => | |
216 | 216 | 0 | |
217 | 217 | } | |
218 | 218 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
219 | 219 | then (PrizeAmount == 0) | |
220 | 220 | else false) | |
221 | 221 | then 0 | |
222 | 222 | else if (if ((HeightTransactFundBox == 0)) | |
223 | 223 | then (PrizeAmount != 0) | |
224 | 224 | else false) | |
225 | 225 | then height | |
226 | 226 | else if (if ((HeightTransactFundBox != 0)) | |
227 | 227 | then (PrizeAmount != 0) | |
228 | 228 | else false) | |
229 | 229 | then HeightTransactFundBox | |
230 | 230 | else 0 | |
231 | 231 | let currentKey = toBase58String(i.caller.bytes) | |
232 | 232 | let currentAmount = match getInteger(this, UserStakedTokenKey) { | |
233 | 233 | case a: Int => | |
234 | 234 | a | |
235 | 235 | case _ => | |
236 | 236 | 0 | |
237 | 237 | } | |
238 | 238 | let newAmount = (currentAmount - amount) | |
239 | 239 | let StakeBalanceAmount = (StakeBalance - amount) | |
240 | 240 | if ((0 > amount)) | |
241 | 241 | then throw("Can't withdraw negative amount") | |
242 | 242 | else if ((0 > newAmount)) | |
243 | 243 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
244 | 244 | else if ((assetBalance(this, GovernToken) > 100000000)) | |
245 | - | then throw(" | |
245 | + | then throw(("Not enough GovernToken In Contract: " + toString(assetBalance(this, GovernToken)))) | |
246 | 246 | else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, 100000000), DataEntry(UserStakedTokenKey, newAmount), DataEntry("StakeBalance", StakeBalanceAmount), DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", PrizeHeightValue)]), TransferSet([ScriptTransfer(i.caller, 100000000, GovernToken), ScriptTransfer(i.caller, amount, StakedToken)])) | |
247 | 247 | } | |
248 | 248 | ||
249 | 249 |
github/deemru/w8io/169f3d6 45.84 ms ◑