Coder Social home page Coder Social logo

lyra-core's People

Contributors

dinpd avatar softarch24 avatar wizd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

lyra-core's Issues

Fee for "Unstaking" not paid to corresponding Node Owner

On testnet i did a test of unstaking during the stake period. I was correctly charged 0.8% fee (16000)
https://nebulatestnet.lyra.live/showblock/LEodNAzdRTTrVzVmRxmFZTq2muU3fqV9mdXgNcMusSt8Ms34TRQDkaX5kwLskZ9JEdSxJtNPEr7AsfapusqFDKVgE7mMk1

But surely that fee should have been paid to the node owner as compensation for breaking contract. It appears not. That 16000 fee seems to have disappeared. Node owner address:-
https://nebulatestnet.lyra.live/showblock/LYSRCV7J6QKEZdYVJSxbJCGhW45Yf3DLL8CZssQZuPxJKxibxKTbvtS3mec4qkDYkDrVXLfQxp9tzmPqXEhUm9nxyxxoaE

Node profiting address:-
https://nebulatestnet.lyra.live/showblock/LW6FcY4uPqSqWnhvDJyTtmo31hxaaNhMb2baEcXdcaLnEyHyAMxtuxp2QLRGpFSVRtbNDscYem9jsJEFYT2wJ552uix1Eg

So bug is if user unstakes during stake period fee is charged to the users wallet but that fee is lost in the network and not paid to anyone- it should have gone to the node owner

"GetPendingStats" report expired pending reward

Try to create dividends for the old nodes that has only fees to distribute @ 11 LYR and give me "RequestNotPermited":

"RPC 9: {\"id\":50,\"jsonrpc\":\"2.0\",\"method\":\"CreateDividends\",\"params\":[\"LCjM28ov1MciT8cd5TmSAiMgiLhSgXhYPUB6mWuqK3ZD8S5axLCtyihxkh5YZFpgbWML7WrC1d7sLLtaCbmT7YqX24ipZo\",\"LGsdNoJyoQDwDk8T2N6ghGukcqpQpET6nsEt5FkYxzWpoaPc4PB8jDGD8DDMHjQHSsc17EQ9jxBpbisRdr4WhEUkrzLKFL\"]}"
"RPC 10: {\"jsonrpc\":\"2.0\",\"id\":3,\"method\":\"Sign\",\"params\":[\"hash\",\"DjsMzXzPypvjorSzaCVREcPwM2UPvh3tLPz6TU3Ar7Mi\",\"LCjM28ov1MciT8cd5TmSAiMgiLhSgXhYPUB6mWuqK3ZD8S5axLCtyihxkh5YZFpgbWML7WrC1d7sLLtaCbmT7YqX24ipZo\"]}" 

SIGN 1:  "Sign"
"RPC 12: {\"id\":3,\"jsonrpc\":\"2.0\",\"result\":[\"p1393\",\"28qaVakfTguWTFZQesGhDm39gGatSy6dAxJAcXcedUj8rY1sc74TQ9tjHXNox2KkwnQxAGej6RXvmfaygthFKp2D\"]}"
"RPC 13: {\"jsonrpc\":\"2.0\",\"id\":50,\"result\":{\"success\":false,\"message\":\"RequestNotPermited\"}}"

Screenshot 2021-11-25 at 10 44 22

#BUG Api Node offline

After syncfee, node result online but without votes.
ubuntu 18.0.4
62.171.170.160

Problem with unstaking and unexpected fees

