tx · E9xtPTcpZou7btFh3eG95VDJiL7aiauMFD4APNRSrj7R

3MrdV3AP4zfU77ifesNStoDZmL1Cfx13eDc:  -0.05000000 Waves

2019.12.28 00:16 [827987] smart account 3MrdV3AP4zfU77ifesNStoDZmL1Cfx13eDc > SELF 0.00000000 Waves

{ "type": 13, "id": "E9xtPTcpZou7btFh3eG95VDJiL7aiauMFD4APNRSrj7R", "fee": 5000000, "feeAssetId": null, "timestamp": 1577481294261, "version": 1, "sender": "3MrdV3AP4zfU77ifesNStoDZmL1Cfx13eDc", "senderPublicKey": "5M79Anear5ntQk2bbDdFA2goiPXkv7Xy2UpV4n5RKRv", "proofs": [ "3J3zRgL6APguDx1cgtMGyQj4erpD2TZx6CW8igxb2CbzdkmDt8LVaQ4jr49ELssP16KvU9UsuhfC7SswRpDM2x1d" ], "script": "base64:AAIDAAAAAAAAABAIARIAEgMKAQgSAwoBCBIAAAAAEgAAAAANTE9DS0VEV0JFVEtFWQIAAAATJFdCRVRfTE9DS0VEX0FNT1VOVAAAAAAOTE9DS0VEUk9ZQUxLRVkCAAAAFCRST1lBTF9MT0NLRVJfQU1PVU5UAAAAABBXQUxMRVRDT1VOVEVSS0VZAgAAAAskV0FMTEVUX05VTQAAAAAEV0JFVAEAAAAghrQ2qHjTDszY8BetSy4sBB8Hn7rKuRapStdvJa2b0HYAAAAABVJPWUFMAQAAACBD6YqCwiXZdJyVfCBSScajmpCytpVfYmJeyjiJiQxpHAAAAAAPQ09NTVVOSVRZV0FMTEVUCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFULxHweE6v1pOfqW4iK2a1H7JT13jPO2j7AAAAAApXQkVUTE9DS0VEAAAAAAAAAAAAAAAAAAtST1lBTExPQ0tFRAAAAAAAAAAAAQAAAAAMV0JFVFdJVEhEUkFXAAAAAAAAAAACAAAAAA1ST1lBTFdJVEhEUkFXAAAAAAAAAAADAAAAAA1XQVZFU1dJVEhEUkFXAAAAAAAAAAAEAQAAABJJbmNyZW1lbnRXYWx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dFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAABndhbGxldAkBAAAAE0Zvcm1hdFBsYXllckJhbGFuY2UAAAAFCQABkQAAAAIFAAAAB2JhbGFuY2UFAAAACldCRVRMT0NLRUQJAAGRAAAAAgUAAAAHYmFsYW5jZQUAAAALUk9ZQUxMT0NLRUQJAAGRAAAAAgUAAAAHYmFsYW5jZQUAAAAMV0JFVFdJVEhEUkFXCQABkQAAAAIFAAAAB2JhbGFuY2UFAAAADFdCRVRXSVRIRFJBVwAAAAAAAAAAAAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgkAAZEAAAACBQAAAAdiYWxhbmNlBQAAAA1XQVZFU1dJVEhEUkFXBQAAAAR1bml0BQAAAANuaWwJAAACAAAAAQIAAAANSW52YWxpZCBhc3NldAAAAAFpAQAAAANmaXgAAAAACQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAQV0FMTEVUQ09VTlRFUktFWQAAAAAAAAAABAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwAAAAAfJBzTw==", "chainId": 84, "height": 827987, "spentComplexity": 0 } View: original | compacted Prev: 4A9xrrFaADHuZbAQV16QFgd9tEMJhGkMhfBB6g3DXS6N Next: AXQVFLH5PTAH1k7NpkfEtBSvJgBBKjZmYACUwg2Su1a8 Diff:
OldNewDifferences
105105 then {
106106 let newROYALReservedAmount = (ExtractROYALReservedAmt() + payment.amount)
107107 let newPlayerRoyalAmount = (balance[ROYALLOCKED] + payment.amount)
108- ScriptResult(WriteSet([DataEntry(LOCKEDROYALKEY, newROYALReservedAmount), DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], newPlayerRoyalAmount, balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet(nil))
108+ if (WalletExist(wallet))
109+ then ScriptResult(WriteSet([DataEntry(LOCKEDROYALKEY, newROYALReservedAmount), DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], newPlayerRoyalAmount, balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet(nil))
110+ else {
111+ let newWalletNum = IncrementWalletNum()
112+ ScriptResult(WriteSet([DataEntry(WALLETCOUNTERKEY, newWalletNum), DataEntry(LOCKEDROYALKEY, newROYALReservedAmount), DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], newPlayerRoyalAmount, balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet(nil))
113+ }
109114 }
110115 else throw("error")
111116 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let LOCKEDWBETKEY = "$WBET_LOCKED_AMOUNT"
55
66 let LOCKEDROYALKEY = "$ROYAL_LOCKER_AMOUNT"
77
88 let WALLETCOUNTERKEY = "$WALLET_NUM"
99
1010 let WBET = base58'A4q1mYKo11yuH9gmvDodeJoksagcyQzeFE9JtphMWddw'
1111
1212 let ROYAL = base58'5a6rvDEiVwvhTvTH6ce2qFwqdCt3VKaHKXEpwLXXVvyy'
1313
1414 let COMMUNITYWALLET = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8')
1515
1616 let WBETLOCKED = 0
1717
1818 let ROYALLOCKED = 1
1919
2020 let WBETWITHDRAW = 2
2121
2222 let ROYALWITHDRAW = 3
2323
2424 let WAVESWITHDRAW = 4
2525
2626 func IncrementWalletNum () = {
2727 let walletNum = match getInteger(this, WALLETCOUNTERKEY) {
2828 case num: Int =>
2929 num
3030 case _ =>
3131 0
3232 }
3333 (walletNum + 1)
3434 }
3535
3636
3737 func ExtractWBETReservedAmt () = match getInteger(this, LOCKEDWBETKEY) {
3838 case a: Int =>
3939 a
4040 case _ =>
4141 0
4242 }
4343
4444
4545 func ExtractROYALReservedAmt () = match getInteger(this, LOCKEDROYALKEY) {
4646 case a: Int =>
4747 a
4848 case _ =>
4949 0
5050 }
5151
5252
5353 func ExtractPlayerAmt (wallet) = match getString(this, wallet) {
5454 case str: String =>
5555 str
5656 case _ =>
5757 "0_0_0_0_0"
5858 }
5959
6060
6161 func WalletExist (wallet) = match getString(this, wallet) {
6262 case str: String =>
6363 true
6464 case _ =>
6565 false
6666 }
6767
6868
6969 func FormatPlayerBalance (wbet,royal,wbetWithdraw,royalWithdraw,wavesWithdraw) = ((((((((toString(wbet) + "_") + toString(royal)) + "_") + toString(wbetWithdraw)) + "_") + toString(royalWithdraw)) + "_") + toString(wavesWithdraw))
7070
7171
7272 func ParsePlayerBalance (wallet) = {
7373 let amounts = split(ExtractPlayerAmt(wallet), "_")
7474 let wbetAmount = parseIntValue(amounts[WBETLOCKED])
7575 let royalAmount = parseIntValue(amounts[ROYALLOCKED])
7676 let wbetWithdraw = parseIntValue(amounts[WBETWITHDRAW])
7777 let royalWithdraw = parseIntValue(amounts[ROYALWITHDRAW])
7878 let wavesWithdraw = parseIntValue(amounts[WAVESWITHDRAW])
7979 [wbetAmount, royalAmount, wbetWithdraw, royalWithdraw, wavesWithdraw]
8080 }
8181
8282
8383 @Callable(i)
8484 func lock () = {
8585 let payment = extract(i.payment)
8686 if (if ((payment.assetId != WBET))
8787 then (payment.assetId != ROYAL)
8888 else false)
8989 then throw("The token should be in WBET or ROYAL.")
9090 else {
9191 let wallet = toString(i.caller)
9292 let balance = ParsePlayerBalance(wallet)
9393 if ((payment.assetId == WBET))
9494 then {
9595 let newWBETReservedAmount = (ExtractWBETReservedAmt() + payment.amount)
9696 let newPlayerWBETAmount = (balance[WBETLOCKED] + payment.amount)
9797 if (WalletExist(wallet))
9898 then ScriptResult(WriteSet([DataEntry(LOCKEDWBETKEY, newWBETReservedAmount), DataEntry(wallet, FormatPlayerBalance(newPlayerWBETAmount, balance[ROYALLOCKED], balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet(nil))
9999 else {
100100 let newWalletNum = IncrementWalletNum()
101101 ScriptResult(WriteSet([DataEntry(WALLETCOUNTERKEY, newWalletNum), DataEntry(LOCKEDWBETKEY, newWBETReservedAmount), DataEntry(wallet, FormatPlayerBalance(newPlayerWBETAmount, balance[ROYALLOCKED], balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet(nil))
102102 }
103103 }
104104 else if ((payment.assetId == ROYAL))
105105 then {
106106 let newROYALReservedAmount = (ExtractROYALReservedAmt() + payment.amount)
107107 let newPlayerRoyalAmount = (balance[ROYALLOCKED] + payment.amount)
108- ScriptResult(WriteSet([DataEntry(LOCKEDROYALKEY, newROYALReservedAmount), DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], newPlayerRoyalAmount, balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet(nil))
108+ if (WalletExist(wallet))
109+ then ScriptResult(WriteSet([DataEntry(LOCKEDROYALKEY, newROYALReservedAmount), DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], newPlayerRoyalAmount, balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet(nil))
110+ else {
111+ let newWalletNum = IncrementWalletNum()
112+ ScriptResult(WriteSet([DataEntry(WALLETCOUNTERKEY, newWalletNum), DataEntry(LOCKEDROYALKEY, newROYALReservedAmount), DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], newPlayerRoyalAmount, balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet(nil))
113+ }
109114 }
110115 else throw("error")
111116 }
112117 }
113118
114119
115120
116121 @Callable(i)
117122 func unlock (asset) = {
118123 let wallet = toString(i.caller)
119124 let balance = ParsePlayerBalance(wallet)
120125 if ((asset == "WBET"))
121126 then if ((0 >= balance[WBETLOCKED]))
122127 then throw("You dont have enough balance to withdraw the amount requested.")
123128 else {
124129 let newWBETReservedAmount = (ExtractWBETReservedAmt() - balance[WBETLOCKED])
125130 ScriptResult(WriteSet([DataEntry(LOCKEDWBETKEY, newWBETReservedAmount), DataEntry(wallet, FormatPlayerBalance(0, balance[ROYALLOCKED], balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet([ScriptTransfer(i.caller, balance[WBETLOCKED], WBET)]))
126131 }
127132 else if ((asset == "ROYAL"))
128133 then if ((0 >= balance[ROYALLOCKED]))
129134 then throw("You dont have enough balance to withdraw the amount requested.")
130135 else {
131136 let newROYALReservedAmount = (ExtractROYALReservedAmt() - balance[ROYALLOCKED])
132137 ScriptResult(WriteSet([DataEntry(LOCKEDROYALKEY, newROYALReservedAmount), DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], 0, balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet([ScriptTransfer(i.caller, balance[ROYALLOCKED], ROYAL)]))
133138 }
134139 else throw("Invalid asset")
135140 }
136141
137142
138143
139144 @Callable(i)
140145 func withdraw (asset) = {
141146 let wallet = toString(i.caller)
142147 let balance = ParsePlayerBalance(wallet)
143148 if ((asset == "WBET"))
144149 then if ((0 >= balance[WBETWITHDRAW]))
145150 then throw("You dont have enough balance to withdraw the amount requested.")
146151 else ScriptResult(WriteSet([DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], balance[ROYALLOCKED], 0, balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet([ScriptTransfer(i.caller, balance[WBETWITHDRAW], WBET)]))
147152 else if ((asset == "ROYAL"))
148153 then if ((0 >= balance[ROYALWITHDRAW]))
149154 then throw("You dont have enough balance to withdraw the amount requested.")
150155 else ScriptResult(WriteSet([DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], balance[ROYALLOCKED], balance[WBETWITHDRAW], 0, balance[WAVESWITHDRAW]))]), TransferSet([ScriptTransfer(i.caller, balance[ROYALWITHDRAW], ROYAL)]))
151156 else if ((asset == "WAVES"))
152157 then if ((0 >= balance[WAVESWITHDRAW]))
153158 then throw("You dont have enough balance to withdraw the amount requested.")
154159 else ScriptResult(WriteSet([DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], balance[ROYALLOCKED], balance[WBETWITHDRAW], balance[WBETWITHDRAW], 0))]), TransferSet([ScriptTransfer(i.caller, balance[WAVESWITHDRAW], unit)]))
155160 else throw("Invalid asset")
156161 }
157162
158163
159164
160165 @Callable(i)
161166 func fix () = ScriptResult(WriteSet([DataEntry(WALLETCOUNTERKEY, 4)]), TransferSet(nil))
162167
163168

github/deemru/w8io/026f985 
68.84 ms