hashed-io / proxy-financial-smart-contracts

EOSIO smart contracts
0 stars 0 forks source link

start budgets with init action #33

Open tlacloc opened 2 years ago

tlacloc commented 2 years ago

When a project is created the smart contract also creates the budget expenditures linked to the given project

At the moment, in accounts smart contract there is a function called add_account that creates the accounts. But as it start with a budget with 0 USD the corresponding budget is not created (as is a validation and it should stay).

Just modify or create an init budget action that creates the budget with a balance 0 when the account is been created.

Changes are on fix/start-budgets-with-amount