via cli no way to see the unstake date in UTC. I relied on nebula page (https://nebula.lyra.live/profit/LWwZfd1nwH7srS693TJLhVmwgfB9TvWJdSQ7A3X5nZunBsUu35U2FcPJHsjynEsTNHGUNLFFdaJkH9NzbAPntHzSpfFCQe)

For my particular account it disappeared off this page so assumed the stake period had finished. When i came to unstake it was hit with an unexpected 0.8% fee

Either bug on nebula page or date calc is wrong.

============================

Also check where the fee goes it. I was trying to work out if the node got the fee but it appeared not to. This was the node owner of the profiting account i staked to above:-
https://nebula.lyra.live/showblock/LUYMnp9uBpe9hDkW5Z6715Lpku24jtdzYgoLrFUnXanANZbtoVmYCYyXRuBLWTwEg7xpYWJJrthMVcYpfpVE5dBxWa2rHr

Can not start staking on app.lyra.live

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://app.lyra.live/staking
  2. Click on : Create Staking
    Address = my address: LM7rSUnTYT42jG17rRRjcbBxNq77aidfM1AURgbudwwDj5pYEWgnWdP7SJ41cjLxtgwVaogFrR3ZKwHPeiqrZDqt8a8TwD
    Days = 3

Expected behavior
Start staking.
Instead I get an error message. The logs are attached below

Screenshots

Error: System.Threading.Tasks.TaskCanceledException: net_http_request_timedout, 15 ---> System.TimeoutException: OperationCanceled ---> System.Threading.Tasks.TaskCanceledException: OperationCanceled ---> System.Runtime.InteropServices.JavaScript.JSException: AbortError: The user aborted a request. at System.Net.Http.BrowserHttpHandler.SendAsync(HttpRequestMessage , CancellationToken ) Exception_EndOfInnerExceptionStack at System.Net.Http.BrowserHttpHandler.SendAsync(HttpRequestMessage , CancellationToken ) at System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage , HttpCompletionOption , CancellationTokenSource , Boolean , CancellationTokenSource , CancellationToken ) Exception_EndOfInnerExceptionStack Exception_EndOfInnerExceptionStack at System.Net.Http.HttpClient.HandleFailure(Exception , Boolean , HttpResponseMessage , CancellationTokenSource , CancellationToken , CancellationTokenSource ) at System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage , HttpCompletionOption , CancellationTokenSource , Boolean , CancellationTokenSource , CancellationToken ) at Lyra.Core.API.LyraRestClient.d__19`1[[Lyra.Core.API.AuthorizationAPIResult, Lyra.Data, Version=3.1.1.3, Culture=neutral, PublicKeyToken=null]].MoveNext() at Lyra.Core.API.LyraRestClient.PostBlockAsync(String action, Block block) at Lyra.Core.API.LyraRestClient.SendTransferAsync(SendTransferBlock block) at Lyra.Core.Accounts.Wallet.SendExAsync(String DestinationAccountId, Dictionary`2 Amounts, Dictionary`2 tags) at Lyra.Core.Accounts.Wallet.CreateStakingAccountAsync(String Name, String voteFor, Int32 daysToStake, Boolean compoundMode) at UserLibrary.Components.Staking.StakingCreate()

Desktop (please complete the following information):

  • OS: Windows10
  • Browser Chrome

wallet cli exit

Iulian Gheorghiu, [20.02.21 20:00]

If there in communication something happen and remain in enter password or any state that idle, if I kill it, the process remain up and eating 33% of the CPU

And the single option you have is SIGKILL from task manager

Add app mode node

Is your feature request related to a problem? Please describe.
Currently all nodes are means to be public. but in practical we need many nodes not be public oriented.

Describe the solution you'd like
A app only node is good.

Describe alternatives you've considered
A node service privately is OK for now but some times creates confusing.

Additional context
Like in Exchange. they don't want their nodes to be public.

Calculate the real circulation

We need a summary for total among that node/yield hold, staking among too. And also real circulation among.
Base on this information price can be grow up bcs of lack of sell among will force buyer to buy at higher value

Can't transfer funds from 1 wallet address L5ZjawG4SpoZ1vMNUMSL57FwzASqi4uh1zsi6sGguohoxeg4FimPNrS4Q1pY8UvuyXf24QzQSrpNVBGUDNjn5Byd88ZqFt

Describe the bug
A clear and concise description of what the bug is.
Can't transfer funds from 1 wallet address using Nebula or the QT

To Reproduce
Steps to reproduce the behavior:

  1. Try to send from this address and nothing happens

Expected behavior
A clear and concise description of what you expected to happen.
I expect the coin transfer to another address to happen

Screenshots
If applicable, add screenshots to help explain your problem.
wallet address - L5ZjawG4SpoZ1vMNUMSL57FwzASqi4uh1zsi6sGguohoxeg4FimPNrS4Q1pY8UvuyXf24QzQSrpNVBGUDNjn5Byd88ZqFt
Balances: LYR:823947600000000

image

https://nebula.lyra.live/showblock/L5ZjawG4SpoZ1vMNUMSL57FwzASqi4uh1zsi6sGguohoxeg4FimPNrS4Q1pY8UvuyXf24QzQSrpNVBGUDNjn5Byd88ZqFt

Desktop (please complete the following information):

  • OS: [e.g. iOS] - Windows 10.0 and Ubuntu 20.04
  • Browser [e.g. chrome, safari] Chrome and Firefox
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

An API that give only the count and/or a hash of lists like Balance API.

An advice for API's that has non editable lists ( that only the item count increase ) like profiting accounts list, to create an API to get only the count and/or a hash ( like Balance API ), this will decrease client node interaction, clients can have a local copy of the lists, and request only the items count that database doesn't require to count the items, already know internally all the counts of items in lists, or lists count actualized at every add item. That can cut client node interaction with a lot.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.