-
Notifications
You must be signed in to change notification settings - Fork 570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Citadel gateway #1695
Added Citadel gateway #1695
Conversation
We will get back to you on this pull request. Your link above seems to not work anymore. I assume you only added into the modal? It also is shown as disabled right now. |
@sschiessl-bcp hm, can u try to log in and recheck it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assets aliases should be handled with code from the API Settings, rather than within the code directly.
? selectedGateway.toLowerCase() + "." + assetName | ||
: assetName; | ||
if ( | ||
assetName.toLowerCase() === "monero" && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like this change as the new modals aim to be generalized for making it easier to add new gateways. I would rather have this done on a per gateway in the settings file.
Something like
assetWithdrawlAlias: { monero: xmr }
app/lib/common/gatewayMethods.js
Outdated
@@ -276,6 +276,12 @@ export function requestDepositAddress({ | |||
url = openledgerAPIs.BASE, | |||
stateCallback | |||
}) { | |||
if ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also be handled in a gateway specific setting
@startailcoon ty for your correction |
@startailcoon @sschiessl-bcp does it look fine or do i need to fix something else? |
@snakebitekit I can do a review of this in the coming days |
@startailcoon great, thanks! |
hi, @startailcoon |
I've had issues with my developer computer setup, which made me delayed in the process. You're not forgotten and I will look at this as soon as possible. |
@startailcoon ok, thanks for reply. |
Some tokens would be good to be able to make some test transactions. |
I've detected 1 issue and a few changes that I will submit when I've finished testing. It does look good and works well. I've looked trough the functions of the legacy Deposit/Withdraw function, which I'll test as soon as I have some tokens. One issue is the Modal that will require some layout fixes to support some issues with the text being to long as well as the address being very very long. An example is the deposit address I receive: We will need to wrap this elegantly, without making it break something else. |
When will it be legacy? Or receive a make-over to stick to the logic from the modal? |
I'm not sure, but we've talked about doing something about it. They are more Gateway specific, and could probably stay in one form or another. They provide some more space for gateway specific features and functions, like updates, news, contact details etc. I see these sections more of a space where the gateways can and should take care of their own code, push PRs when they want an update etc. Further discussion about Withdraw/Deposit section is on issue #1479 |
@startailcoon we've sent some citadel.monero tokens to startail-test account. |
- Handle longer addresses on Deposit + Confirm - Fix 'assetWithdrawlAlias' when gateway is missing option - Various minor style fixes
I've supplied a commit with some changes to fix some issues with this PR. I can't confirm the Deposit feature. I tried to withdraw 0.1 CITADEL.MONERO to the assigned deposit address, but it didn't show up. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Supplied commit fixes the assetWithdrawlAlias issue with gateways that had no alias params.
- Fixes long deposit address on DepositWithdraw component
Additionally you should commit a document named Link this document to the |
@startailcoon okay, i'll add a help block and commit it. |
…into citadel-develop-gateway && fixing conflicts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also need to add word-break to Transactions memo as the address is so long.
<td className="memo" style={{wordBreak: "break-all"}}>{text}</td>
On
<td className="memo">{text}</td> |
this.props.asset.get("id") | ||
) | ||
) { | ||
if ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will fail when amount_to_withdraw is null or undefined.
Please add the following
!!this.props.amount_to_withdraw &&
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ty, is it ok now 99974bd ?
sup? |
Hi, it's citadel gateway which supports citadel.monero tokens and monero(xmr) coins.
Both main and beta deposit&withdraw interfaces are tested and working, you can check it on our prod server: https://citadel.li/wallet/#/deposit-withdraw
There's one more question by the way: can i add a citadel's help block in this pr or should i do it in another?