pause()
, unpause()
or setAuthorizedAddress()
. The important and nice part about these functions is, that they automatically invoke the same function in every module. So if (in an emergency) the multi-sig calls the pause
function of the hub, every module will automatically be paused in the same transaction.deposit
xDai as well as XGT in order to these funds to buy goods and services. Users can also withdraw()
their funds at any time, which was important to us.payWithXGT
or payWithXDai
) can only be called via one of the other modules.toggleFeatureUnlock()
would be called by the backend to indicate that someone has unlocked a certain feature. The unlocked features of a user can be retrieved via functions like getUnlockedFeaturesOfUser()
.subscribeUser()
, processSubscriptionPayment()
, pauseSubscription()
and cancelSubscription()
. These functions are currently called by our backend (to save gas for the user). In the future, we also want to allow our users to call these functions directly.processPurchase()
or processOneTimePayment()
. The corresponding payment and potential cashback mechanism is handled by the wallet contract mentioned above.claim()
function of the reward chest through our UI.deposit()
and withdraw()
functions at any time(Stake or Unstake). Deposits of merchants that are auto-staking their sale-earnings through the staking module will not count towards the standard penalty, so they can withdraw their staked XGT without a penalty at all times.