Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recurring transfer example (not gov initiated) windowlength and fractionofbalance issue #799

Closed
daunatv opened this issue Oct 31, 2023 · 0 comments · Fixed by #801
Closed
Assignees
Labels
🐛 bug Something isn't working documentation Improvements or additions to documentation

Comments

@daunatv
Copy link
Contributor

daunatv commented Oct 31, 2023

Description

The example for recurring transfers includes two issues:
1st: "fractionOfBalance": "0.1",is only valid for governance initiated transfers so should be removed
✗ Error: the transaction does not use a valid Vega command: unknown field "fractionOfBalance" in vega.commands.v1.Transfer

2nd: "windowLength": ["1"], should be "windowLength": "1"

https://docs.vega.xyz/testnet/tutorials/assets-tokens/transferring-assets#one-off-transfer-to-vega-key

Working example

'{
    "transfer":{
        "fromAccountType": "ACCOUNT_TYPE_GENERAL",
        "toAccountType": "ACCOUNT_TYPE_REWARD_LP_RECEIVED_FEES",
        "to":"0000000000000000000000000000000000000000000000000000000000000000",
        "asset":"fc7fd956078fb1fc9db5c19b88f0874c4299b2a7639ad05a47a28c0aef291b55",
        "amount":"16120000000000000000",
        "recurring":{
            "startEpoch": 9794,
            "endEpoch": 9796,
            "factor": "1",
            "dispatchStrategy": {
                "assetForMetric": "c9fe6fc24fce121b2cc72680543a886055abb560043fda394ba5376203b7527d",
                "metric": "DISPATCH_METRIC_LP_FEES_RECEIVED",
                "windowLength": "1",
                "entityScope": "ENTITY_SCOPE_INDIVIDUALS",
                "individualScope": "INDIVIDUAL_SCOPE_ALL",
                "distributionStrategy": "DISTRIBUTION_STRATEGY_PRO_RATA",
                "lockPeriod": "0"

            }
        }
    }
}'

23311CC9B788B71B00B0CE3F15BB1C66699C463E9DC82A23583C4C7630AE4878

@daunatv daunatv added the 🐛 bug Something isn't working label Oct 31, 2023
@vega-issues vega-issues added the documentation Improvements or additions to documentation label Oct 31, 2023
@edd edd closed this as completed in #801 Oct 31, 2023
@github-project-automation github-project-automation bot moved this from NEW to DONE in Frontend Engineering Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working documentation Improvements or additions to documentation
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants