tx · DJwVDAh3nQDyL5ER23hCXczUiEZdb39LWuzNnWBAfHk7 3MzGHDJgHnpSnBYScnzg93pWoS27M7cBuVT: -0.01400000 Waves 2020.12.07 16:33 [1298297] smart account 3MzGHDJgHnpSnBYScnzg93pWoS27M7cBuVT > SELF 0.00000000 Waves
{ "type": 13, "id": "DJwVDAh3nQDyL5ER23hCXczUiEZdb39LWuzNnWBAfHk7", "fee": 1400000, "feeAssetId": null, "timestamp": 1607348009899, "version": 2, "chainId": 84, "sender": "3MzGHDJgHnpSnBYScnzg93pWoS27M7cBuVT", "senderPublicKey": "EEG3yJvW1pyCtw138vRpByPpVgrN9VUW9X7G3b9qnwAU", "proofs": [ "4re97omoKD2k3dDQd5yNbgmTbFpHmTDr3aFP43nq9EkMrJUGkgndbnewgTeswowZtsSA6isyDP2VLuNY3eXD8v23" ], "script": "base64:AAIDAAAAAAAAABUIARIAEgASBAoCCAESABIDCgEBEgAAAAAAAAAABgAAAAFpAQAAAAxSZWFkUG9vbERhdGEAAAAABAAAAA5Hb3Zlcm5Ub2tlbktleQIAAAAVR292ZXJuVG9rZW5NYXhEZXBvc2l0BAAAABpNYXhHb3Zlcm5Ub2tlbkRlcG9zaXRlcktleQIAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkEAAAAC1N0YWtlZFRva2VuAQAAACCOrPKFX9iyxI4BbdwwZEALQLKrVFO/ELkmmh2Y+mC8aAQAAAALR292ZXJuVG9rZW4BAAAAIMtrm7pE5/6PvpYJJCZ4VYOnbodph6rsi95jG/KBisX4BAAAABJVc2VyU3Rha2VkVG9rZW5LZXkJAAEsAAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMCAAAAAV8JAAJYAAAAAQUAAAALU3Rha2VkVG9rZW4EAAAAElVzZXJHb3Zlcm5Ub2tlbktleQkAASwAAAACCQABLAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcw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VyblRva2VuIHRvIGNsYWltIFJld2FyZCAKIFlvdXIgQmFsYW5jZSBpczogCQABpAAAAAEFAAAAFVVzZXJHb3Zlcm5Ub2tlbkFtb3VudAAAAACxe/zD", "height": 1298297, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hg23vnqVbUgtS3QqHituJFsNBnyk6aszYbwqyjBAYDj Next: DY6kY6kUE4ijNarzsd2Q9kxWvCDYMpLEqqFyDfB7iixq Diff:
Old | New | Differences | |
---|---|---|---|
61 | 61 | then { | |
62 | 62 | let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken)) | |
63 | 63 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
64 | - | let UserStakeTransactionsKey = (toBase58String(i.caller.bytes) + "_StakedTransactions") | |
65 | - | let UserStakeTransactions = match getInteger(this, UserStakeTransactionsKey) { | |
66 | - | case a: Int => | |
67 | - | a | |
68 | - | case _ => | |
69 | - | 0 | |
70 | - | } | |
71 | - | let NewUserStakeTransactions = (UserStakeTransactions + 1) | |
72 | 64 | let currentAmountStakedToken = match getInteger(this, UserStakedTokenKey) { | |
73 | 65 | case a: Int => | |
74 | 66 | a | |
76 | 68 | 0 | |
77 | 69 | } | |
78 | 70 | let newAmountStakedToken = (currentAmountStakedToken + amount) | |
79 | - | let currentAmountGovernToken = match getInteger(this, UserStakedTokenKey) { | |
80 | - | case a: Int => | |
81 | - | a | |
82 | - | case _ => | |
83 | - | 0 | |
84 | - | } | |
85 | - | let newAmountGovernToken = (currentAmountGovernToken + 10) | |
86 | - | let GovernTokenSmartContractBalance = assetBalance(this, GovernToken) | |
87 | 71 | let StakedTokenSmartContractBalance = assetBalance(this, StakedToken) | |
88 | - | if ((1 > GovernTokenSmartContractBalance)) | |
89 | - | then throw("No enough GovernToken In Contract, Please deposit GovernTokens") | |
90 | - | else if ((StakedTokenSmartContractBalance == 0)) | |
91 | - | then ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmountGovernToken), DataEntry(UserStakedTokenKey, newAmountStakedToken), DataEntry(UserStakeTransactionsKey, NewUserStakeTransactions)]), TransferSet([ScriptTransfer(i.caller, 10, GovernToken)])) | |
92 | - | else if ((NewUserStakeTransactions > 50)) | |
93 | - | then { | |
94 | - | let Reward = (currentAmountGovernToken + ((10 * NewUserStakeTransactions) * (newAmountStakedToken / StakedTokenSmartContractBalance))) | |
95 | - | ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, Reward), DataEntry(UserStakedTokenKey, newAmountStakedToken), DataEntry(UserStakeTransactionsKey, NewUserStakeTransactions)]), TransferSet([ScriptTransfer(i.caller, Reward, GovernToken)])) | |
96 | - | } | |
97 | - | else { | |
98 | - | let Reward = (currentAmountGovernToken + (10 * (newAmountStakedToken / StakedTokenSmartContractBalance))) | |
99 | - | ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, Reward), DataEntry(UserStakedTokenKey, newAmountStakedToken), DataEntry(UserStakeTransactionsKey, NewUserStakeTransactions)]), TransferSet([ScriptTransfer(i.caller, Reward, GovernToken)])) | |
100 | - | } | |
72 | + | ScriptResult(WriteSet([DataEntry(UserStakedTokenKey, newAmountStakedToken)]), TransferSet([ScriptTransfer(i.caller, 10, StakedToken)])) | |
101 | 73 | } | |
102 | 74 | else throw("Can deposit only StakeToken") | |
103 | 75 | } |
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 ReadPoolData () = { | |
8 | 8 | let GovernTokenKey = "GovernTokenMaxDeposit" | |
9 | 9 | let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey" | |
10 | 10 | let StakedToken = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w' | |
11 | 11 | let GovernToken = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j' | |
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, UserGovernTokenKey) { | |
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 UserStakedTokenBalance = match getInteger(this, UserStakedTokenKey) { | |
30 | 30 | case a: Int => | |
31 | 31 | a | |
32 | 32 | case _ => | |
33 | 33 | 0 | |
34 | 34 | } | |
35 | 35 | throw(((((((("Winner is.....: " + Winner) + " Balance is: ") + toString(MaxGovernTokenDeposit)) + " | |
36 | 36 | Staked Token in your Balance is.....: ") + toString(UserStakedTokenBalance)) + " | |
37 | 37 | Govern Token in your Balance is.....: ") + toString(UserGovernTokenBalance))) | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | ||
42 | 42 | @Callable(i) | |
43 | 43 | func ResetAccount () = { | |
44 | 44 | let StakedToken = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w' | |
45 | 45 | let GovernToken = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j' | |
46 | 46 | let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken)) | |
47 | 47 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
48 | 48 | let UserStakeTransactionsKey = (toBase58String(i.caller.bytes) + "_StakedTransactions") | |
49 | 49 | WriteSet([DataEntry(UserGovernTokenKey, 0), DataEntry(UserStakedTokenKey, 0), DataEntry(UserStakeTransactionsKey, 0)]) | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | ||
54 | 54 | @Callable(i) | |
55 | 55 | func Stake (TokenId,amount) = { | |
56 | 56 | let StakedToken = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w' | |
57 | 57 | let GovernToken = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j' | |
58 | 58 | if (if ((amount > 0)) | |
59 | 59 | then (TokenId == toBase58String(StakedToken)) | |
60 | 60 | else false) | |
61 | 61 | then { | |
62 | 62 | let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken)) | |
63 | 63 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
64 | - | let UserStakeTransactionsKey = (toBase58String(i.caller.bytes) + "_StakedTransactions") | |
65 | - | let UserStakeTransactions = match getInteger(this, UserStakeTransactionsKey) { | |
66 | - | case a: Int => | |
67 | - | a | |
68 | - | case _ => | |
69 | - | 0 | |
70 | - | } | |
71 | - | let NewUserStakeTransactions = (UserStakeTransactions + 1) | |
72 | 64 | let currentAmountStakedToken = match getInteger(this, UserStakedTokenKey) { | |
73 | 65 | case a: Int => | |
74 | 66 | a | |
75 | 67 | case _ => | |
76 | 68 | 0 | |
77 | 69 | } | |
78 | 70 | let newAmountStakedToken = (currentAmountStakedToken + amount) | |
79 | - | let currentAmountGovernToken = match getInteger(this, UserStakedTokenKey) { | |
80 | - | case a: Int => | |
81 | - | a | |
82 | - | case _ => | |
83 | - | 0 | |
84 | - | } | |
85 | - | let newAmountGovernToken = (currentAmountGovernToken + 10) | |
86 | - | let GovernTokenSmartContractBalance = assetBalance(this, GovernToken) | |
87 | 71 | let StakedTokenSmartContractBalance = assetBalance(this, StakedToken) | |
88 | - | if ((1 > GovernTokenSmartContractBalance)) | |
89 | - | then throw("No enough GovernToken In Contract, Please deposit GovernTokens") | |
90 | - | else if ((StakedTokenSmartContractBalance == 0)) | |
91 | - | then ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmountGovernToken), DataEntry(UserStakedTokenKey, newAmountStakedToken), DataEntry(UserStakeTransactionsKey, NewUserStakeTransactions)]), TransferSet([ScriptTransfer(i.caller, 10, GovernToken)])) | |
92 | - | else if ((NewUserStakeTransactions > 50)) | |
93 | - | then { | |
94 | - | let Reward = (currentAmountGovernToken + ((10 * NewUserStakeTransactions) * (newAmountStakedToken / StakedTokenSmartContractBalance))) | |
95 | - | ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, Reward), DataEntry(UserStakedTokenKey, newAmountStakedToken), DataEntry(UserStakeTransactionsKey, NewUserStakeTransactions)]), TransferSet([ScriptTransfer(i.caller, Reward, GovernToken)])) | |
96 | - | } | |
97 | - | else { | |
98 | - | let Reward = (currentAmountGovernToken + (10 * (newAmountStakedToken / StakedTokenSmartContractBalance))) | |
99 | - | ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, Reward), DataEntry(UserStakedTokenKey, newAmountStakedToken), DataEntry(UserStakeTransactionsKey, NewUserStakeTransactions)]), TransferSet([ScriptTransfer(i.caller, Reward, GovernToken)])) | |
100 | - | } | |
72 | + | ScriptResult(WriteSet([DataEntry(UserStakedTokenKey, newAmountStakedToken)]), TransferSet([ScriptTransfer(i.caller, 10, StakedToken)])) | |
101 | 73 | } | |
102 | 74 | else throw("Can deposit only StakeToken") | |
103 | 75 | } | |
104 | 76 | ||
105 | 77 | ||
106 | 78 | ||
107 | 79 | @Callable(i) | |
108 | 80 | func DepositGovernToken () = { | |
109 | 81 | let GovernToken = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j' | |
110 | 82 | let GovernTokenMaxDeposit = toBase58String(GovernToken) | |
111 | 83 | let pmt = extract(i.payment) | |
112 | 84 | if (if (isDefined(pmt.assetId)) | |
113 | 85 | then (extract(pmt.assetId) == GovernToken) | |
114 | 86 | else false) | |
115 | 87 | then { | |
116 | 88 | let currentKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
117 | 89 | let currentAmount = match getInteger(this, currentKey) { | |
118 | 90 | case a: Int => | |
119 | 91 | a | |
120 | 92 | case _ => | |
121 | 93 | 0 | |
122 | 94 | } | |
123 | 95 | let CurrrentGovernTokenDeposit = (currentAmount + pmt.amount) | |
124 | 96 | let GovernTokenKey = "GovernTokenMaxDeposit" | |
125 | 97 | let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey" | |
126 | 98 | let MaxGovernTokenDeposit = match getInteger(this, GovernTokenKey) { | |
127 | 99 | case a: Int => | |
128 | 100 | a | |
129 | 101 | case _ => | |
130 | 102 | 0 | |
131 | 103 | } | |
132 | 104 | if ((CurrrentGovernTokenDeposit > MaxGovernTokenDeposit)) | |
133 | 105 | then WriteSet([DataEntry(currentKey, CurrrentGovernTokenDeposit), DataEntry(GovernTokenKey, CurrrentGovernTokenDeposit), DataEntry(MaxGovernTokenDepositerKey, currentKey)]) | |
134 | 106 | else WriteSet([DataEntry(currentKey, CurrrentGovernTokenDeposit)]) | |
135 | 107 | } | |
136 | 108 | else throw("Can deposit only Govern Token") | |
137 | 109 | } | |
138 | 110 | ||
139 | 111 | ||
140 | 112 | ||
141 | 113 | @Callable(i) | |
142 | 114 | func WithdrawStakedFunds (amount) = { | |
143 | 115 | let StakedToken = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w' | |
144 | 116 | let GovernToken = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j' | |
145 | 117 | let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken)) | |
146 | 118 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
147 | 119 | let currentKey = toBase58String(i.caller.bytes) | |
148 | 120 | let currentAmount = match getInteger(this, UserStakedTokenKey) { | |
149 | 121 | case a: Int => | |
150 | 122 | a | |
151 | 123 | case _ => | |
152 | 124 | 0 | |
153 | 125 | } | |
154 | 126 | let newAmount = (currentAmount - amount) | |
155 | 127 | if ((0 > amount)) | |
156 | 128 | then throw("Can't withdraw negative amount") | |
157 | 129 | else if ((0 > newAmount)) | |
158 | 130 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(currentAmount))) | |
159 | 131 | else { | |
160 | 132 | let GovernTokenAmount = assetBalance(this, GovernToken) | |
161 | 133 | if ((1 > GovernTokenAmount)) | |
162 | 134 | then throw("No enough GovernToken In Contract") | |
163 | 135 | else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, 1), DataEntry(UserStakedTokenKey, newAmount)]), TransferSet([ScriptTransfer(i.caller, 1, GovernToken), ScriptTransfer(i.caller, amount, StakedToken)])) | |
164 | 136 | } | |
165 | 137 | } | |
166 | 138 | ||
167 | 139 | ||
168 | 140 | ||
169 | 141 | @Callable(i) | |
170 | 142 | func ClaimPrize () = { | |
171 | 143 | let StakedToken = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w' | |
172 | 144 | let GovernToken = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j' | |
173 | 145 | let FundBoxAddress58 = base58'3MsH5Hr1qQYUnwq4HTpiaGpXQi6cGPUsa5n' | |
174 | 146 | let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken)) | |
175 | 147 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
176 | 148 | let FundBoxStakedToken = ((toBase58String(FundBoxAddress58) + "_") + toBase58String(StakedToken)) | |
177 | 149 | let UserGovernTokenAmount = match getInteger(this, UserGovernTokenKey) { | |
178 | 150 | case a: Int => | |
179 | 151 | a | |
180 | 152 | case _ => | |
181 | 153 | 0 | |
182 | 154 | } | |
183 | 155 | let UserStakedTokenAmount = match getInteger(this, UserStakedTokenKey) { | |
184 | 156 | case a: Int => | |
185 | 157 | a | |
186 | 158 | case _ => | |
187 | 159 | 0 | |
188 | 160 | } | |
189 | 161 | let PrizeAmount = match getInteger(this, FundBoxStakedToken) { | |
190 | 162 | case a: Int => | |
191 | 163 | a | |
192 | 164 | case _ => | |
193 | 165 | 0 | |
194 | 166 | } | |
195 | 167 | let GovernTokenKey = "GovernTokenMaxDeposit" | |
196 | 168 | let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey" | |
197 | 169 | let PrizeWinner = getStringValue(this, MaxGovernTokenDepositerKey) | |
198 | 170 | if ((PrizeAmount == 0)) | |
199 | 171 | then throw("No prize to Claim") | |
200 | 172 | else if ((UserGovernTokenKey != PrizeWinner)) | |
201 | 173 | then throw("You are not the winner hence cannot claim the reward ") | |
202 | 174 | else if ((1 > UserStakedTokenAmount)) | |
203 | 175 | then throw(("You have to Stake StakedToken to claim reward | |
204 | 176 | Your Balance of Staked Tokens is: " + toString(UserStakedTokenAmount))) | |
205 | 177 | else if ((UserGovernTokenAmount > 100)) | |
206 | 178 | 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)])) | |
207 | 179 | else throw(("You have to deposit 100 GovernToken to claim Reward | |
208 | 180 | Your Balance is: " + toString(UserGovernTokenAmount))) | |
209 | 181 | } | |
210 | 182 | ||
211 | 183 |
github/deemru/w8io/169f3d6 35.78 ms ◑