Open mikedotexe opened 1 year ago
I tried analyzing agent balance for Bank
message (two actions). Results look like this:
Once: https://jsfiddle.net/tLv25rc4/11/
Immediate: https://jsfiddle.net/tLv25rc4/8/
Agent seems profitable, but I think he receives about 13% instead of 5%: spent on proxy_call: 31250 manager-state increase: 35280 agent profit: 4030 4030 / 31250 = 0.12986
The same calculations for the last proxy_call
:
spent on proxy_call: 33646
manager-state increase: 35280
agent profit: 1634
1634 / 33646 = 0.04856
So in this case it's a little less than 5% profit.
It seems logical since each proxy_call agent receives reward as if it's the last (most expensive) proxy_call
.
For now we can use this: https://jsfiddle.net/beaver71/2j2gk8nb/
Where you can edit the data for the two charts. The data for the two charts has the similar
x: …, y: …
that we're outputting here.Let's please create a chart that shows two lines:
Create a task, give it 1 JUNO. Make sure the agent has enough JUNO so complete all the recurring payments (without having to stop and call
withdraw
)Then at the end, when the task has completed, stop the agent and call
withdraw
.At this point the indexer will have enough data to put into the JSFiddle link above.
And if you could please run that test on tasks that are Once and and Immediate.
I have been using this script that does payments every other block:
recurring payment simple script.zip
(Note, in the zip file above I do not have scripts for Once and Immediate, so if you can please write those it'd be great)
The most important thing we need to know: what percentage did the agent end up making in all the tests? How does this compare to our expectations?
If we could have a report of that, it'd be amazing, thank you