Skip to content

Instantly share code, notes, and snippets.

View AnthonyAkentiev's full-sized avatar
🙂

Anthony Akentiev AnthonyAkentiev

🙂
View GitHub Profile
balances[HolderA] is 100 
balances[HolderB] is 20
function updateDaoParams(Params _params) isCanDo("DevZen_updateDaoParams") public 
function selectNextHost(address _nextHost) isCanDo("DevZen_selectNextHost") public;
function moveToNextEpisode(bool _guestHasCome) isCanDo("DevZen_moveToNextExpisode") public;
contract ILiquidVoting {
// возвращает только делегированную силу
function getDelegatedPowerOf(address _of) public view returns(uint);
// получить кол-во делегируемых МНОЮ силы адресу _to
function getDelegatedPowerByMe(address _to) public view returns(uint);
// делегировать токены
function delegateTo(address _to, uint _tokenAmount) public;
npm install --save @thetta/core
  1. There are four DevZen team members
  2. The next show host is selected by a consensus of all the DevZen team members
  3. Any listener can suggest a topic to be discussed in the next show
  4. The DevZen team members select topics from the suggested list and move them to the "approved for the next show" list.
  5. The show has ads. Let the maxium number of ad slots be 5.
  6. Also, the guys are using Patreon to get money for mics, hosting etc.
contract DaoBase {
int x;
function method1() public {x = x +1; }
}
contract Moneyflow {
DaoBase daoBase;
}

1. Портируем Table из M2 -> M1 как отдельный контракт с интерфейсом WeiExpense

2. Допиливаем Fund, делаем его Conditional:

1.a) (push) как только переполнились -> отправляем на output (WeiExpense у которого берутся getNeededAmount()) 2.b) (pull) как только прееполнились -> открылись для вывода и перестаем собирать деньги и отправляем их дальше (не revert'им)

2.a) накапливаем 1 раз 2.b) накапливаем бесконечно раз 2.c) накапилваем бесконечно раз, но с периодом K

## Сравнение не реализаций! А концепций M1 vs M2
### M1 недостатки:
1. > В текущей архитектуре нельзя реализовать roadmap-milestones
2. > фича - "если посылаем меньше денег, то нет revert"
2.2 Нельзя накапливать деньги маленькими порциями
2.3 Невозможно заполнить наполовину элемент
3. > фича - "у WeiExpense' есть выходы" (типа удобнее для клиента?)

Decentralized Rating DAO scheme (with the TCR)

Tokens

  1. Platform tokens - give power to govern the DAO, to add new projects to the high places in the list, to evaluate the rating (prediction).
  2. Reputation tokens - to set rating.

Users

  1. Reader.
  2. Adder. Can add new project to the list
  3. Expert. Gets tokens as a reward for the project evaluation.

Decentralized Rating DAO scheme (without the TCR)

Tokens

  1. Platform tokens - give power to govern the DAO, to add new projects to the high places in the list, to evaluate the rating (prediction).
  2. Reputation tokens - to set rating.

Users

  1. Reader. Reader can read any rating without paying.
  2. Project leader. Can add new project to the list