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