Contracts

Token Contract and Pre-Sale Contract. (ERC20)

The contracts are implemented using the OpenZeppelin library.

Attention! The contracts have not been audited at the moment. Use at your own risk. (DYOR)

Physalis Token Contract "Physalis.sol" (PHY)

Contract: 0x9DDDBACC2f7B59c443034c4BA935009B30F942F9

View the contract in etherscan.io browser

// SPDX-License-Identifier: MIT
// Physalis.Finance: Token PHY (DeFi & utility token)
pragma solidity ^0.5.5;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20Detailed.sol";
import "@openzeppelin/contracts/ownership/Ownable.sol";
contract Physalis is ERC20, ERC20Detailed, Ownable {
constructor(
string memory _name,
string memory _symbol,
uint8 _decimals,
uint256 _initialSupply
)
ERC20Detailed(_name, _symbol, _decimals)
public
{
_mint(msg.sender, _initialSupply * 10 ** uint256(_decimals));
}}

Pre-Sale Contract "Sale.sol"

Contract: 0x138c862A000F8192d4491876A75ebC03aa9d50C3

View the contract in etherscan.io browser

// SPDX-License-Identifier: MIT
// Physalis.Finance: PreSale
pragma solidity ^0.5.5;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/crowdsale/Crowdsale.sol";
import "@openzeppelin/contracts/crowdsale/emission/AllowanceCrowdsale.sol";
import "@openzeppelin/contracts/crowdsale/validation/TimedCrowdsale.sol";
contract Sale is Crowdsale, AllowanceCrowdsale, TimedCrowdsale {
constructor(
uint256 _rate,
address payable _wallet,
ERC20 _token,
address _tokenWallet,
uint256 _openingTime,
uint256 _closingTime
)
AllowanceCrowdsale(_tokenWallet)
Crowdsale(_rate, _wallet, _token)
TimedCrowdsale(_openingTime, _closingTime)
public
{
}
}