When I use the aragonCLI to call approveAndBond on the Livepeer App, the argument passed as the _amount variable gets interpreted in a way which I would not expect.
What appears to be happening is that if e.g. the amount variable passed in is xxxxxxxx then the value proposed in the vote to be approved and bonded is 0.xxxxxxxx.
This means that there appears to be no way to set an _amount of >= 1 using the aragonCLI.
Expected behaviour
I would expect that the _amount variable is expressed in LPTU, such that:
1 is interpreted as 0.000000000000000001 LPT
1000000000000000000 is interpreted at 1 LPT
Steps to reproduce
Using aragonCLI, run the following command using a signing key for an address which has the permissions to approveAndBond on the App (either directly, or through the voting app):
dao exec <DAO-Address> <Livepeer-App-Proxy-Address> approveAndBond 123456789 <Transcoder-Address> --environment aragon:rinkeby
See the voting app of the DAO in the web interface has created a vote to bond 0.123456789 LPT
Observed behaviour
When I use the aragonCLI to call
approveAndBond
on the Livepeer App, the argument passed as the_amount
variable gets interpreted in a way which I would not expect.What appears to be happening is that if e.g. the amount variable passed in is
xxxxxxxx
then the value proposed in the vote to be approved and bonded is0.xxxxxxxx
.This means that there appears to be no way to set an
_amount
of >= 1 using the aragonCLI.Expected behaviour
I would expect that the
_amount
variable is expressed in LPTU, such that:1
is interpreted as0.000000000000000001
LPT1000000000000000000
is interpreted at1
LPTSteps to reproduce
Screenshots and other relevant information
Running these commands in aragonCLI
...resulted in these votes in the Aragon UI: