TensorBox Token Smart Contract

tensorbox
TensorBox
Published in
2 min readOct 1, 2017

If you’re going to participate in our ITO (for more details, see http://www.TensorBox.com or Japanese or Korean versions) you may want to learn how our Smart Contract works. You can view the source code here: https://github.com/tensorboxtoken/contract

We have two smart contracts:

1. One is for crowdfunding purposes: TSBCrowdFundingContract

2. One for TBX token: TSBToken

TSBCrowdFundingContract is used for:

1. Automatically receiving ETH and calculating amounts of BTC received;

2. Checking the end of crowdfunding: either happening on Oct 16th, 2017 or when the maximum cap ($0.5 m) is reached, whichever happens first;

3. Allowing participants to withdraw contributions after Oct 16th, 2017, if min cap ($0.2 m) was not reached. (you should manually call safeWithdrawal() function)

4. Distribution of TBX tokens and bonuses to contributors on Oct 16th, 2017, if min cap ($0.2 m) was reached. Tokens will be distributed to the wallets that have been used to deposit funds.

5. Converting all the contributions at an exchange rate at the end of crowdfunding

TBXToken is used for:

1. Receiving dividends and coupon payments. Manual call of a contract function WithdrawDividendsAndCoupons is required.

2. Transfering tokens to another wallet (the right to withdraw dividends will also be transferred)

3. Withdrawing invested funds, i.e. selling tokens to TensorBox (only after 6 months from the end of the crowdfunding). Investor needs to:

a. Send a request 2 weeks in advance (by calling the contract function InformRebuy)

b. Wait for TensorBox to prepare the sum and transder it within 2 weeks

c. After 2 weeks, it is possible to call the contract function doRebuy to exchange TBX tokens to ETH

--

--