Closed
Description
https://github.com/AdExNetwork/aips/issues/61
function to calculate total spendable amount; this will be used by sentry to update it on request
Function: adapter.get_deposit(channel, address) -> Deposit {total, stillOnCreate2}
This will be stored in the DB as spender, channel, channel_id, total, stillOnCreate2 }
later on, unique by channel_id, spender
#381
- outpace.deposited[channelId][spender] (
outpace.deposited(channelId, spender)
) -
stillOnCreate2
-erc20.balanceOf(counterfactualDepositAddr)
this should be passed by thechannel.deposit_asset
create2 address: https://github.com/AdExNetwork/adex-protocol-eth/blob/identity-tests/contracts/IdentityFactory.sol#L39-L41 - Configurable minimum deposit (per whitelisted stablecoin)
-
store both values so that we know stillOnCreate2
- update git submodule to get access to https://github.com/AdExNetwork/adex-protocol-eth/blob/master/abi/ERC20.json
Metadata
Metadata
Assignees
Labels
No labels