tx · 4YDn6KZuPQLTJX6wcNHg3HYuJtwNrwH9owp5hEVaHMbs

3N7Ceyu23j5bYLLkou2xqucWC8f5Ma5b3WL:  -0.01660000 Waves

2020.10.21 21:16 [1230672] smart account 3N7Ceyu23j5bYLLkou2xqucWC8f5Ma5b3WL > SELF 0.00000000 Waves

{ "type": 13, "id": "4YDn6KZuPQLTJX6wcNHg3HYuJtwNrwH9owp5hEVaHMbs", "fee": 1660000, "feeAssetId": null, "timestamp": 1603304149967, "version": 2, "chainId": 84, "sender": "3N7Ceyu23j5bYLLkou2xqucWC8f5Ma5b3WL", "senderPublicKey": "4sCkx8qKE5wmxM8E1kfvNPCWnrTM2A6TTPYUQTsAWwwm", "proofs": [ "4bVRpNUGsSvMS3APKPWdb3YEdLbEVsoqMFVs7V2yxuj32Wv3G6gy5fo2U6WkLkmbmQWV7FkjLzKFk4VRWMRWJB8P" ], "script": "base64:AAIDAAAAAAAAABEIARIAEgASABIAEgMKAQESAAAAAAAAAAAGAAAAAWkBAAAAFFJlYWRNYXhHb3Zlcm5EZXBvc2l0AAAAAAQAAAAOR292ZXJuVG9rZW5LZXkCAAAAFUdvdmVyblRva2VuTWF4RGVwb3NpdAQAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkCAAAAGk1heEdvdmVyblRva2VuRGVwb3NpdGVyS2V5BAAAAAtTdGFrZWRUb2tlbgEAAAAgRcBshwjyRR7E4jbQIGP2jvCbtpj52Gvg2osXltv2/UMEAAAAC0dvdmVyblRva2VuAQAAACC8BnLNTH75zY/85pKTg3cOi9DRRgrZqRPS5vvLPGg8zQQAAAASVXNlclN0YWtlZFRva2VuS2V5CQABLAAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAAAFfCQACWAAAAAEFAAAAC1N0YWtlZFRva2VuBAAAABJVc2VyR292ZXJuVG9rZW5LZXkJAAEsAAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQ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yU3Rha2VkVG9rZW5BbW91bnQDCQAAZgAAAAIFAAAAFVVzZXJHb3Zlcm5Ub2tlbkFtb3VudAAAAAAAAAAAZAkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAC1ByaXplV2lubmVyBQAAAAtQcml6ZUFtb3VudAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAASRnVuZEJveFN0YWtlZFRva2VuAAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAA5Hb3Zlcm5Ub2tlbktleQAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAASVXNlckdvdmVyblRva2VuS2V5AAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABpNYXhHb3Zlcm5Ub2tlbkRlcG9zaXRlcktleQIAAAAABQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAAtQcml6ZUFtb3VudAUAAAALU3Rha2VkVG9rZW4JAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAAAABkBQAAAAtHb3Zlcm5Ub2tlbgUAAAADbmlsCQAAAgAAAAEJAAEsAAAAAgIAAABHWW91IGhhdmUgdG8gZGVwb3NpdCAxMDAgR292ZXJuVG9rZW4gdG8gY2xhaW0gUmV3YXJkIAogWW91ciBCYWxhbmNlIGlzOiAJAAGkAAAAAQUAAAAVVXNlckdvdmVyblRva2VuQW1vdW50AAAAAB7E8Oc=", "height": 1230672, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4w83SVNmXC632yPbF8wUUNhmHo36JA8wTdGBbKbXzDQk Next: Be3dpEERHSM258dLx36HP5GFcCtvpYeUwPjWCCaDNefk Diff:
OldNewDifferences
2626 0
2727 }
2828 let ReadUserStakedTokenKey = getStringValue(this, UserStakedTokenKey)
29- let UserStakedTokenBalance = match getInteger(this, ReadUserStakedTokenKey) {
29+ let currentAmount = match getInteger(this, UserStakedTokenKey) {
3030 case a: Int =>
3131 a
3232 case _ =>
3333 0
3434 }
35- throw(((("Winner is.....: " + Winner) + " Balance is: ") + toString(MaxGovernTokenDeposit)))
35+ throw((((("Winner is.....: " + Winner) + " Balance is: ") + toString(MaxGovernTokenDeposit)) + toString(currentAmount)))
3636 }
3737
3838
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func ReadMaxGovernDeposit () = {
88 let GovernTokenKey = "GovernTokenMaxDeposit"
99 let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey"
1010 let StakedToken = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
1111 let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
1212 let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken))
1313 let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
1414 let Winner = getStringValue(this, MaxGovernTokenDepositerKey)
1515 let MaxGovernTokenDeposit = match getInteger(this, GovernTokenKey) {
1616 case a: Int =>
1717 a
1818 case _ =>
1919 0
2020 }
2121 let ReadUserGovernTokenKey = getStringValue(this, UserGovernTokenKey)
2222 let UserGovernTokenBalance = match getInteger(this, ReadUserGovernTokenKey) {
2323 case a: Int =>
2424 a
2525 case _ =>
2626 0
2727 }
2828 let ReadUserStakedTokenKey = getStringValue(this, UserStakedTokenKey)
29- let UserStakedTokenBalance = match getInteger(this, ReadUserStakedTokenKey) {
29+ let currentAmount = match getInteger(this, UserStakedTokenKey) {
3030 case a: Int =>
3131 a
3232 case _ =>
3333 0
3434 }
35- throw(((("Winner is.....: " + Winner) + " Balance is: ") + toString(MaxGovernTokenDeposit)))
35+ throw((((("Winner is.....: " + Winner) + " Balance is: ") + toString(MaxGovernTokenDeposit)) + toString(currentAmount)))
3636 }
3737
3838
3939
4040 @Callable(i)
4141 func payYield () = {
4242 let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
4343 let currentKey = toBase58String(i.caller.bytes)
4444 let currentAmount = match getInteger(this, currentKey) {
4545 case a: Int =>
4646 a
4747 case _ =>
4848 0
4949 }
5050 if ((currentAmount > 0))
5151 then {
5252 let GovernTokenAmount = assetBalance(this, GovernToken)
5353 if ((1 > GovernTokenAmount))
5454 then throw("No enough GovernToken In Contract")
5555 else ScriptResult(WriteSet([DataEntry(currentKey, 10)]), TransferSet([ScriptTransfer(i.caller, 1, GovernToken)]))
5656 }
5757 else throw("You need to deposit Collateral Token to receive Govern Token")
5858 }
5959
6060
6161
6262 @Callable(i)
6363 func Stake () = {
6464 let StakedToken = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
6565 let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
6666 let pmt = extract(i.payment)
6767 if (if (isDefined(pmt.assetId))
6868 then (extract(pmt.assetId) == StakedToken)
6969 else false)
7070 then {
7171 let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken))
7272 let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
7373 let currentAmount = match getInteger(this, UserStakedTokenKey) {
7474 case a: Int =>
7575 a
7676 case _ =>
7777 0
7878 }
7979 let newAmount = (currentAmount + pmt.amount)
8080 let GovernTokenSmartContractBalance = assetBalance(this, GovernToken)
8181 if ((1 > GovernTokenSmartContractBalance))
8282 then throw("No enough GovernToken In Contract")
8383 else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, 10), DataEntry(UserStakedTokenKey, newAmount)]), TransferSet([ScriptTransfer(i.caller, 10, GovernToken)]))
8484 }
8585 else throw("Can deposit only StakeToken")
8686 }
8787
8888
8989
9090 @Callable(i)
9191 func DepositGovernToken () = {
9292 let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
9393 let GovernTokenMaxDeposit = toBase58String(GovernToken)
9494 let pmt = extract(i.payment)
9595 if (if (isDefined(pmt.assetId))
9696 then (extract(pmt.assetId) == GovernToken)
9797 else false)
9898 then {
9999 let currentKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
100100 let currentAmount = match getInteger(this, currentKey) {
101101 case a: Int =>
102102 a
103103 case _ =>
104104 0
105105 }
106106 let CurrrentGovernTokenDeposit = (currentAmount + pmt.amount)
107107 let GovernTokenKey = "GovernTokenMaxDeposit"
108108 let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey"
109109 let MaxGovernTokenDeposit = match getInteger(this, GovernTokenKey) {
110110 case a: Int =>
111111 a
112112 case _ =>
113113 0
114114 }
115115 if ((CurrrentGovernTokenDeposit > MaxGovernTokenDeposit))
116116 then WriteSet([DataEntry(currentKey, CurrrentGovernTokenDeposit), DataEntry(GovernTokenKey, CurrrentGovernTokenDeposit), DataEntry(MaxGovernTokenDepositerKey, currentKey)])
117117 else WriteSet([DataEntry(currentKey, CurrrentGovernTokenDeposit)])
118118 }
119119 else throw("Can deposit only Govern Token")
120120 }
121121
122122
123123
124124 @Callable(i)
125125 func WithdrawStakedFunds (amount) = {
126126 let CollateralToken = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
127127 let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
128128 let currentKey = toBase58String(i.caller.bytes)
129129 let currentAmount = match getInteger(this, currentKey) {
130130 case a: Int =>
131131 a
132132 case _ =>
133133 0
134134 }
135135 let newAmount = (currentAmount - amount)
136136 if ((0 > amount))
137137 then throw("Can't withdraw negative amount")
138138 else if ((0 > newAmount))
139139 then throw("User cannot withdraw more than deposited funds")
140140 else {
141141 let GovernTokenAmount = assetBalance(this, GovernToken)
142142 if ((1 > GovernTokenAmount))
143143 then throw("No enough GovernToken In Contract")
144144 else ScriptResult(WriteSet([DataEntry(currentKey, 1), DataEntry(currentKey, newAmount)]), TransferSet([ScriptTransfer(i.caller, 1, GovernToken), ScriptTransfer(i.caller, amount, CollateralToken)]))
145145 }
146146 }
147147
148148
149149
150150 @Callable(i)
151151 func ClaimPrize () = {
152152 let StakedToken = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
153153 let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
154154 let FundBoxAddress58 = base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD'
155155 let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken))
156156 let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
157157 let FundBoxStakedToken = ((toBase58String(FundBoxAddress58) + "_") + toBase58String(StakedToken))
158158 let UserGovernTokenAmount = match getInteger(this, UserGovernTokenKey) {
159159 case a: Int =>
160160 a
161161 case _ =>
162162 0
163163 }
164164 let UserStakedTokenAmount = match getInteger(this, UserStakedTokenKey) {
165165 case a: Int =>
166166 a
167167 case _ =>
168168 0
169169 }
170170 let PrizeAmount = match getInteger(this, FundBoxStakedToken) {
171171 case a: Int =>
172172 a
173173 case _ =>
174174 0
175175 }
176176 let GovernTokenKey = "GovernTokenMaxDeposit"
177177 let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey"
178178 let PrizeWinner = getStringValue(this, MaxGovernTokenDepositerKey)
179179 if ((PrizeAmount == 0))
180180 then throw("No prize to Claim")
181181 else if ((UserGovernTokenKey != PrizeWinner))
182182 then throw("You are not the winner hence cannot claim the reward ")
183183 else if ((1 > UserStakedTokenAmount))
184184 then throw(("You have to Stake StakedToken to claim reward
185185 Your Balance of Staked Tokens is: " + toString(UserStakedTokenAmount)))
186186 else if ((UserGovernTokenAmount > 100))
187187 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)]))
188188 else throw(("You have to deposit 100 GovernToken to claim Reward
189189 Your Balance is: " + toString(UserGovernTokenAmount)))
190190 }
191191
192192

github/deemru/w8io/026f985 
37.96 ms