---
# System prepended metadata

title: zkTropykus Delegated credit tutorial

---

# zkTropykus Delegated credit tutorial

For the first release of Tropykus in zkEVM we are exploring the use case of delegated credit using Web3Auth as the main wallet and USDC a the sole reserve enabled for the protocol. 

Here are some instructions on how to run the application being a delegator (who deposits some collateral), and a delegatee (a user who can get a loan using someone else's collateral)


---

## Setup

1. To access the app go to https://zk.test.tropykus.com/
2. Select your authentication method from the options: Email, Apple ID, Google
![](https://hackmd.io/_uploads/rJQTVe4Sn.png)
3. Log in into the platform
4. Select your role: **Delegator (Delegador)** is the user who deposits a collateral in USDC to be used for other users. **Delegatee (Delegado)** is the user who gets a
![](https://hackmd.io/_uploads/H1BNSl4H2.png)


---
## Smart Contracts Addresses

Here are the most important smart contract addresses to interact with the protocol on testnet:



| Contract | Address | 
| -------- | -------- | 
| USDC     | 0xEc36899D4Cd6f72ba610aF6AC3B60ed1e954124a     | 
| WBTC     | 0xCCEF0Dd1f507A6bA5FD98841C835B582DE2D3084     | 
| LendingPool | 0xDB7495195c7baab63dD5d2c3781a4B663FabF080     | 
| AAVEOracle     | 0xeFAE8033eb9cb2461cD29001a05a285EEF980384     | 
| DataProvider     | 0x6419d3A306A8fBB259fAB055366edc4C06Cf3c78     | 

___


## Faucet

To To use the faucet go to the [Tropykus zkEVM Testnet app](https://zk.test.tropykus.com/)

Login as a delegator or Delegatee

Click on **"Solicitar Tokens de prueba"**
![](https://hackmd.io/_uploads/BJClbVTr3.png)

You should have now some ETH and USDC to use the platform

---

## Delegation of collateral

1. Log in as a Delegator
2. Deposit some ETH for gas and some USDC using address on the top-right corner 

![](https://hackmd.io/_uploads/SkyAwxNr2.png)

3. Now you can deposit your collateral using the "**Depositar**" button
4. You can redeem your collateral using the "**Retirar**" button
5. To open a new credit line go to "**Nuevo préstamo**"
6. Write the amount and click "**Agregar delegado**" to create a new credit line
![](https://hackmd.io/_uploads/SyWPOgVB3.png)

7. Write the email of a previously registered delegatee user and click 
![](https://hackmd.io/_uploads/HkwK_g4Bn.png)

8. Click "**Delegar**"

---

## Getting a undercollateralized loan

1. Login as a **Delegatee** user, keep in mind your to be communicated to the **Delegator**
2. Click on "**Pedir Prestado**
3. Set the amount and request the loan
4. You can repay the loan with the "**Pagar**" button

## ABIs

### ERC20
