-1
私は、すべてのトークンがクラウドデール中に販売されなかった場合、その金額は貢献した人に送金される契約書を作成しようとしています。私のコードは次のようなものです:スマート契約で払い戻し機能を作成する
contract refundcrowdsale is basicCrowdsale {
uint256 private _startTime;
uint256 private _endTime;
address private _wallet;
address private _owner;
uint256 private _weiRaised;
uint256 private _tokensIssued;
token private _token;
bool private isFinalized = false;
function basicCrowdsale(uint256 startTime, uint256 endTime,string symbol,
string name, uint8 decimals, uint256 totalSupply) public
{
if (startTime < now) {
revert();
} else if (endTime < now || endTime < startTime) {
revert();
} else {
_startTime = startTime;
_endTime = endTime;
_owner = msg.sender;
}
function refundallert(unint startTime, uint256 endTime, uint256 totalSupply)
public return (bool){
if (endTime == now && totalSupply != 0){
function
}
}
}`