Skip to content

Easy leverage on G-UNI using Dai Flash Mint Module.

Notifications You must be signed in to change notification settings

hexonaut/guni-lev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Easy leverage for G-UNI contract: https://etherscan.io/address/0xf30cE3B3564D0D12b1B240013299c7f12Fd5bd0f#writeContract

Steps are:

1. vat.hope(0xf30cE3B3564D0D12b1B240013299c7f12Fd5bd0f)
2. dai.approve(0xf30cE3B3564D0D12b1B240013299c7f12Fd5bd0f, AMOUNT)
3. guniLev.wind(AMOUNT, MIN_AMOUNT_EXPECTED_IN_WALLET_AFTER_TX)
4. vat.nope(0xf30cE3B3564D0D12b1B240013299c7f12Fd5bd0f)		// For safety

MIN_AMOUNT_EXPECTED_IN_WALLET_AFTER_TX can be gathered by querying getWindEstimates(). Use the first value returned and set it slightly below that value to deal with G-UNI slippage. You will need at least AMOUNT of Dai in your wallet. Use this at your own risk.

About

Easy leverage on G-UNI using Dai Flash Mint Module.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published