Shares
The kpkShares ERC-20 token — pro-rata fund ownership with a request-based mint/burn model.
The kpkShares contract
Request-based, not ERC-4626
Share price and decimals
// shares = (assetAmount * 10^18 * 1e8) / (sharesPrice * 10^assetDecimals)
function assetsToShares(uint256 assetAmount, uint256 sharesPrice, address subscriptionAsset)
external view returns (uint256);
// assets = (shares * sharesPrice * 10^assetDecimals) / (1e8 * 10^18)
function sharesToAssets(uint256 shares, uint256 sharesPrice, address redemptionAsset)
external view returns (uint256);Approved assets
Last updated