tx · 75to9VUkHrTdK8LB9vCE6p4PMFQHSMiMs3bLQPyfwZPM

3NAjj8RHrgN9AusAQryswe4sqmdaKoPYgpA:  -0.01440000 Waves

2020.10.23 18:37 [1233423] smart account 3NAjj8RHrgN9AusAQryswe4sqmdaKoPYgpA > SELF 0.00000000 Waves

{ "type": 13, "id": "75to9VUkHrTdK8LB9vCE6p4PMFQHSMiMs3bLQPyfwZPM", "fee": 1440000, "feeAssetId": null, "timestamp": 1603467514875, "version": 2, "chainId": 84, "sender": "3NAjj8RHrgN9AusAQryswe4sqmdaKoPYgpA", "senderPublicKey": "DKqsAhiA665P7NDw9SFbZogFBxp58EynfXyDzBhRdkrE", "proofs": [ "3ysFz8TLs1SnVGAc8WZaTHzY3JZqaxcj78AcUhEYu67wNX7BmacdLUGT6x1SHTUdz1NQeeSVZo1THXw1oNu1Q5MX" ], "script": "base64:AAIDAAAAAAAAABEIARIAEgASABIAEgMKAQESAAAAAAAAAAAGAAAAAWkBAAAADFJlYWRQb29sRGF0YQAAAAAEAAAADkdvdmVyblRva2VuS2V5AgAAABVHb3Zlcm5Ub2tlbk1heERlcG9zaXQEAAAAGk1heEdvdmVyblRva2VuRGVwb3NpdGVyS2V5AgAAABpNYXhHb3Zlcm5Ub2tlbkRlcG9zaXRlcktleQQAAAALU3Rha2VkVG9rZW4BAAAAII6s8oVf2LLEjgFt3DBkQAtAsqtUU78QuSaaHZj6YLxoBAAAAAtHb3Zlcm5Ub2tlbgEAAAAgy2ubukTn/o++lgkkJnhVg6duh2mHquyL3mMb8oGKxfgEAAAAElVzZXJTdGFrZWRUb2tlbktleQkAASwAAAACCQABLAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwIAAAABXwkAAlgAAAABBQAAAAtTdGFrZWRUb2tlbgQAAAASVXNlckdvdmVyblRva2VuS2V5CQABLAAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAA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kBAAAACURhdGFFbnRyeQAAAAIFAAAAEkZ1bmRCb3hTdGFrZWRUb2tlbgAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAOR292ZXJuVG9rZW5LZXkAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAElVzZXJHb3Zlcm5Ub2tlbktleQAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkCAAAAAAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAALUHJpemVBbW91bnQFAAAAC1N0YWtlZFRva2VuCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAZAUAAAALR292ZXJuVG9rZW4FAAAAA25pbAkAAAIAAAABCQABLAAAAAICAAAAR1lvdSBoYXZlIHRvIGRlcG9zaXQgMTAwIEdvdmVyblRva2VuIHRvIGNsYWltIFJld2FyZCAKIFlvdXIgQmFsYW5jZSBpczogCQABpAAAAAEFAAAAFVVzZXJHb3Zlcm5Ub2tlbkFtb3VudAAAAADnBCRb", "height": 1233423, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DJi5wBgQp6VfL4MZCAZKpYuafZW7mMvMPTBY6ubcjK8P Next: DW1qmX6VztpaQxhJ2ZFR798CpzQodDNjUBZLqDJYPYvu Diff:
OldNewDifferences
161161 let GovernTokenAmount = assetBalance(this, GovernToken)
162162 if ((1 > GovernTokenAmount))
163163 then throw("No enough GovernToken In Contract")
164- else throw(((("User deposit is: " + toString(currentAmount)) + " Withdraw") + toString(amount)))
164+ else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, 1), DataEntry(UserStakedTokenKey, newAmount)]), TransferSet([ScriptTransfer(i.caller, 1, GovernToken), ScriptTransfer(i.caller, amount, StakedToken)]))
165165 }
166166 }
167167
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func ReadPoolData () = {
88 let GovernTokenKey = "GovernTokenMaxDeposit"
99 let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey"
1010 let StakedToken = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w'
1111 let GovernToken = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
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, UserGovernTokenKey) {
2323 case a: Int =>
2424 a
2525 case _ =>
2626 0
2727 }
2828 let ReadUserStakedTokenKey = getStringValue(this, UserStakedTokenKey)
2929 let UserStakedTokenBalance = match getInteger(this, UserStakedTokenKey) {
3030 case a: Int =>
3131 a
3232 case _ =>
3333 0
3434 }
3535 throw(((((((("Winner is.....: " + Winner) + " Balance is: ") + toString(MaxGovernTokenDeposit)) + "
3636 Staked Token in your Balance is.....: ") + toString(UserStakedTokenBalance)) + "
3737 Govern Token in your Balance is.....: ") + toString(UserGovernTokenBalance)))
3838 }
3939
4040
4141
4242 @Callable(i)
4343 func ResetAccount () = {
4444 let StakedToken = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w'
4545 let GovernToken = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
4646 let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken))
4747 let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
4848 let UserStakeTransactionsKey = (toBase58String(i.caller.bytes) + "_StakedTransactions")
4949 WriteSet([DataEntry(UserGovernTokenKey, 0), DataEntry(UserStakedTokenKey, 0), DataEntry(UserStakeTransactionsKey, 0)])
5050 }
5151
5252
5353
5454 @Callable(i)
5555 func Stake () = {
5656 let StakedToken = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w'
5757 let GovernToken = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
5858 let pmt = extract(i.payment)
5959 if (if (isDefined(pmt.assetId))
6060 then (extract(pmt.assetId) == StakedToken)
6161 else false)
6262 then {
6363 let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken))
6464 let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
6565 let UserStakeTransactionsKey = (toBase58String(i.caller.bytes) + "_StakedTransactions")
6666 let UserStakeTransactions = match getInteger(this, UserStakeTransactionsKey) {
6767 case a: Int =>
6868 a
6969 case _ =>
7070 0
7171 }
7272 let NewUserStakeTransactions = (UserStakeTransactions + 1)
7373 let currentAmountStakedToken = match getInteger(this, UserStakedTokenKey) {
7474 case a: Int =>
7575 a
7676 case _ =>
7777 0
7878 }
7979 let newAmountStakedToken = (currentAmountStakedToken + pmt.amount)
8080 let currentAmountGovernToken = match getInteger(this, UserStakedTokenKey) {
8181 case a: Int =>
8282 a
8383 case _ =>
8484 0
8585 }
8686 let newAmountGovernToken = (currentAmountGovernToken + 10)
8787 let GovernTokenSmartContractBalance = assetBalance(this, GovernToken)
8888 let StakedTokenSmartContractBalance = assetBalance(this, StakedToken)
8989 if ((1 > GovernTokenSmartContractBalance))
9090 then throw("No enough GovernToken In Contract, Please deposit GovernTokens")
9191 else if ((StakedTokenSmartContractBalance == 0))
9292 then ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmountGovernToken), DataEntry(UserStakedTokenKey, newAmountStakedToken), DataEntry(UserStakeTransactionsKey, NewUserStakeTransactions)]), TransferSet([ScriptTransfer(i.caller, 10, GovernToken)]))
9393 else if ((NewUserStakeTransactions > 50))
9494 then {
9595 let Reward = (currentAmountGovernToken + ((10 * NewUserStakeTransactions) * (newAmountStakedToken / StakedTokenSmartContractBalance)))
9696 ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, Reward), DataEntry(UserStakedTokenKey, newAmountStakedToken), DataEntry(UserStakeTransactionsKey, NewUserStakeTransactions)]), TransferSet([ScriptTransfer(i.caller, Reward, GovernToken)]))
9797 }
9898 else {
9999 let Reward = (currentAmountGovernToken + (10 * (newAmountStakedToken / StakedTokenSmartContractBalance)))
100100 ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, Reward), DataEntry(UserStakedTokenKey, newAmountStakedToken), DataEntry(UserStakeTransactionsKey, NewUserStakeTransactions)]), TransferSet([ScriptTransfer(i.caller, Reward, GovernToken)]))
101101 }
102102 }
103103 else throw("Can deposit only StakeToken")
104104 }
105105
106106
107107
108108 @Callable(i)
109109 func DepositGovernToken () = {
110110 let GovernToken = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
111111 let GovernTokenMaxDeposit = toBase58String(GovernToken)
112112 let pmt = extract(i.payment)
113113 if (if (isDefined(pmt.assetId))
114114 then (extract(pmt.assetId) == GovernToken)
115115 else false)
116116 then {
117117 let currentKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
118118 let currentAmount = match getInteger(this, currentKey) {
119119 case a: Int =>
120120 a
121121 case _ =>
122122 0
123123 }
124124 let CurrrentGovernTokenDeposit = (currentAmount + pmt.amount)
125125 let GovernTokenKey = "GovernTokenMaxDeposit"
126126 let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey"
127127 let MaxGovernTokenDeposit = match getInteger(this, GovernTokenKey) {
128128 case a: Int =>
129129 a
130130 case _ =>
131131 0
132132 }
133133 if ((CurrrentGovernTokenDeposit > MaxGovernTokenDeposit))
134134 then WriteSet([DataEntry(currentKey, CurrrentGovernTokenDeposit), DataEntry(GovernTokenKey, CurrrentGovernTokenDeposit), DataEntry(MaxGovernTokenDepositerKey, currentKey)])
135135 else WriteSet([DataEntry(currentKey, CurrrentGovernTokenDeposit)])
136136 }
137137 else throw("Can deposit only Govern Token")
138138 }
139139
140140
141141
142142 @Callable(i)
143143 func WithdrawStakedFunds (amount) = {
144144 let StakedToken = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w'
145145 let GovernToken = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
146146 let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken))
147147 let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
148148 let currentKey = toBase58String(i.caller.bytes)
149149 let currentAmount = match getInteger(this, UserStakedTokenKey) {
150150 case a: Int =>
151151 a
152152 case _ =>
153153 0
154154 }
155155 let newAmount = (currentAmount - amount)
156156 if ((0 > amount))
157157 then throw("Can't withdraw negative amount")
158158 else if ((0 > newAmount))
159159 then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(currentAmount)))
160160 else {
161161 let GovernTokenAmount = assetBalance(this, GovernToken)
162162 if ((1 > GovernTokenAmount))
163163 then throw("No enough GovernToken In Contract")
164- else throw(((("User deposit is: " + toString(currentAmount)) + " Withdraw") + toString(amount)))
164+ else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, 1), DataEntry(UserStakedTokenKey, newAmount)]), TransferSet([ScriptTransfer(i.caller, 1, GovernToken), ScriptTransfer(i.caller, amount, StakedToken)]))
165165 }
166166 }
167167
168168
169169
170170 @Callable(i)
171171 func ClaimPrize () = {
172172 let StakedToken = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w'
173173 let GovernToken = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
174174 let FundBoxAddress58 = base58'3MsH5Hr1qQYUnwq4HTpiaGpXQi6cGPUsa5n'
175175 let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken))
176176 let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
177177 let FundBoxStakedToken = ((toBase58String(FundBoxAddress58) + "_") + toBase58String(StakedToken))
178178 let UserGovernTokenAmount = match getInteger(this, UserGovernTokenKey) {
179179 case a: Int =>
180180 a
181181 case _ =>
182182 0
183183 }
184184 let UserStakedTokenAmount = match getInteger(this, UserStakedTokenKey) {
185185 case a: Int =>
186186 a
187187 case _ =>
188188 0
189189 }
190190 let PrizeAmount = match getInteger(this, FundBoxStakedToken) {
191191 case a: Int =>
192192 a
193193 case _ =>
194194 0
195195 }
196196 let GovernTokenKey = "GovernTokenMaxDeposit"
197197 let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey"
198198 let PrizeWinner = getStringValue(this, MaxGovernTokenDepositerKey)
199199 if ((PrizeAmount == 0))
200200 then throw("No prize to Claim")
201201 else if ((UserGovernTokenKey != PrizeWinner))
202202 then throw("You are not the winner hence cannot claim the reward ")
203203 else if ((1 > UserStakedTokenAmount))
204204 then throw(("You have to Stake StakedToken to claim reward
205205 Your Balance of Staked Tokens is: " + toString(UserStakedTokenAmount)))
206206 else if ((UserGovernTokenAmount > 100))
207207 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)]))
208208 else throw(("You have to deposit 100 GovernToken to claim Reward
209209 Your Balance is: " + toString(UserGovernTokenAmount)))
210210 }
211211
212212

github/deemru/w8io/026f985 
32.97 ms