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
1
// SPDX-License-Identifier: MIT
2
// Physalis.Finance: Token PHY (DeFi & utility token)
3
4
pragma solidity ^0.5.5;
5
6
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
7
import "@openzeppelin/contracts/token/ERC20/ERC20Detailed.sol";
8
import "@openzeppelin/contracts/ownership/Ownable.sol";
9
10
contract Physalis is ERC20, ERC20Detailed, Ownable {
11
12
constructor(
13
string memory _name,
14
string memory _symbol,
15
uint8 _decimals,
16
uint256 _initialSupply
17
)
18
ERC20Detailed(_name, _symbol, _decimals)
19
public
20
{
21
_mint(msg.sender, _initialSupply * 10 ** uint256(_decimals));
22
}}
23
Copied!

Pre-Sale Contract "Sale.sol"

Contract: 0x138c862A000F8192d4491876A75ebC03aa9d50C3
1
// SPDX-License-Identifier: MIT
2
// Physalis.Finance: PreSale
3
4
pragma solidity ^0.5.5;
5
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
6
import "@openzeppelin/contracts/crowdsale/Crowdsale.sol";
7
import "@openzeppelin/contracts/crowdsale/emission/AllowanceCrowdsale.sol";
8
import "@openzeppelin/contracts/crowdsale/validation/TimedCrowdsale.sol";
9
10
11
contract Sale is Crowdsale, AllowanceCrowdsale, TimedCrowdsale {
12
constructor(
13
uint256 _rate,
14
address payable _wallet,
15
ERC20 _token,
16
address _tokenWallet,
17
uint256 _openingTime,
18
uint256 _closingTime
19
)
20
AllowanceCrowdsale(_tokenWallet)
21
Crowdsale(_rate, _wallet, _token)
22
TimedCrowdsale(_openingTime, _closingTime)
23
24
public
25
{
26
}
27
28
29
}
Copied!
Last modified 7mo ago