Commons Upgrade Demo (part 2)

Some months ago, before launching the hatch, we tested that the migration process was working as expected. Some time after we started to work on a script that could mutate a Gardens DAO into the future TECommons DAO, with a fully fledged Augmented Bonding Curve, and the rest of the specifications defined in the config dashboard.

Today is the day in which we can do a demo of the whole process, at last. The demo will take place in two stages:

  1. The Migration Vote. It will transfer the funds from a demo Hatch DAO to an already modified Gardens DAO, and it will mint one token in the new DAO for each token in the old DAO in the moment of execution with the tokenlog’s top proposal token freeze and token thaw. Time: Starting from today December 7th, at 15:36 PM UTC and until tomorrow 8th at 15:36 PM UTC.
  2. Bonding Curve Opening Vote. It will open the bonding curve with a reserve ratio derived from the opening price present in the tokenlog’s top proposal parameters. It will also perform the initial buy defined in the same proposal. Time: Starting from Thursday 9th at 12 PM UTC, and finishing Saturday 12 PM UTC (after two days).

Once the first vote is executed, people will be able to create test proposals to be voted using Conviction Voting. Once the second vote is executed, tDAI (test DAI) holders will be able to buy tokens at convert.tecommons.org, which allows to interact with the demo bonding curve.

Technical details

Production contracts

Demo contracts

This is the EVMcl we used to create the “Mock” Hatch DAO from a normal Company DAO, for testing purposes only:

connect 0x7A06c1106908d952974Ca1dC2b66F8Cc7dF75DBb token-manager voting
install agent:new
install migration-tools-beta.open:new token-manager agent agent:new
grant migration-tools-beta.open:new agent TRANSFER_ROLE voting
grant migration-tools-beta.open:new agent:new TRANSFER_ROLE voting
grant voting migration-tools-beta.open:new MIGRATE_ROLE voting

This is the script we used to obtain TECH tokenholders, in order to mock their token in the Mock Hatch DAO:

fetch('https://blockscout.com/xdai/mainnet/api?module=token&action=getTokenHolders&contractaddress=0x799844141C2627bD195c89c3A0c71341d0314c55&offset=280')
  .then((o) => o.json())
  .then(o => o
    .result
    .map(holder => holder.address + " " + (holder.value / 1e18))
    .join('\n'))
  .then(console.log)

The votes and the results of the demo will be announced in this thread.

4 Likes

:partying_face: :fire: :robot: :muscle: :tec_logo: :ear: Do you hear that? I could swear I keep hearing Bill Pullman shouting about something… :man_shrugging: probably nothing.

2 Likes

The first vote has been created December 7th at 15:36h UTC due to some technical complications, and will be open until December 8th at 15:36h UTC. The parameter set that received more votes until now in tokenlog is TEC Casino. We adapted the token name, symbol, vote duration, delegated voting period, min quorum, and execution delay for the purpose of this test. The resting parameters are as they are in the proposal.

>> Migration Vote <<

This vote migrates the funds from a “Mock” Hatch DAO to a new (“staging”) demo Garden that has been modified to receive the funds if and only if it is going to mint tokens for all the Hatch DAO tokenholders as a security measure.

Three addresses are granted with 1,000 TESTTEC in order to be able to deposit some stake into the agreement and be able to create the next vote. In the real DAO the addresses that are responsible for that should send back the TEC to the LASERTAG multisig when their job has finished.

If this vote passes, TESTTEC tokenholders should be able to propose test conviction votes and make them pass. The opening of the demo bonding curve vote will start on Thursday if everything goes as expected.

4 Likes

15% of token holders voted on a DEMO proposal…

Probably Nothing…

:white_check_mark: Hatch DAO Demo Step 1 :tada: :tada:

2 Likes

The migration process has been completed and the new test garden is live with 1,995,737 TestTEC.

Tomorrow at 12:00 UTC we launch the second vote to open the bonding curve.

1 Like

The vote for opening the bonding curve is live in the new garden. The voting duration was modified for fitting a short demo, so you should be able to vote until Saturday 6:30 am UTC, after that, there is a 12 hours delegated voting period, and the vote should be executable on Saturday 12:30 pm UTC.

2 Likes

Some problems raised to the surface with this demo, and we have taken action so solve them.

  1. We were calculating wrong the proposal deposit and challenge deposit amounts on the garden creation from the commons config parameters. This is fixed now but for the demo they will remain pretty low (2.5 TestTEC for creating proposals and 5 TestTEC for challenging them).
  2. The mock hatch dao had the double of the tDAI that it had to have (we minted it twice). This is fixed as well, but the second vote (the one that opens the ABC) must be repeated.
  3. We thought that the delegated voting period was added on top of the voting period, and the token thaw and freeze depends on that. We fixed it for the TEC launch.

The old vote has been disputed and settled, and a new vote has been created to open the bonding curve with the right reserve ratio and do the initial buy. You can vote now until Saturday at 11 pm UTC.

>> Please vote here <<

1 Like

The opening of the bonding curve did not go as expected, so we will have to open it with the corrected parameters again.

We will do it in three steps:

  1. Close the bonding curve (the vote is already on).
  2. Restore the same balances we had before the vote (vote in here as well, please).
  3. Open it again.

I’m really sorry for the inconvenience.

3 Likes

The vote to open de bonding curve is up, sorry for taking that long, I just wanted to make sure all the numbers made sense.

>> Open Testing Bonding Curve Vote <<

The reserve ratio is set to 3.2056% so the opening price can be 1.20 wxDAI. The “initial buy” with 250,000 wxDAI from the common pool will increase the price to approximately 4.89 wxDAI/TestTEC.

This is the evmcl used to create the vote:

connect 0xf7ac40a5d0933e13b346ee611d9072b6095f43fc disputable-voting.open @context:Open ABC
exec augmented-bonding-curve.open addCollateralToken 0x70be33ccef2d04d52ab5f1dabb15291f47b92da8 1e18 1e18 32056
act agent 0x70be33ccef2d04d52ab5f1dabb15291f47b92da8 approve(address,uint256) augmented-bonding-curve.open 250000e18
act agent augmented-bonding-curve.open makeBuyOrder(address,address,uint256,uint256) agent 0x70be33ccef2d04d52ab5f1dabb15291f47b92da8 250000e18 0
2 Likes

The vote has been executed and the bonding curve can be tested at convert.tecommons.org.

The price after the initial buy of 250k tDAI is 4.8125629 tDAI/TestTEC. The initial buy bought 94,462.382 TestTEC that sent to the Common Pool (it could be sent to Laser Tag multisig or anywhere else with one vote). This buy also sent 1,875 tDAI back to the Common Pool due to the entry fee of 0.75%.

This completes the Commons Upgrade demo, and means that all technical aspects are ready for the launch of TEC after the param debates. In the meanwhile, don’t hesitate to test the bonding curve with your tDAI!

1 Like