Fondos

Retirar fondos a una wallet- Transacciona

Modificadores: onlyOwner whenNotPaused payable

withdrawAddress
function withdrawAddress(address payable wallet, uint amount) public onlyOwner whenNotPaused {....}

Parámetros:

address

wallet

wallet de destino de los fondos

uint

amount

cantidad de fondos

Response: Evento

emit Withdraw(wallet, amount); 

Ejemplo de llamada: _wallet, amount

Errores

  • The amount to be withdrawn exceeds the balance of the contract- El importe solicitado excede los fondos del contrato

Retirar fondos al propietario del contrato- Transacciona

Modificadores: onlyOwner

withdraw
function withdraw() public onlyOwner {....}

Parámetros: Sin parámetros de entrada

Response: Evento

emit Withdraw(wallet, amount); 

Esta función retira todos los fondos disponibles en el contrato a la wallet del propietario del contrato

Errores

  • The amount to be withdrawn exceeds the balance of the contract- El importe solicitado excede los fondos del contrato

Balance - No Transacciona

Modificadores: onlyOwner

balance
function getRolesByPercent(uint _percent) public onlyOwner view returns (uint memory) {....}

Parámetros: Sin parámetros de entrada

Respuesta: uint value

Última actualización