Developer Reference
Contract & Imports
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { IERC3643 } from "@erc3643org/erc-3643/contracts/ERC-3643/IERC3643.sol";
import { AggregatorV3Interface } from "@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol";
import { IDinoPrimary } from "./interfaces/IDinoPrimary.sol";
import { IFeeCollector } from "./interfaces/IFeeCollector.sol";
contract DinoPrimary is IDinoPrimary { /* ... */ }State Variables (Public Getters)
IERC3643 public erc3643;
address public issuerSafe;
bool public preminted;
IFeeCollector public ecosystemFeeCollector;
uint256 public nonce;
mapping(address => PaymentToken) public approvedPaymentTokens;Solidity Interface
Investor Functions
subscribe
subscriberedeem
redeemPreview Functions (Read-Only Quotes)
previewSubscribeWithExactErc3643
previewSubscribeWithExactErc3643previewSubscribeWithExactToken
previewSubscribeWithExactTokenpreviewRedeemWithExactErc3643
previewRedeemWithExactErc3643previewRedeemWithExactToken
previewRedeemWithExactTokenPayment Token Management
addPaymentToken
addPaymentTokenremovePaymentToken
removePaymentTokenupdatePaymentToken
updatePaymentTokengetPaymentTokens / getPaymentTokenCount
getPaymentTokens / getPaymentTokenCountRules Management
updateSubscriptionRules
updateSubscriptionRulesupdateRedemptionRules
updateRedemptionRulessubscriptionRules
subscriptionRulesredemptionRules
redemptionRulesAdmin Functions
updateIssuerSafe
updateIssuerSafeupdatePreminted
updatePremintedEvents
Custom Errors (from ErrorsLib)
ErrorsLib)Last updated