You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To transfer funds from a Core to the Gateway (thenewboston.com), users first need to create a Wallet for that Core.
class Wallet:
owner
core
balance
deposit_account_number
deposit_balance
deposit_signing_key
Each wallet contains a deposit account. This is the account where the user will first send their funds to (to their deposit_account_number). Once a user's deposit account has been credited, they can transfer those funds to their Gateway wallet. This creates a Wire object, which is a Block representing a transfer of funds from the users deposit account to the Gateway account (settings.ACCOUNT_NUMBER), which credits their Wallet.balance.
class WireType:
DEPOSIT
WITHDRAW
class Wire(Block):
core
owner
created_date
wire_type = WireType
When withdrawing funds from the Gateway back to the Core, the process is essentially reversed:
The user initiates a withdrawal request on the Gateway, specifying the amount and the recipient account number on the Core.
The Gateway creates a Wire object with wire_type = WireType.WITHDRAW.
The Gateway then sends a transaction on the Core network, transferring funds from the Gateway's account (settings.ACCOUNT_NUMBER) to the user's specified account on the Core.
The Wire object records this transaction, linking it to the user's Wallet and the specific Core.
The user's Wallet.balance on the Gateway is decreased by the withdrawn amount (plus any applicable fees).
The funds are then available in the user's specified account on the Core network.
Updates Needed
We need to update the system to put the distribution of TNB under Ia's control, enabling her to directly reward contributors based on their assessed value to the project. To do this we will:
Reset TNB Wallet Balances
Reset all user TNB wallet balances on the Gateway to 0.
This action prepares the system for a fresh start with the new distribution model.
Create a TNB Wallet for Ia
Set up a new TNB wallet on the Gateway (thenewboston.com) for Ia.
This wallet will be used to manage and distribute TNB coins.
Mint TNB Coins
On the TNB Core (tnb-core.com), mint 1 Billion TNB coins.
Deposit these newly minted coins into Ia's deposit account on the Core.
Transfer Funds to Gateway
Move the 1 Billion TNB coins from Ia's deposit account on the Core to Ia's Gateway wallet.
This transfer will create a Wire object of type DEPOSIT, recording the transaction.
Enable Reward Distribution
With the TNB coins now in Ia's Gateway wallet, Ia can use these funds to reward contributors.
The text was updated successfully, but these errors were encountered:
Gateway-Core Fund Transfer Protocol
To transfer funds from a Core to the Gateway (thenewboston.com), users first need to create a Wallet for that Core.
Each wallet contains a deposit account. This is the account where the user will first send their funds to (to their deposit_account_number). Once a user's deposit account has been credited, they can transfer those funds to their Gateway wallet. This creates a Wire object, which is a Block representing a transfer of funds from the users deposit account to the Gateway account (settings.ACCOUNT_NUMBER), which credits their Wallet.balance.
When withdrawing funds from the Gateway back to the Core, the process is essentially reversed:
Updates Needed
We need to update the system to put the distribution of TNB under Ia's control, enabling her to directly reward contributors based on their assessed value to the project. To do this we will:
Reset TNB Wallet Balances
Create a TNB Wallet for Ia
Mint TNB Coins
Transfer Funds to Gateway
Enable Reward Distribution
The text was updated successfully, but these errors were encountered: