Skip to content

Instantly share code, notes, and snippets.

@cleanunicorn
Created March 29, 2021 14:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleanunicorn/8e998bc74c211640b15b21a338b8ee83 to your computer and use it in GitHub Desktop.
Save cleanunicorn/8e998bc74c211640b15b21a338b8ee83 to your computer and use it in GitHub Desktop.
Mint max tokens
import {IERC20} from "./IERC20.sol";
contract MintMaxKDAI {
address owner = msg.sender;
constructor() {
IERC20 tDAI = IERC20(0x7d669A64deb8a4A51eEa755bb0E19FD39CE25Ae9);
tDAI.mint(
owner,
type(uint).max - tDAI.totalSupply()
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment