BLOCKCHAIN TECHNOLOGY CONSULTING
  • Home
  • Research
  • About

4/7/2020

BlockFi (deposit/withdraw, Loan, Trade)

Read Now
 
Website
https://app.blockfi.com/

First you will be asked KYC including DOB, address, photo verification to be able to use any function. 

1: Deposit/Withdrawal (earn interest rate)
BTC 6% interest rate per annual upto 5BTC, 3.2% for 5 <

For more detail
https://blockfi.com/rates
2: Loan function 
https://blockfi.com/crypto-loans/

Collateral = BTC
​
LTV (Loan To Value) 50% = 12.5% per year
LTV 35% = 10.44%
LTV 20% = 6.73%
3: Trade function
​
https://blockfi.com/trading/
I always have a doubt using 3rd party app for deposit since the case of exchange/ 3rd party app hack.
Good thing about BlockFi is relatively high interest rate. 6% BTC, 4.5% ETH which is higher than MakerOasis DAI saving rate (0% now but 6 - 8 in regular case). 
Maximum collateral amount is 50% e.g. 1000USD collateral to borrow 500USD but with high interest rate. it can go as low as 20% collateral. 

Share

4/4/2020

DeFi: Maker oasis "Trade" function

Read Now
 
This can be used to obtain small amount of DAI without going to exchanges such as Binance, Bittrex etc.
​24h Trading volume as of April 5 2020 is about 1m USD with WETH and DAI pair. 
There is no trading volumes for other crypto asset. 
If you are wondering how to gat WETH (Wrapped ETH), it is at the end of this post. 
1: Go to
https://oasis.app/trade/market
The screenshot is "Market" tab

2
: Connect to Metamask
Ledger and Trezor option looks like coming soon.
"Instant" tab
I bought DAI here
"Balance" tab
You can convert ETH => WETH here just pressing "Wrap".
There is also "Export" to save your trading history so that you can work on your tax.

Share

4/4/2020

DEFI: Compound (Dapp)

Read Now
 
Compound, Ethereum platform DeFi application:
Compound is a platform to earn interest and borrow cryptocurrencies.

This is a walkthrough of what it loos like to use.

Compound website
https://compound.finance/
Current market size screenshot as of April 5 2020, 114m USD total supply, is not big.
Earn interest by locking ETH  (or other asset you choose) as collateral
​

1: Go to
https://app.compound.finance/

2: Connect to your wallet 
I am using Metamask for this walkthrough. 
Current market asset and APY (Annual Percentage Yield) below, 0.01% interest by collaterizing ETH.. Not much. 2.07% for DAI
3: Click Ether to deposit
Collateral factor: Percentage of asset collateral price that you can borrow
e.g. 1000 USD ETH collateral = you can borrow 750 USD of asset.

It is different each crypto asset. 
e.g. Augur = 40%
For more info: 
https://medium.com/compound-finance/faq-1a2636713b69
Metamask or your connected device will ask you to confirm the transaction.
The screen it looks like this now. Yes I deposited only a little.
That's it. I can earn 0.01% of annual interest now.

Additionally, this is what it looks like to borrow. 
Click Dai in the "Available to borrow" and you will se below.
APY is 4.24%. 
I have disabled as collateral at the end of this tutorial and withdrew to Metamask.

Share

4/3/2020

staking: Tezos - Baking

Read Now
 
Tezos staking with Ledger hardware wallet tutorial:
Tezos website: https://tezos.com/
​

You can estimate how much you can earn by staking here.
https://www.stakingrewards.com/asset/tezos

Other staking coins list is below.
​https://www.stakingrewards.com/

Tezos staking with Ledger
https://www.ledger.com/staking-tezos/

Here is the walk through what it loos like.
1: Get Tezos (XTZ)
Buy at exchange

