Skip to content

Commit

Permalink
feat(refunder): refunder doc
Browse files Browse the repository at this point in the history
  • Loading branch information
sam committed Mar 8, 2021
1 parent d994e41 commit 9a81e02
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions refunder.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function refund(address sender, address target, bytes4 interfaceId, uint256 amou
function withdraw(uint256 amount)
```

#### Context
#### Context

```solidity
abstract contract Context {
Expand All @@ -76,7 +76,6 @@ The GatewayProxy contract is a singleton contract used to forward the provided c

> Note v1 should implement the factory/registry pattern

The contract has a `map(address, bool)` of the deployed `refunder` contracts. Anyone is able to add addresses to the `map` if they support the required `Refunder` interface.

#### Interface:
Expand All @@ -100,7 +99,7 @@ function addRefunder(address refunder)
```Solidity
modifier netGasCost(targetContract, interfaceId) {
uint256 gasProvided = gasLeft();
uint256 refundCost = refunder.getRefundCost(targetContract, interfaceId, tx.gasprice) // FIXME - non-reentrance
uint256 refundCost = refunder.getRefundCost(targetContract, interfaceId, tx.gasprice) // FIXME - non-reentrance
_;
Expand Down

0 comments on commit 9a81e02

Please sign in to comment.