mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-05 16:57:53 +00:00
cleanup INITIAL_IMPORT_XRP
This commit is contained in:
@@ -193,8 +193,9 @@ GenesisMint::doApply()
|
||||
}
|
||||
else // give them 2 XRP if the account didn't exist, same as ttIMPORT
|
||||
{
|
||||
sle->setFieldAmount(sfBalance, Import::INITIAL_IMPORT_XRP);
|
||||
dropsAdded += Import::INITIAL_IMPORT_XRP;
|
||||
XRPAmount const initialXrp = Import::computeStartingBonus(ctx_.view());
|
||||
sle->setFieldAmount(sfBalance, initialXrp);
|
||||
dropsAdded += initialXrp;
|
||||
}
|
||||
}
|
||||
else if (amt)
|
||||
|
||||
@@ -1164,7 +1164,7 @@ Import::doApply()
|
||||
|
||||
bool const create = !sle;
|
||||
|
||||
STAmount startBal = create ? STAmount(INITIAL_IMPORT_XRP) : sle->getFieldAmount(sfBalance);
|
||||
STAmount startBal = create ? STAmount(Import::computeStartingBonus(ctx_.view())) : sle->getFieldAmount(sfBalance);
|
||||
STAmount finalBal = startBal + burn;
|
||||
|
||||
if (finalBal < startBal)
|
||||
|
||||
Reference in New Issue
Block a user