tx · Be3dpEERHSM258dLx36HP5GFcCtvpYeUwPjWCCaDNefk

3N7Ceyu23j5bYLLkou2xqucWC8f5Ma5b3WL:  -0.01660000 Waves

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

{ "type": 13, "id": "Be3dpEERHSM258dLx36HP5GFcCtvpYeUwPjWCCaDNefk", "fee": 1660000, "feeAssetId": null, "timestamp": 1603304214342, "version": 2, "chainId": 84, "sender": "3N7Ceyu23j5bYLLkou2xqucWC8f5Ma5b3WL", "senderPublicKey": "4sCkx8qKE5wmxM8E1kfvNPCWnrTM2A6TTPYUQTsAWwwm", "proofs": [ "2EKYYehLycgJMgNBgLpLsR9dcfMqrkoYX933AUS4jYVYmk3RWxAeM1gACf2kZvJYzYn1tyyG1jdBQJvViMwrHiin" ], "script": "base64:AAIDAAAAAAAAABEIARIAEgASABIAEgMKAQESAAAAAAAAAAAGAAAAAWkBAAAAFFJlYWRNYXhHb3Zlcm5EZXBvc2l0AAAAAAQAAAAOR292ZXJuVG9rZW5LZXkCAAAAFUdvdmVyblRva2VuTWF4RGVwb3NpdAQAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkCAAAAGk1heEdvdmVyblRva2VuRGVwb3NpdGVyS2V5BAAAAAtTdGFrZWRUb2tlbgEAAAAgRcBshwjyRR7E4jbQIGP2jvCbtpj52Gvg2osXltv2/UMEAAAAC0dvdmVyblRva2VuAQAAACC8BnLNTH75zY/85pKTg3cOi9DRRgrZqRPS5vvLPGg8zQQAAAASVXNlclN0YWtlZFRva2VuS2V5CQABLAAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAAAFfCQACWAAAAAEFAAAAC1N0YWtlZFRva2VuBAAAABJVc2VyR292ZXJuVG9rZW5LZXkJAAEsAAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAA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QW1vdW50AwkAAGYAAAACBQAAABVVc2VyR292ZXJuVG9rZW5BbW91bnQAAAAAAAAAAGQJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAtQcml6ZVdpbm5lcgUAAAALUHJpemVBbW91bnQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAEkZ1bmRCb3hTdGFrZWRUb2tlbgAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAOR292ZXJuVG9rZW5LZXkAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAElVzZXJHb3Zlcm5Ub2tlbktleQAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkCAAAAAAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAALUHJpemVBbW91bnQFAAAAC1N0YWtlZFRva2VuCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAZAUAAAALR292ZXJuVG9rZW4FAAAAA25pbAkAAAIAAAABCQABLAAAAAICAAAAR1lvdSBoYXZlIHRvIGRlcG9zaXQgMTAwIEdvdmVyblRva2VuIHRvIGNsYWltIFJld2FyZCAKIFlvdXIgQmFsYW5jZSBpczogCQABpAAAAAEFAAAAFVVzZXJHb3Zlcm5Ub2tlbkFtb3VudAAAAAAAvnFa", "height": 1230673, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4YDn6KZuPQLTJX6wcNHg3HYuJtwNrwH9owp5hEVaHMbs Next: GajDzuzNFKMxCeL17RaLgKBcgBQXX8vvy7yameqq2X4H Diff:
OldNewDifferences
3232 case _ =>
3333 0
3434 }
35- throw((((("Winner is.....: " + Winner) + " Balance is: ") + toString(MaxGovernTokenDeposit)) + toString(currentAmount)))
35+ throw(((((("Winner is.....: " + Winner) + " Balance is: ") + toString(MaxGovernTokenDeposit)) + "
36+Your Balance of StakedToken is: ") + toString(currentAmount)))
3637 }
3738
3839
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)
2929 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)) + toString(currentAmount)))
35+ throw(((((("Winner is.....: " + Winner) + " Balance is: ") + toString(MaxGovernTokenDeposit)) + "
36+Your Balance of StakedToken is: ") + toString(currentAmount)))
3637 }
3738
3839
3940
4041 @Callable(i)
4142 func payYield () = {
4243 let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
4344 let currentKey = toBase58String(i.caller.bytes)
4445 let currentAmount = match getInteger(this, currentKey) {
4546 case a: Int =>
4647 a
4748 case _ =>
4849 0
4950 }
5051 if ((currentAmount > 0))
5152 then {
5253 let GovernTokenAmount = assetBalance(this, GovernToken)
5354 if ((1 > GovernTokenAmount))
5455 then throw("No enough GovernToken In Contract")
5556 else ScriptResult(WriteSet([DataEntry(currentKey, 10)]), TransferSet([ScriptTransfer(i.caller, 1, GovernToken)]))
5657 }
5758 else throw("You need to deposit Collateral Token to receive Govern Token")
5859 }
5960
6061
6162
6263 @Callable(i)
6364 func Stake () = {
6465 let StakedToken = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
6566 let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
6667 let pmt = extract(i.payment)
6768 if (if (isDefined(pmt.assetId))
6869 then (extract(pmt.assetId) == StakedToken)
6970 else false)
7071 then {
7172 let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken))
7273 let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
7374 let currentAmount = match getInteger(this, UserStakedTokenKey) {
7475 case a: Int =>
7576 a
7677 case _ =>
7778 0
7879 }
7980 let newAmount = (currentAmount + pmt.amount)
8081 let GovernTokenSmartContractBalance = assetBalance(this, GovernToken)
8182 if ((1 > GovernTokenSmartContractBalance))
8283 then throw("No enough GovernToken In Contract")
8384 else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, 10), DataEntry(UserStakedTokenKey, newAmount)]), TransferSet([ScriptTransfer(i.caller, 10, GovernToken)]))
8485 }
8586 else throw("Can deposit only StakeToken")
8687 }
8788
8889
8990
9091 @Callable(i)
9192 func DepositGovernToken () = {
9293 let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
9394 let GovernTokenMaxDeposit = toBase58String(GovernToken)
9495 let pmt = extract(i.payment)
9596 if (if (isDefined(pmt.assetId))
9697 then (extract(pmt.assetId) == GovernToken)
9798 else false)
9899 then {
99100 let currentKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
100101 let currentAmount = match getInteger(this, currentKey) {
101102 case a: Int =>
102103 a
103104 case _ =>
104105 0
105106 }
106107 let CurrrentGovernTokenDeposit = (currentAmount + pmt.amount)
107108 let GovernTokenKey = "GovernTokenMaxDeposit"
108109 let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey"
109110 let MaxGovernTokenDeposit = match getInteger(this, GovernTokenKey) {
110111 case a: Int =>
111112 a
112113 case _ =>
113114 0
114115 }
115116 if ((CurrrentGovernTokenDeposit > MaxGovernTokenDeposit))
116117 then WriteSet([DataEntry(currentKey, CurrrentGovernTokenDeposit), DataEntry(GovernTokenKey, CurrrentGovernTokenDeposit), DataEntry(MaxGovernTokenDepositerKey, currentKey)])
117118 else WriteSet([DataEntry(currentKey, CurrrentGovernTokenDeposit)])
118119 }
119120 else throw("Can deposit only Govern Token")
120121 }
121122
122123
123124
124125 @Callable(i)
125126 func WithdrawStakedFunds (amount) = {
126127 let CollateralToken = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
127128 let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
128129 let currentKey = toBase58String(i.caller.bytes)
129130 let currentAmount = match getInteger(this, currentKey) {
130131 case a: Int =>
131132 a
132133 case _ =>
133134 0
134135 }
135136 let newAmount = (currentAmount - amount)
136137 if ((0 > amount))
137138 then throw("Can't withdraw negative amount")
138139 else if ((0 > newAmount))
139140 then throw("User cannot withdraw more than deposited funds")
140141 else {
141142 let GovernTokenAmount = assetBalance(this, GovernToken)
142143 if ((1 > GovernTokenAmount))
143144 then throw("No enough GovernToken In Contract")
144145 else ScriptResult(WriteSet([DataEntry(currentKey, 1), DataEntry(currentKey, newAmount)]), TransferSet([ScriptTransfer(i.caller, 1, GovernToken), ScriptTransfer(i.caller, amount, CollateralToken)]))
145146 }
146147 }
147148
148149
149150
150151 @Callable(i)
151152 func ClaimPrize () = {
152153 let StakedToken = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
153154 let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
154155 let FundBoxAddress58 = base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD'
155156 let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken))
156157 let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
157158 let FundBoxStakedToken = ((toBase58String(FundBoxAddress58) + "_") + toBase58String(StakedToken))
158159 let UserGovernTokenAmount = match getInteger(this, UserGovernTokenKey) {
159160 case a: Int =>
160161 a
161162 case _ =>
162163 0
163164 }
164165 let UserStakedTokenAmount = match getInteger(this, UserStakedTokenKey) {
165166 case a: Int =>
166167 a
167168 case _ =>
168169 0
169170 }
170171 let PrizeAmount = match getInteger(this, FundBoxStakedToken) {
171172 case a: Int =>
172173 a
173174 case _ =>
174175 0
175176 }
176177 let GovernTokenKey = "GovernTokenMaxDeposit"
177178 let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey"
178179 let PrizeWinner = getStringValue(this, MaxGovernTokenDepositerKey)
179180 if ((PrizeAmount == 0))
180181 then throw("No prize to Claim")
181182 else if ((UserGovernTokenKey != PrizeWinner))
182183 then throw("You are not the winner hence cannot claim the reward ")
183184 else if ((1 > UserStakedTokenAmount))
184185 then throw(("You have to Stake StakedToken to claim reward
185186 Your Balance of Staked Tokens is: " + toString(UserStakedTokenAmount)))
186187 else if ((UserGovernTokenAmount > 100))
187188 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)]))
188189 else throw(("You have to deposit 100 GovernToken to claim Reward
189190 Your Balance is: " + toString(UserGovernTokenAmount)))
190191 }
191192
192193

github/deemru/w8io/026f985 
32.71 ms