2: Install Tezos app on ledger live
3: Create account
4: Send XTZ to your account
​5: Start staking
6: Choose stake pool
Annual interest is about 5% - 6%, this is probably the most important part. 
Here is the link for some source of pools
https://www.mytezosbaker.com/
​

Done!
You can see the delegation on Ledger live now. First payout is in 40 days.
This is what looks like after a month. Staking reward every 2-3 days.
Picture
I am not going through how to operate staking pool but here is the link.
Check "Bake (Validate)" 
https://tezos.com/get-started

Developer installation: ​https://assets.tqtezos.com/docs/setup/1-tezos-client/

Share

4/3/2020

DEFI: maker Governance, Migrate and Sai CDP Portal

Read Now
 
These are other applications from MakerDAO.
Maker Governance. This is a voting system as MKR token to be used as voting power.
1: Governance
https://vote.makerdao.com/
(I am using ledger HW and choose "Ledger legacy", you can also choose Metamask etc)
These are how to connect with ledger
Choose "Ledger"
This is how much GAS costs for each execution at the time of writing.
​0.00021864 ETH = $0.03 USD
I skipped this below as I don't have MKR. 
Done!
This is what it looks like now. I will go through each tab.
​
Executive: Important proposal such as governance. You can't vote without MKR.
Polling: Other proposals.
​I managed to vote without MKR. 
Module: Kill switch in case of emergency which requires 50,000 MKR to burn
(Total circulation, 1,005,949 according to coinmarketcap.com). This is possible if MKR isn't decenterized enough? I don't see the point though other than wasting money.
Voting contract: To lock MKR in the voting contract
I will need to get MKR and lock here to vote on executive governance vote.
2: Migrate
https://migrate.makerdao.com/
This is to upgrade SAI to DAI. You have nothing to do if you don't have SAI. 
You will need to upgrade in case of future change. 
3: SAI CDP Portal
https://cdp.makerdao.com/
You do not need to do anything here. This is for someone previously collateralize SAI and need to upgrade to DAI.
Information about SAI and DAI:
https://defipulse.com/blog/what-is-sai-where-is-my-dai-migrating-to-multi-collateral-dai/

Share

4/2/2020

DEFI: maker Oasis, how to  open/close vault and borrow/save "DAI"

Read Now
 
