Blockchain / Global / Address
Contract
0xCf9E89EbdF9141ff0C9A543fFd5fa51F1e6d14b0
- Balance
- 0 SOMI
- Transactions sent
- 1
- Type
- Contract · 576 bytes of code
receiver Verified
- Compiler
- solc 0.8.30+commit.73712a01
- Language
- Solidity
- Optimization
- Yes, 200 runs
- EVM version
- —
- License
- —
- Verified
- 2026-10-12
receiver.sol
Solidity
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;
contract receiver {
receive() external payable {
uint256 totalAmount = msg.value;
uint256 amountForRecipient1 = (totalAmount * 80) / 100;
uint256 amountForRecipient2 = totalAmount - amountForRecipient1;
(bool success1, ) = 0x79AddEAA1695AB44dCEf1CbDEb23b069fC1979Ca.call{value: amountForRecipient1}("");
require(success1, "Failed to send funds to recipient 1");
(bool success2, ) = 0x42aC444795f01e747d581b5370F8f394CbE8da3c.call{value: amountForRecipient2}("");
require(success2, "Failed to send funds to recipient 2");
}
}ABI · 1 entries
json
[
{
"type": "receive",
"stateMutability": "payable"
}
]