Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/validation.cpp
Original file line number Diff line number Diff line change
@@ -4023,9 +4023,7 @@ static Res VaultSplits(CCustomCSView& view, ATTRIBUTES& attributes, const DCT_ID
rate.interestPerBlock = InterestPerBlockCalculationV2(amounts->balances[newTokenId], loanToken->interest, loanSchemeRate);
}

rate.height = height;

view.WriteInterestRate(std::make_pair(vaultId, newTokenId), rate, height);
view.WriteInterestRate(std::make_pair(vaultId, newTokenId), rate, rate.height);
}

return Res::Ok();

0 comments on commit b012e65

Please sign in to comment.