ExercisepKLIMA

Git Source

State Variables

owner

address public owner;

newOwner

address public newOwner;

pKLIMA

address public immutable pKLIMA;

KLIMA

address public immutable KLIMA;

BCT

address public immutable BCT;

treasury

address public immutable treasury;

circulatingKLIMAContract

address public immutable circulatingKLIMAContract;

terms

mapping(address => Term) public terms;

walletChange

mapping(address => address) public walletChange;

hasMigrated

bool hasMigrated;

Functions

constructor

constructor(address _pKLIMA, address _KLIMA, address _BCT, address _treasury, address _circulatingKLIMAContract);

setTerms

function setTerms(address _vester, uint256 _amountCanClaim, uint256 _rate) external returns (bool);

exercise

function exercise(uint256 _amount) external returns (bool);

pushWalletChange

function pushWalletChange(address _newWallet) external returns (bool);

pullWalletChange

function pullWalletChange(address _oldWallet) external returns (bool);

redeemableFor

function redeemableFor(address _vester) public view returns (uint256);

redeemable

function redeemable(Term memory _info) internal view returns (uint256);

pushOwnership

function pushOwnership(address _newOwner) external returns (bool);

pullOwnership

function pullOwnership() external returns (bool);

Structs

Term

struct Term {
    uint256 percent;
    uint256 claimed;
    uint256 max;
}