All Projects → hexonaut → guni-lev

hexonaut / guni-lev

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

Programming Languages

solidity
1140 projects
Makefile
30231 projects

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].