This is a tutorial for how to acquire DAI and deposit to earn interest rate (However it is 0% currently due to DAI shortage.
Maker website: https://makerdao.com/en/
1: Go to: 
https://oasis.app/
​

and click "Borrow" and you will see the page below
3: Connect to your wallet
I am connecting to ledger nano S in this tutorial.
​
4: Open Ledger and choose Ethereum app
I assume you know how to use ledger nano S here. 
4: Choose Ledger Legacy
Note: Choosing ledger nano does not show the Ethereum address which I have some ETH even though unlocking and openings ledger live app.
 5: Create vault and deposit ETH to borrow DAI later
This takes some time, follow the instruction by the app and
(5): Make sure to your ETH app on ledger nano allows contract data which is in setting and choose click approve for each contract to execute such as "Deploy proxy" and "Set allowance". 
6: You will see the window below, skip it for now
This is what looks like now.
7: Borrow DAI
Click "Get started" and choose ETH-A in the next page. You can also choose BAT and USDC
8: Decide how much to borrow based on liquidation risk
Make sure that current ETH price and liquidation price is not close. 
I chose 10ETH (1400USD= current ETH price of Apr 2020, 140USD x 10) collateral and 500 DAI to borrow and the liquidation price is 75USD/ETH.
9: Now the vault is created and the detail below
This is the overview below.
You can see that liquidation penalty is 13% of the collateral. 
10: Deposit DAI
(Note that it is not a good idea to borrow DAI and and and save the DAI as there is 0% interest rate for deposit and you will be paying interest by borrowing. 
Borrowing rate per day as of now = 500 USD => 500.014309258276524579 USD)
 
Deposit and choose the amount.
However DAI is having an issue currently and the interest rate is 0% (It is about 8% previously), lower the stability rate is 0.5%. Please see for more information from the link below.
https://defirate.com/maker-dai-shortage/
The overview looks like this now.
Case study: Liquidation
Liquidation Penalty = 0.13 (13%)
Amount of collateral ETH = 10
Current ETH Price = 140.634 USD
Liquidation price = Amount of DAI borrowed * 1.5/ Amount of collateral = 75 USD
Amount of DAI borrowed = 500 USD
Collateralization ratio = Amount of ETH * ETH Price/ Amount of DAI borrowed = 140.634*10/500 = 2.81268
Collateralization ratio  > 1.5

Liquidation, lets say collateral auction did not go well, just enough to cover the borrowed amount in other word lose all the collateral. I should have some left over back to my vault  though this is the worst case scenario.

Collateral price = Amount of collateral ETH  * ETH Price = 1406.34 USD

If liquidate
I have 500 USD of DAI

If I bought ETH with the borrowed DAI
Amount of DAI borrowed / ETH Price * 75 = 266.65

If I did not borrow in the first place
Amount of collateral ETH * Liquidation price  = 750

Potential leftover = Amount of collateral ETH * Liquidation price * (1 - Liquidation Penalty) - Collateral price sold at auction
= 652.5 - Collateral price sold at auction

For more detail: https://community-development.makerdao.com/
11: Close vault
First you need to pay back the DAI debt by pressing "Pay back" button.
If you do not have enough DAI and you will need to buy some from exchange or "Trade" function in the Oasis app if it is small amount. 
This is a walkthrough of Oasis trade:
​https://www.btcjp.co/research/maer-oasis-trade-function
Withdraw the deposited ETH
Done!

Share

3/7/2020

Bitcoin: Blockstack introduction, renewal ID and dmail

Read Now
 
Introducing Blockstack
Bitcoin network application

How to start
https://blockstack.org/install
I am using browser web as easy to install.
Picture
Home screen below
Picture

My account tells me to renew the ID (created about 2 years ago) so that I am going to show you how it went below. 
It is free to use if your id is xxxxx.blockstack
Picture

Picture
The ID renewal costed 0.001768 = 16.1 USD
0.0000252 network fee = 0.23USD
Segwit address to non-Segwit, it took only few seconds for the transaction!
(1BTC = 9133USD as of March 7 2020)

It is probably cheaper than paying for a domain and email per account for traditional corporate web email service but it is free to regular use of @gmail.com. 
Picture
Picture
After update, 673 days of extension (730-57)
Picture

Gmail like UI and easy to use. There is also D-Drive which file can be saved. I have to say it is extremely slow, it took me over 10 seconds to load existing folders. 
Picture
Picture
I can't see this will replace existing email service but can be used something. Let's see. 

Please send me a message to hiro.id

Share

3/7/2020

Libra Testnet install and sample

Read Now
 
Libra testnet on Linux (Kali linux)
1: Github Link
https://github.com/libra/libra

2: Open terminal and install CLI
git clone https://github.com/libra/libra.git

3: Launch testnet
cd libra
git checkout testnet
Picture
I have done it before so that terminal displays as above
4: Installing dependencies, this takes several minutes depending on your network
./scripts/dev_setup.sh
Picture
(5): Start CLI (This attempt showed error)
./scripts/cli/start_cli_testnet.sh
Picture
As you can see and also as I expected it appeared error. 
I deleted existing Libra folder and reinstalled by step 2 - 4.
(I have installed Libra November 2019 and can still see quite updates on the Github repository, no surprise it didn't launch after 5 month of updates)

5: Start CLI
​./scripts/cli/start_cli_testnet.sh
​ (It took me about 20 mins)
Picture
6: Use Libra with CLI
​
Help command below
Picture
Picture
Picture
7: Libra CLI sample
What I did below is
1: account create
2: account list //to check account number = index 0 and address as shown below
3: account mint 0 100 // minted 100 coins at account 0
4: query balance 0 // check account 0 to see 100 coins
5: create account // created again so that I can send the coins
6: account list // now you can see 2 accounts
7: transfer 0 1 30 // transferred 30 coins account 0 to account 1 
8: query balance 0 // to check balance
9: query balance 1 // to check balance
Picture
It is simple to use and built with Rust. It seems secure with the limited function and the security of Rust language.
Libra project isn't hyped as much as before but it is still actively updated on Github as of today, March 7 2020. 
Picture

Share

2/22/2019

ETHEREUM: amazon kaleido, enterprise ethereum platform

Read Now
 
This is how to setup account to testing an application between computers via custom RPC network.
1: Go to https://console.kaleido.io/login?refAction=homepage-top-nav
2: Create an account for free. Here is the instruction link below.
​https://www.youtube.com/watch?v=EJEVqHHzQ2U&t=708s 
Picture
3: Sign-in, it should look like below and click your institute. 
Picture
4: Create node and add services you want. 
I created 3 nodes for no reason, there are usefull services such as IPFS file sharing. 
Picture
5: Add New App Credentials and click one of your node to connect to Metamask (If you don't know Metamask and please check my previous post). 
Copy the password, you will need to connect to the node. 
Picture
Picture
6: Click one of the node, scroll down and click "Connect Node". 
Picture
7: Choose native JSON/ RPC, choose the credential name and paste the password you copied.  
Picture
8: You should be seeing this page below. 
CONNECTION URL (at the bottom) is the link you need to connect via metamask. So copy the link. 
Picture
9: Signin metamask and click Networks which is at the top of the window.
And click custom RPC. 
Picture
10: Scroll down a little and copy and paste the CONNECTION URL into New Network box (new RPC URL) and save. 
And done now you are connected to private Ethereum network node which you created on Kaleido. 
Picture
11: Let's add some Ether! 
​Go to main page and click Ether Pool.
Copy and paste your Metamask address and send ether as much as you want.
(I think this is limited to 1 billion Ether)
Picture
Picture
Picture
12: You are now connected and ready to use the Ethereum network with the fund. 
Now go to https://remix.ethereum.org
and create smart contract if you are a programmer. 
If not this is the test I did. 
​https://github.com/Hirokomiya/message/blob/master/message.sol
Choose compiler at version:0.4.18+commit.9cf6e910 and deploy
Picture
13: copy and paste the smart contract address. in my case it is here
0xa98d32c0c32b1131973f92a8be4ed73e0b2665a3
Picture
14: Deploy the same contract at the same contract address.
Copy and paste the contract address and click "At Address". You are calling the app so that it doesn't cost GAS. (It is good to be free even though it is private network Ether)
The window below is signed in to different Metamask account and already connected to Kaleido node. Do the same thing from instruction 5 - 10. 
Picture
Sample
Sending "Hello world!!"
from 
0x6cd1b82490eb7aa18bec4305c6c2e691194c6898

​to
0x2c1cc5eecd5e9d332e8d21d1c03849c27b90796b

at the smart contract address
0xa98d32c0c32b1131973f92a8be4ed73e0b2665a3

with this app
https://github.com/Hirokomiya/message/blob/master/message.sol
Picture
Picture
Extra, what I tested
1: If you give your credential URL to others to connect,  your connection will automatically be cut and the next one will be able to connect. 
2: The smart contract will not work as the same app if you changed the code. 

Share

1/13/2019

ETHEREUM: List of Testnet ETher links

Read Now
 

Ropsten
https://faucet.metamask.io/

Rinkeyby
https://faucet.rinkeby.io/

KOvan (Login to Github)
https://faucet.kovan.network/

Share

<<Previous
Forward>>
"website and the information contained herein is not intended to be a source of advice or credit analysis with respect to the material presented, and the information and/or documents contained in this website do not constitute investment advice."
  • Home
  • Research
  • About