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

Обновить структуру обновления настроек сообщества charge #642

Open
bacher opened this issue Sep 16, 2019 · 0 comments
Assignees

Comments

@bacher
Copy link
Member

bacher commented Sep 16, 2019

По батарейке на странице параметров отображать:
Параметры контракта батарейка
Количество голосований (шт) (number_of_votes, от 1 до 1000) // 200
Период голосования (сек) (voting_period, от 0 до 4 млрд) // 432000 (5 суток)

На основе этого надо отправлять два действия:
gls.charge:setrestorer

{
  "token_code":"GOLOS",
  "charge_id":0,
  "func_str":<restorer>,
  max_prev:...,
  max_vesting:...,
  max_elapsed:...
}

где restorer = "t*10000/<период голосования>, max_...=2251799813685247

gls.publish:setlimit

{
  "act":"vote",
  "token_code":"GOLOS",
  "charge_id":0,
  "price": <price>,
  "cutoff":10000,
  "vesting_price":0,
  "min_vesting":0
}

где price=<количество голосований>

@bacher bacher self-assigned this Sep 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant