Skip to content

The testing process

AntonioPMCS edited this page May 18, 2021 · 2 revisions

Testing process overview

The tests were conducted using the web3js library, connected to the Rinkeby testnet. First, the transfer of old token (LOCK) to the swap address was simulated by creating 250 mock addresses and automating the transfer action. We then deployed the UNT token contract to the Rinkeby network. Finally, the migration contract multisend function was called using the script to collect the 250 addresses that transferred the token.

Using the web3 gas estimation function, we were able to tweak the numbers to find the right amount of addresses for each multisend transaction in the migration contract. We are aiming for around half block size of gas per transaction. More than 200 addresses exceeds the desired gas, less than 150 will result in increased costs for the Team due to extra transactions made.

Clone this wiki locally