AELIP-47: Remove decimal restrictions

Author
StatusImplemented
ImplementorTBD
ReleaseTBD
Created2023-04-05

Simple Summary

This AELIP proposes to remove a single require statement in AelinUpFrontDeal.sol which required the deal token to be at least the same amount of decimals as the investment token. this was put in to avoid some precision loss but it is unnecessary for the deals to work properly. As we have a deal coming with 2 decimals in the deal token it is time to remove this restriction.

Abstract

converting 1 token to another can lead to precision loss depending on how the decimals are working. Precision loss may leave a small amount of dust in the contracts but does not break the logic. the proposal is to remove a restriction forcing deal tokens to have at least as many decimals as the investment tokens.

Motivation

This AELIP aims to support an upcoming Aelin UpFrontDeal

Specification

Overview

A single require statement will be removed

Rationale

To support more projects looking to raise on Aelin.

Technical Specification

Removing a single require line and anothe line which created a variable that is used only in the require statement.

Test Cases

N/A

Copyright and related rights waived via CC0.