LibKlima

Git Source

Author: Cujo

Functions

toWrappedAmount

Returns wsKLIMA amount for provided sKLIMA amount

function toWrappedAmount(uint256 amount) internal view returns (uint256 wrappedAmount);

Parameters

NameTypeDescription
amountuint256sKLIMA provided

Returns

NameTypeDescription
wrappedAmountuint256wsKLIMA amount

toUnwrappedAmount

Returns sKLIMA amount for provided wsKLIMA amount

function toUnwrappedAmount(uint256 amount) internal view returns (uint256 unwrappedAmount);

Parameters

NameTypeDescription
amountuint256wsKLIMA provided

Returns

NameTypeDescription
unwrappedAmountuint256sKLIMA amount

unwrapKlima

Unwraps and unstakes provided wsKLIMA amount

function unwrapKlima(uint256 amount) internal returns (uint256 unwrappedAmount);

Parameters

NameTypeDescription
amountuint256wsKLIMA provided

Returns

NameTypeDescription
unwrappedAmountuint256Final KLIMA amount

unstakeKlima

Unstakes provided sKLIMA amount

function unstakeKlima(uint256 amount) internal;

Parameters

NameTypeDescription
amountuint256sKLIMA provided

wrapKlima

Stakes and wraps provided KLIMA amount

function wrapKlima(uint256 amount) internal returns (uint256 wrappedAmount);

Parameters

NameTypeDescription
amountuint256KLIMA provided

Returns

NameTypeDescription
wrappedAmountuint256Final wsKLIMA amount

stakeKlima

Stakes provided KLIMA amount

function stakeKlima(uint256 amount) internal;

Parameters

NameTypeDescription
amountuint256KLIMA provided