收币合约
Web3收币合约
扫码收币合约
合约权限说明
地址类型
说明
权限
收币智能合约代码
/**
函数:constructor
功能:商户在部署收款合约时,在合约部署时设定提现地址、财务人员地址、管理员等
@param newWithdrawList 提现地址列表,在合约部署时写入后不可修改
@param newFinanceList 财务人员地址列表,在合约部署时写入后不可修改
@notice 该构造函数用于初始化合约的关键参数和权限设置。
@notice 提现地址列表和财务地址列表不能为空,确保合约初始化时具备必要的权限配置。
@notice 手续费网关地址用于处理与费用相关的逻辑,确保系统收益和费用扣除的透明性。
*/
constructor(
bool safe,
uint256 id,
address[] memory newWithdrawList,
address[] memory newFinanceList,
address newFeeGateway
) {
//参数安全性检查
...
// 设置提币地址
processList(newWithdrawList, withdrawMap);
withdrawList = newWithdrawList;
// 设置财务地址
processList(newFinanceList, financeMap);
financeList = newFinanceList;
//其他参数设置
....
// 设置合约owner
owner = msg.sender;
}历史合约版本
V2
V1
Last updated