How to use Venus Protocol’s Isolated Lending by executing SmartContracts directly?

Should there be a rare occurrence of a UI outage or downtime, you can still interact with Venus IPFS website or with smart contracts using a blockchain explorer such as bscscan.com.
The subsequent steps require a desktop browser, ideally Chrome, and the MetaMask plugin.

1. Approve Assets

To deposit your assets into the vault, you must grant permission to extract tokens from your wallet.

Identify your Isolated Pool and which asset you will deposit.

CategoryAssetAsset contractUnderlying AssetUnderlying Asset ContractComptroller
StablecoinHAY0x0782b6d8c4551b9760e74c0545a9bcd90bdc41e5vHAY0xCa2D81AA7C09A1a025De797600A7081146dceEd9https://bscscan.com/address/0x94c1495cD4c557f1560Cbd68EAB0d197e6291571
USDD0xd17479997f34dd9156deef8f95a52d81d265be9cvUSDD0xc3a45ad8812189cAb659aD99E64B1376f6aCD035
USDT0x55d398326f99059ff775485246999027b3197955vUSDT0x5e3072305F9caE1c7A82F6Fe9E38811c74922c3B
agEUR0x12f31b73d812c6bb0d735a218c086d44d5fe5f89vagEUR0x795DE779Be00Ea46eA97a28BDD38d9ED570BCF0F
CategoryAssetAsset contractUnderlying AssetUnderlying Asset ContractComptroller
DeFiBSWs/0x8f657dFD3a1354DEB4545765fE6840cc54AFd379vBSW0x8f657dFD3a1354DEB4545765fE6840cc54AFd379https://bscscan.com/address/0x3344417c9360b963ca93A4e8305361AEde340Ab9
ALPACA0x8f0528ce5ef7b51152a59745befdd91d97091d2fvALPACA0x02c5Fb0F26761093D297165e902e96D08576D344
USDT0x55d398326f99059ff775485246999027b3197955vUSDT0x1D8bBDE12B6b34140604E18e9f9c6e14deC16854
USDD0xd17479997f34dd9156deef8f95a52d81d265be9cvUSDD0xA615467caE6B9E0bb98BC04B4411d9296fd1dFa0
ANKR0xf307910a4c7bbc79691fd374889b36d8531b08e3vANKR0x19CE11C8817a1828D1d357DFBF62dCf5b0B2A362
ankrBNB0x52f24a5e03aee338da5fd9df68d2b6fae1178827vankrBNB0x53728FD51060a85ac41974C6C3Eb1DaE42776723
TWT0x4b0f1812e5df2a09796481ff14017e6005508003vTWT0x736bf1D21A28b5DC19A1aC8cA71Fc2856C23c03F
CategoryAssetAsset contractUnderlying AssetUnderlying Asset ContractComptroller
GameFiRACA0x12bb890508c125661e03b09ec06e404bc9289040vRACA0xE5FE5527A5b76C75eedE77FdFA6B80D52444A465https://bscscan.com/address/0x1b43ea8622e76627B81665B1eCeBB4867566B963
FLOKI0xfb5b838b6cfeedc2873ab27866079ac55363d37evFLOKI0xc353B7a1E13dDba393B5E120D4169Da7185aA2cb
USDD0xd17479997f34dd9156deef8f95a52d81d265be9cvUSDD0x9f2FD23bd0A5E08C5f2b9DD6CF9C96Bfb5fA515C
USDT0x55d398326f99059ff775485246999027b3197955vUSDT0x4978591f17670A846137d9d613e333C38dc68A37
CategoryAssetAsset contractUnderlying AssetUnderlying Asset ContractComptroller
Liquid Staked BNBankrBNB0x52f24a5e03aee338da5fd9df68d2b6fae1178827vankrBNB0xBfe25459BA784e70E2D7a718Be99a1f3521cA17fhttps://bscscan.com/address/0xd933909A4a2b7A4638903028f44D1d38ce27c352
BNBx0x1bdd3cf7f79cfb8edbb955f20ad99211551ba275vBNBx0x5E21bF67a6af41c74C1773E4b473ca5ce8fd3791
stkBNB0xc2e9d07f66a89c44062459a47a0d2dc038e4fb16vstkBNB0xcc5D9e502574cda17215E70bC0B4546663785227
SnBNB0xb0b84d294e0c75a6abe60171b70edeb2efd14a1bvSnBNB0xd3CC9d8f3689B83c91b7B59cAB4946B063EB894A
WBNB0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095cvWBNB0xe10E80B7FD3a29fE46E16C30CC8F4dd938B742e2
CategoryAssetAsset contractUnderlying AssetUnderlying Asset ContractComptroller
TronBTT0x352cb5e19b12fc216548a2677bd0fce83bae434bvBTT0x49c26e12959345472E2Fd95E5f79F8381058d3Eehttps://bscscan.com/address/0x23b4404E4E5eC5FF5a6FFb70B7d14E3FabF237B0
TRX0xce7de646e7208a4ef112cb6ed5038fa6cc6b12e3vTRX0x836beb2cB723C498136e1119248436A645845F4E
WIN0xaef0d72a118ce24fee3cd1d43d383897d05b4e99vWIN0xb114cfA615c828D88021a41bFc524B800E64a9D5
USDD0xd17479997f34dd9156deef8f95a52d81d265be9cvUSDD0xf1da185CCe5BeD1BeBbb3007Ef738Ea4224025F7
USDT0x55d398326f99059ff775485246999027b3197955vUSDT0x281E5378f99A4bc55b295ABc0A3E7eD32Deba059

