project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4

EasyTransfer

Automatic retrieval of a contract's funds when specific conditions are met.

EasyTransfer

Created At

ETHGlobal London

Project Description

EasyTransfer handles two main functions on a contract where funds were deposited and placed in a Defi pool. The first function is "withdraw" which simply withdraws deposited funds when the liquidity of the WMATIC-USD pair lowers over extended periods of time. This is because in mainstream hedging techniques it is a sign of higher volatility to come and hence higher, unwanted exposure. The contract withdraws the funds and swaps them for WETH. The second function was to "repay" the position as soon as the utilization rate in the pool exceeds 90%. Often, this high utilization triggers high interest rates as Defi Protocols want debtors to repay their loan as soon as possible and lower pool utilization. There is an Upkeep on each function. the first triggers a script that analyzes liquidities with theGraph while the second a script that fetches the utilization rate with CoinGecko, the Upkeep can be set up daily/weekly/monthly.

How it's Made

The main stack to be used was Chainlink because of its functions that deploy scripts both on a local and decentralized manner and Automation that allows triggering functions automatically in a certain interval. Unfortunately because of time errors when interacting with the DON the scripts could not be verified decentrally. Hence, local outputs of the scripts had to be triggered manually. Regarding the repay function, wanted results were not fully achieved too. This project has hence still potential for future improvements.

background image mobile

Join the mailing list

Get the latest news and updates