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