Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Exercise Seven - Interest application

Satinder Rawal answered on April 23, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • Exercise Six - Interest accrual

  • Exercise Seven - Interest application

    0

    So far we have only made use of TEMPLATE level parameters in this contract. GLOBAL parameters are defined outside of contracts so we will not be dealing with them here, but INSTANCE parameters are worth looking at.

    Exercise

    In this exercise, you need to implement the application of interest once a month with a payment date that the customer can define. This should be an optional parameter. You should then instruct the movement of funds from the ACCRUED address to the DEFAULT address on the selected date.

    We introduce two helper functions here to round values appropriately for application (2 decimal places) and accrual (5 decimal places) of interest.

    Popularity 1/10 Helpfulness 1/10 Language python
    Source: Grepper
    Tags: python
    Link to this answer
    Share Copy Link
    Contributed on Apr 23 2023
    Satinder Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.