From 9a81e020f8ca8fe3fe2bb5b8196997e61ef2ad63 Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 7 Mar 2021 22:32:02 -0800 Subject: [PATCH] feat(refunder): refunder doc --- refunder.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/refunder.md b/refunder.md index e237e06..9e700f6 100644 --- a/refunder.md +++ b/refunder.md @@ -55,7 +55,7 @@ function refund(address sender, address target, bytes4 interfaceId, uint256 amou function withdraw(uint256 amount) ``` -#### Context +#### Context ```solidity abstract contract Context { @@ -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: @@ -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 _;