Wonderland-Money / wonderland-frontend

MIT License
228 stars 296 forks source link

Contract parameters #51

Open hjertefolger opened 2 years ago

hjertefolger commented 2 years ago

Hey all, is here somebody who could please explain to me which parameters are important in contract setup after deployment? I'm unable to find any information anywhere.

It would be great to have explanation and examples especially for bonding contracts - how to initialise bonding, what does terms do and so on. There are just few parameters to describe.

Thank you

s1k2614 commented 2 years ago

Hello, let me know which one espacially you mean and for what purpose, I'm happy to help you out

hjertefolger commented 2 years ago

Thank you very much @s1k2614 I wanted to understand better how the contract works and maybe setup a functional test system.

I was able to setup staking, unstaking, wrapping token, but bonding is quite different I suppose.

By quite different I mean, unlike stanking, I suppose it requires not only setting up the initial parameters while deploying but also initialising the bonding contract after the deployment.

I was playing around with most simple one I guess the MIM/Test token, I initialized the contract after deployment with parameters below, but whenever I've actually tried to Mint, it gives me erc20 error. I don't know if there are any additional steps required to make it work.

_controlVariable = 100 _vestingTerm = 432000 _minimumPrice = 0 _maxPayout = 1000 _fee = 0 _maxDebt = 10000000000000000000000000 _initialDebt = 1000000000000

Thank you very much for any help.