a) Engage with the Asset smart contract. In this guide, we’ll place USDT into Stablecoin Isolated Pool. 

b) Click on « Contract », « Write contract » and « Connect to Web3 »

c) Enter the underlying asset address  as the spender address and specify the amount you wish to deposit. In this guide, we deposit 1USDT.

d) Convert the amount value from decimal to hexadecimal format (10^18).
Click on « amount (uint256) + »

e) Click on « Write »

2. Deposit Collateral

  1. Visit the underlying asset contract page. Under “Contract” section, get in “Write as Proxy” and click on “Connect to Web3”. For this guide, we will deposit USDT in Stablecoin Isolated Pool. We will interact with https://bscscan.com/address/0x5e3072305F9caE1c7A82F6Fe9E38811c74922c3B
  1. Input the amount to deposit in “16. mint” field.
  1. Change this value to hexadecimal by selecting [+] and choosing “10^18”
  1. Click on “Write”

3. Verify your balance

In this guide, we will verify the USDT deposited into Stablecoin Isolated Pool by 0xc7e61D1826C56B74B1712b93B542cCD541271E82.

a) Click on « Contract », « Read as proxy »

b) Write your wallet address in « 6. balanceOf » section and click on Query.

4. Toggle Collateral

a) Interact with the Comptroller smart contract that oversees your pool.

b) Connect your web3 wallet.

c) Under the « Write as Proxy » section, insert the Underlying Asset Address from your wallet into “3. enterMarkets”. Then, press “Write”.

5. Borrow Assets

a) Interact with the Underlying Asset Contract of the token you want to borrow. For this guide, we will borrow 1 Hay. Connect your wallet to Web3.

b) In the “Write as Proxy” section, complete the “Borrow” field.

c) Convert to the format (10^18) by selecting “amount (uint256) [+]”

d) Press “Write” to borrow 1 Hay.

6. Repay

a) Interact with the Underlying Asset Contract of the token you want to reimburse. For this guide, we will repay 1 Hay.

b) Input the amount to repay in “22. repayBorrow” field then press “Write”

7. Withdraw Collateral

  1. Visit the underlying asset contract page. In “Contract” section, get in “Write as Proxy” and Connect your wallet to Web3.

For this guide, we will withdraw USDT supplied  in Stablecoin Isolated Pool. We will interact with https://bscscan.com/address/0x5e3072305F9caE1c7A82F6Fe9E38811c74922c3B

  1. Click on “Connect to Web3”
  1. In the “Redeem” section, enter the amount of vToken you have in your wallet. Ensure you used hexadecimal format (if not, click on [+] and pick 10^18).
  1. Press “Write”

To stay up to date with the latest developments and progress, you can visit the Venus Protocol Website and Dapp.  For the latest news and events, we invite you to visit the Venus Community. To receive the latest updates, please follow us on Twitter and in our Telegram Announcement Group. We also invite you to join to our global community on Telegram for a broader discussion.


Related Tags: