Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
231
Issues
231
List
Boards
Labels
Service Desk
Milestones
Merge Requests
40
Merge Requests
40
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
5a927ee5
Commit
5a927ee5
authored
1 hour ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): plus fixes with upgrades flow
parent
14fab30c
epic/pro-affiliate-launch
1 merge request
!368
WIP: Epic/pro affiliate launch
Pipeline
#88955851
pending with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Core/Wire/Delegates/UpgradesDelegate.php
Core/Wire/Delegates/UpgradesDelegate.php
+4
-4
No files found.
Core/Wire/Delegates/UpgradesDelegate.php
View file @
5a927ee5
...
...
@@ -48,7 +48,7 @@ class UpgradesDelegate
private
function
onPlusUpgrade
(
$wire
,
$receiver_address
)
:
Wire
{
if
(
/*
if (
!(
$receiver_address == 'offchain'
|| $receiver_address == $this->config->get('blockchain')['contracts']['wire']['plus_address']
...
...
@@ -60,7 +60,7 @@ class UpgradesDelegate
// 20 tokens
if ($wire->getAmount() != "20000000000000000000") {
return $wire; //incorrect wire amount sent
}
}
*/
//set the plus period for this user
$user
=
$wire
->
getSender
();
...
...
@@ -80,9 +80,9 @@ class UpgradesDelegate
switch
(
$wire
->
getMethod
())
{
case
'tokens'
:
if
(
$monthly
[
'tokens'
]
==
$wire
->
getAmount
())
{
if
(
$monthly
[
'tokens'
]
==
$wire
->
getAmount
()
/
(
10
**
18
)
)
{
$days
=
30
;
}
elseif
(
$yearly
[
'tokens'
]
==
$wire
->
getAmount
())
{
}
elseif
(
$yearly
[
'tokens'
]
==
$wire
->
getAmount
()
/
(
10
**
18
)
)
{
$days
=
365
;
}
else
{
return
$wire
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment