CRYPTO NEWS

Autonomous Loop channel

Can I have an autonomous loop channel with myself where I would suck all excess inbound/outbound capacity to/from channels I have with other parties? In such a case, I would not have to even burden Bitcoin blockchain with the looping activity.

Crypto Hats, Crypto Shirts, Crypto Socks, Crypto Clothing

How to read a mapping through devtools

I’m working on Ethernaut challenge lvl 1 follow the link or scroll below for the smartcontract code. I check my addresse in the "contributions" mapping, I add some eth, and I recheck. what are thoses numbers ? 24035328, 4470348 32047104, 5960464 where is my deposit amount ? (and what is this "weird" parameter, "red" ?)::Listen

I’m working on Ethernaut challenge lvl 1

follow the link or scroll below for the smartcontract code.

I check my addresse in the "contributions" mapping, I add some eth, and I recheck.

what are thoses numbers ? 24035328, 4470348 32047104, 5960464

where is my deposit amount ?

(and what is this "weird" parameter, "red" ?)

img

here’s the smartcontract below

// SPDX-License-Identifier: MIT pragma solidity ^0.6.0;  import '@openzeppelin/contracts/math/SafeMath.sol';  contract Fallback {    using SafeMath for uint256;   mapping(address => uint) public contributions;   address payable public owner;    constructor() public {     owner = msg.sender;     contributions[msg.sender] = 1000 * (1 ether);   }    modifier onlyOwner {         require(             msg.sender == owner,             "caller is not the owner"         );         _;     }    function contribute() public payable {     require(msg.value < 0.001 ether);     contributions[msg.sender] += msg.value;     if(contributions[msg.sender] > contributions[owner]) {       owner = msg.sender;     }   }    function getContribution() public view returns (uint) {     return contributions[msg.sender];   }    function withdraw() public onlyOwner {     owner.transfer(address(this).balance);   }    receive() external payable {     require(msg.value > 0 && contributions[msg.sender] > 0);     owner = msg.sender;   } } 

Autonomous Loop channel

Shopping cart
There are no products in the cart!
Continue shopping
0