Closed deepesh-kn closed 5 years ago
Was going through the epic 📔 . Have a question
transfer
and approve
methods in the proxy contract so that transferred money is not stuck? This could happen because of revertStake(if we are supporting) or an arbitrary transfer. @deepesh-kn @schemar what do you think 🤔 ?
Was going through the epic 📔 . Have a question
- Should we also support
transfer
andapprove
methods in the proxy contract so that transferred money is not stuck? This could happen because of revertStake(if we are supporting) or an arbitrary transfer.@deepesh-kn @schemar what do you think 🤔 ?
Nice point 👍 This is kept out of scope for now. We can think about this.
Revert will be very tricky. A facilitator will not get any benefit for revert stake, as the bounty will be burnt and also will not get any reward for facilitation so it may not do the facilitation. In this case staker needs to do facilitation itself. Staker may not have OST' on the auxiliary chain to perform it.
In case the tokens are stuck in the gateway then, any facilitator can progress with proof, the facilitator can get bounty and reward.
In case the tokens are stuck in the gateway then, any facilitator can progress with proof, the facilitator can get bounty and reward.
I meant if tokens are stuck in staker proxy address. An arbitrary transfer(e.g. ALT coins transfer) can be made to staker proxy address. Should we give owner option to take out that money?
Right now I added a self-destruct method that returns all base coin and erc20 value to the owner before destructing.
Right now I added a self-destruct method that returns all base coin and erc20 value to the owner before destructing.
It should also update the composer contract to remove the proxy contract address for the staker address? We can discuss this in detail.
We had a short call and discussed that we want to:
nonce
and gateway
to stake method; nonce only for checkingtransferToken
function to get funds out of the proxy (e.g. after revert)selfDestruct
(they are unknown for any number of gateways)
This is closely dependent on #740
StakerProxy contract:
Please note: the contract is referred to
StakerProxy
, but this is not final name. Suggest a better name.Gateways can do one stake - mint process at a time for a given staker address. So the composer contract cannot call gateway.stake() function, it will be not able to serve all stake requests from multiple stakers addresses. So a proxy contract is introduced as a proposal here.
Composer
contract.This contract can have following variables.
Constructor
Accept stake request
More detail is on EPIC